Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Smart baseline internal calculations for the daily pattern option

Solved1.63K views18th July 2023alarm template smart baseline
3
Paulo Henriques [SLC] [DevOps Member]550 14th October 2021 0 Comments

Hi,

If we need to verify the internal calculations done by Dataminer when determining the smart baseline value for a given parameter, specially for the option 'daily pattern deviation', what do we need to do?

The Help states that with the averaged 15-minutes trend points, a polynomial regression is applied. What is the polynomial degree? Applied to which points exactly? When is then the smart baseline read from the polynomial function?

Would it be possible to describe the complete algorithm so we can compute the expected values ourselves having as an input just the trending values of the respective parameter?

Thanks in advance.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2023

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
4
Dennis Dreesen [SLC] [DevOps Advocate]496 Posted 28th October 2021 1 Comment

Hello Paulo,

I opened the code and investigated how the smart baseline is calculated in the case of a daily pattern deviation, assuming you do not select “handle weekend days separately”.

The first thing to note is that a day consists of 288 five minute intervals, namely 0h00 until 0h05, 0h05 until 0h10,….,23h55 until 0h. For each of these intervals, the algorithm tries to figure out the typical value of the parameter during that interval. To do this, the algorithm fetches the last week of 5’ averages from the database. Then, for each of the aforementioned five minute intervals, it checks the value of the parameter during that interval on Monday, Tuesday,… Sunday and it takes the median M of these 7 values.

After this, we are left with the following information:

Every 15 minutes, DataMiner will check which baseline value to use for the upcoming 15 minutes. In order to this, we could just use this table. So, if during the interval 0h10-0h15, DataMiner wants to check which baseline it should use for the upcoming 15 minutes, just use M2 as the baseline. The downside of this method however is that keeping this table requires some memory, definitely for systems that have many parameters with smart baseline enabled. This is why the algorithm is going to try and summarize the information in this table by doing a polynomial regression of degree 8.

To explain this (I know you know Paulo, but for anybody else reading this), let me note that a polynomial of degree 8 is a function described by 9 numbers

which maps any number t to

Ideally, what we would like is to find the 9 coefficients a in such a way that when you fill in an index t=i, that

equals the i'th median Mi. If you can do that, then you don’t have to remember all the median values M anymore (this saves memory) and you can just remember the 9 coefficients instead.

Unfortunately, in most cases this is not possible, so instead the algorithm is going to try to find the a’s in such a way that P(i) is as good of an approximation as possible for the i'th median Mi.

The above procedure (fetching a week of data and calculating the aj) is repeated once per day for each parameter with a smart baseline enabled, typically around midnight.

Apart from that, every 15 minutes, DataMiner will calculate which baseline value to use for the next 15 minutes. So, assume, it was now 15’ ago since our last calculation. Then DataMiner does the following:

1) Look at the current time: what is the corresponding index i?
e.g. if it is 10h02, it lies in the interval 10h until 10h05 which has index i=120.
2) As a baseline, use the number P(i)
e.g. at 10h02, DataMiner will use P(120) as baseline value to decide when to trigger alarms.

I hope this explanation clarifies how the smart baseline works. If you have any further questions, please don’t hesitate to reach out!

Regarding the pictures you posted, thank you, Paulo, for sending me the datasets. I will look into these today and get back to you.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2023
Paulo Henriques [SLC] [DevOps Member] commented 28th October 2021

Thank you Dennis for the detailed explanation of the algorithm.
Using an 8th degree polynomial to fit a curve that has 288 different values is a bit optimistic, to say the least. Basically, you are trying to approximate the daily pattern curve with a polynomial function of only degree 8 which it may work well for regular and slow changing patterns, but for irregular and the ones changing the value very quickly, the result will be far away from the intended. I believe there is a lot of room to improve here in these calculations of the smart baselines.

3
Dennis Dreesen [SLC] [DevOps Advocate]496 Posted 29th October 2021 0 Comments

Hello Paulo,

thanks for your comment and the datasets you provided!

Yeah, as we discussed yesterday, a polynomial of degree 8 might not fit the very irregular patterns, but on the other hand I do believe this approximation will be ok in a large percentage of cases as the degree is rather high. It is something I will discuss within our team and the squad responsible for this feature: it's all a balance between saving memory and exactness and depends on how irregular the patterns are that we expect in such data. Maybe as more memory becomes available on customer systems, this modelling approach might even be omitted all together.

With regards to the datasets you sent (pictures in your post above), I ran some experiments to verify whether this degree 8 approximation could be the issue you're experiencing. For each dataset, I first calculated the medians as displayed in the table in my previous post in this thread. This is plotted in orange.

Then, for each day, I ran the degree 8 approximation and plotted that in blue. As you see, the blue lines are rather good (but indeed not perfect) approximations of the actual medians...

As discussed, this means that your issue must lie elsewhere. If there is anything we can help you with in that regards, don't hesitate to reach out. I will also keep you posted on any decisions on the adaptation of the smart baseline functionality.

Thanks a lot for your question!

Dennis

Dennis Dreesen [SLC] [DevOps Advocate] Answered question 29th October 2021
1
Paulo Henriques [SLC] [DevOps Member]550 Posted 27th October 2021 0 Comments

Please look at the 2 examples below, the dark-blue line is the parameter that has the smart baseline active with the daily pattern option, 7 days window and the light-blue is the smart baseline calculated by Dataminer:


In the 1st, we can clearly identify a daily pattern which is not reflected on the calculated smart baseline.

The 2nd, even though is more difficult to identify a daily pattern, it is still there: at the evening and during the night, the parameter has higher values than during the daylight. The smart baseline could never be the one calculated.

What am I missing here?
This is release 10.1.0 CU6.

Paulo Henriques [SLC] [DevOps Member] Answered question 27th October 2021
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

How to implement bearer token refresh? 0 Answers | 0 Votes
Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin