/tsa-gecco-challenge

Anomaly Detection on Gecco Challenge dataset

Primary LanguageJupyter Notebook

TSA on GECCO Industrial Challenge Dataset

Dataset Description

The GECCO 2018 Industrial Challenge, presented by the Genetic and Evolutionary Computation Conference, centered around a critical and increasingly relevant issue—monitoring drinking-water quality. This dataset was provided as part of a competition aimed at fostering innovative approaches in evolutionary computation and machine learning to detect anomalies in water quality, which are indicative of potential health hazards or system failures.

Dataset Overview

The challenge dataset comprises multivariate time series data collected from a real-world water management system. The data includes several physicochemical parameters measured over time, reflecting the complexity and dynamics of water quality management. Key features include:

  • Time: Timestamps for each measurement, providing the temporal context for the data.
  • Tp (Temperature): The water temperature, measured in degrees Celsius, which can influence chemical reactions and microbial growth in water.
  • Cl (Chlorine Dioxide - MS1) and Cl_2 (Chlorine Dioxide - MS2): Concentrations of chlorine dioxide from two different measurement stations, indicating the level of disinfectant present, which is crucial for maintaining water safety.
  • pH: A measure of how acidic/basic water is, pivotal for both water quality and equipment maintenance.
  • Redox (Reduction-Oxidation Potential): An indicator of the water’s ability to break down contaminants.
  • Leit (Electrical Conductivity): Reflects the water's ionic activity and total dissolved solids.
  • Trueb (Turbidity): Measures the clarity of water, where higher values may indicate pollution.
  • Fm and Fm_2 (Flow rates): Recorded at two different water lines, these indicate the volume of water flow, essential for detecting leaks or changes in water demand.
  • EVENT: A boolean label identifying whether a measurement is considered an anomaly, crucial for training models to recognize signs of potential issues.

Applications and Importance

The dataset not only serves as a valuable resource for developing and benchmarking anomaly detection algorithms but also plays a vital role in enhancing the safety and efficiency of water treatment facilities. By accurately identifying anomalies, predictive models can help prevent serious issues such as contamination events or system malfunctions before they affect water quality and public health.

Link to the dataset

Authors

Group: Duy Tan LE and Julien Guyet

EDA Summary

It is important to note that per the GECCO Organization, the flow rate and the temperature of the water is considered as operational data: changes in these values may indicate variations in the related quality values but are not considered as events themselves.

Missing values count for 0.7% only of the data. As we can see on picture below, after investigation we notice values for every columns are always missing for the same rows, so we will probably drop them when building the model.

Screenshot 2024-06-07 at 16 52 46

To understand better our anomalies, we did a plot per feature. If some data points look like obvious outliers, others are mixed in the crowd and it might be harder to properly detect them. The plot below for the pH value of the water over time is a good example of this:

Screenshot 2024-06-07 at 16 52 23

Finally, we looked at an hourly level and it seems anomalies are:

  • not appearing at 2am and midnight
  • very low at 6pm
  • peaks at 9 and 10am

Appart from that, anomalies are quite evenly distributed.

Screenshot 2024-06-07 at 16 52 33