Hire a web Developer and Designer to upgrade and boost your online presence with cutting edge Technologies

Thursday 25 July 2024

7 Time Series Datasets for Machine Learning

 Machine learning can be applied to time series datasets.

These are problems where a numeric or categorical value must be predicted, but the rows of data are ordered by time.

A problem when getting started in time series forecasting with machine learning is finding good quality standard datasets on which to practice.

In this post, you will discover 8 standard time series datasets that you can use to get started and practice time series forecasting with machine learning.

After reading this post, you will know:

  • 4 univariate time series datasets.
  • 3 multivariate time series datasets.
  • Websites that you can use to search and download more datasets.

    Univariate Time Series Datasets

    Time series datasets that only have one variable are called univariate datasets.

    These datasets are a great place to get started because:

    • They are so simple and easy to understand.
    • You can plot them easily in excel or your favorite plotting tool.
    • You can easily plot the predictions compared to the expected results.
    • You can quickly try and evaluate a suite of traditional and newer methods.

    There are many sources of time series dataset, such as the “Time Series Data Library” created by Rob Hyndman, Professor of Statistics at Monash University, Australia

    Below are 4 univariate time series datasets that you can download from a range of fields such as Sales, Meteorology, Physics and Demography.

    Stop learning Time Series Forecasting the slow way!

    Take my free 7-day email course and discover how to get started (with sample code).

    Click to sign-up and also get a free PDF Ebook version of the course.

    Shampoo Sales Dataset

    This dataset describes the monthly number of sales of shampoo over a 3 year period.

    The units are a sales count and there are 36 observations. The original dataset is credited to Makridakis, Wheelwright and Hyndman (1998).

    Below is a sample of the first 5 rows of data including the header row.

    Below is a plot of the entire dataset.

    Shampoo Sales Dataset

    Shampoo Sales Dataset

    The dataset shows an increasing trend and possibly some seasonal component.

    Minimum Daily Temperatures Dataset

    This dataset describes the minimum daily temperatures over 10 years (1981-1990) in the city Melbourne, Australia.

    The units are in degrees Celsius and there are 3650 observations. The source of the data is credited as the Australian Bureau of Meteorology.

    Below is a sample of the first 5 rows of data including the header row.

    Below is a plot of the entire dataset.

    Minimum Daily Temperatures

    Minimum Daily Temperatures

    The dataset shows a strong seasonality component and has a nice fine grained detail to work with.

    Monthly Sunspot Dataset

    This dataset describes a monthly count of the number of observed sunspots for just over 230 years (1749-1983).

    The units are a count and there are 2,820 observations. The source of the dataset is credited to Andrews & Herzberg (1985).

    Below is a sample of the first 5 rows of data including the header row.

    Below is a plot of the entire dataset.

    Monthly Sun Spot Dataset

    Monthly Sun Spot Dataset

    The dataset shows seasonality with large differences between seasons.

    Daily Female Births Dataset

    This dataset describes the number of daily female births in California in 1959.

    The units are a count and there are 365 observations. The source of the dataset is credited to Newton (1988).

    Below is a sample of the first 5 rows of data including the header row.

    Below is a plot of the entire dataset.

    Daily Female Births Dataset

    Daily Female Births Dataset

    Multivariate Time Series Datasets

    Multivariate datasets are generally more challenging and are the sweet spot for machine learning methods.

    A great source of multivariate time series data is the UCI Machine Learning Repository.

    At the time of writing, there are 63 time series datasets that you can download for free and work with.

    Below is a selection of 3 recommended multivariate time series datasets from Meteorology, Medicine and Monitoring domains.

    EEG Eye State Dataset

    This dataset describes EEG data for an individual and whether their eyes were open or closed. The objective of the problem is to predict whether eyes are open or closed given EEG data alone.

    The objective of the problem is to predict whether eyes are open or closed given EEG data alone.

    This is a classification predictive modeling problems and there are a total of 14,980 observations and 15 input variables. The class value of ‘1’ indicates the eye-closed and ‘0’ the eye-open state. Data is ordered by time and observations were recorded over a period of 117 seconds.

    Data is ordered by time and observations were recorded over a period of 117 seconds.

    Below is a sample of the first 5 rows with no header row.

    Occupancy Detection Dataset

    This dataset describes measurements of a room and the objective is to predict whether or not the room is occupied.

    There are 20,560 one-minute observations taken over the period of a few weeks. This is a classification prediction problem. There are 7 attributes including various light and climate properties of the room.

    The source for the data is credited to Luis Candanedo from UMONS.

    Below is a sample of the first 5 rows of data including the header row.

    The data is provided in 3 files that suggest the splits that may be used for training and testing a model.

    Ozone Level Detection Dataset

    This dataset describes 6 years of ground ozone concentration observations and the objective is to predict whether it is an “ozone day” or not.

    The dataset contains 2,536 observations and 73 attributes. This is a classification prediction problem and the final attribute indicates the class value as “1” for an ozone day and “0” for a normal day.

    Two versions of the data are provided, eight-hour peak set and one-hour peak set. I would suggest using the one hour peak set for now.

    Below is a sample of the first 5 rows with no header row.

    Summary

    In this post, you discovered a suite of standard time series forecast datasets that you can use to get started and practice time series forecasting with machine learning methods.

    Specifically, you learned about:

    • 4 univariate time series forecasting datasets.
    • 3 multivariate time series forecasting datasets.
    • Two websites where you can download many more datasets.

    Did you use one of the above datasets in your own project?
    Share your findings in the comments below.

No comments:

Post a Comment

Connect broadband

7 Ways to Handle Large Data Files for Machine Learning

 Exploring and applying machine learning algorithms to datasets that are too large to fit into memory is pretty common. This leads to quest...