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
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • 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
    • 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
    • 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
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • 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.66K 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.

You are viewing 1 out of 3 answers, click here to view all answers.
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
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