Skip to content

Anomaly detection on office temperature: Numenta Anomaly Benchmark (NAB) data.

Notifications You must be signed in to change notification settings

Anshumank399/Time-Series-Anomaly-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time-Series-Anomaly-Detection

Anomaly detection on office temperature: Numenta Anomaly Benchmark (NAB) data.

1. Explore and Feature Engineering:

  • The dataset contains two columns: timestamp and the temperature values.

  • The timestamps are at an interval of an hour from the start date 2013-07-04 to 2014-05-28.

  • There were no Null values in the dataset but few hours missing, so the hours were added into the dataset and empty values forward filled. (261 rows)

    Missing Data

  • Understanding the distribution of the temperature values.

    Distribution Box Plot

  • New features extracted from the datetime and temperature value column:
    a. Hour, day, month, weekday, quarter.
    b. Weekend column if the day of week is Sunday or Saturday.
    c. Working Hours (assuming working hours from 8am to 8pm).
    d. Temperature lag (24-hours lag variable).
    e. Change in lag (difference between current and 24-hour lag temperature).

  • Examining weekend temperature trends.
    a. On most weekends there is a continuous drop in temperature as shown in the graph below.
    b. Possible inference: the office is in a cold region where the temperature drops continuously if heating is not on.

    Weekend

  • Examining working hours temperature trends.
    a. On most working hours the temperature keeps on rising as shown in the graph below.
    b. Possible inference: the office is in a cold region where the temperature is maintained by heating during working hours.

Anomalies Detected using Z-Score (Statistical Method)

Anomalies Detected using Prophet (ML Time Series Method)

For More Details go through the Analysis Report.pdf file and the Jupyter Notebook. Do let me know if you try out something new.

About

Anomaly detection on office temperature: Numenta Anomaly Benchmark (NAB) data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published