Development of a Detection Algorithm for Use with Reflectance-Based, Real-Time Chemical Sensing

Anthony P. Malanoski, Brandy J. Johnson, Jeffrey S. Erickson, David A. Stenger2016

TL;DR

This paper presents a novel algorithm for real-time detection of chemical events using color-changing indicators and commercially available RGB sensors. The algorithm focuses on identifying the occurrence of a detection event, rather than specific target identification, making it suitable for portable, autonomous sensing applications. It achieves this by filtering out electronic noise and adaptively setting detection thresholds, demonstrating promising sensitivity and specificity for ethanol detection.

What Problem Does This Paper Address?

The development of small, portable, and autonomous chemical sensors is a critical need for long-term environmental monitoring and early threat detection. Existing technologies often struggle with cost, power requirements, and the ability to provide continuous, real-time data. While sensor arrays offer advantages over single-point detectors, effectively processing the data from these arrays to reliably identify detection events, especially in a real-time, onboard manner, remains a challenge. This paper addresses the need for an algorithm that can process colorimetric data from sensor arrays in real-time, distinguishing genuine detection events from electronic noise and accommodating variations in sensor performance and indicator behavior.

Methods

The core of this work is the development of a tiered detection algorithm. The first tier focuses on identifying significant changes in color value, filtering out electronic noise. This is achieved through two main approaches:

  • Standard Deviation Based Algorithm (s1std, s2std): This method analyzes the standard deviation of RGB color channels over a sliding window of recent data points. A detection event is flagged if the standard deviation exceeds a certain threshold relative to the average intensity, or if multiple color channels show significant deviations. The algorithm can be configured to require a certain number of "seats" (individual indicators) to report a detection.
  • Slope Based Algorithms (s1, s2, s3): This approach analyzes the slope of color value changes over time. It calculates the angle between the slopes of baseline and current measurement windows. A detection event is triggered if this angle exceeds a predefined threshold. This method also incorporates the r² value from linear regression to assess the quality of the slope calculation. Different variations of this algorithm were explored, including single, dual, and triple seat requirements, and varying angle thresholds.

A key aspect of the algorithm is its ability to automatically adjust to varying indicator behaviors and device configurations by using adaptive thresholds and considering multiple signal channels (RGB) and multiple indicator elements.

Datasets

The authors utilized data collected from two prototype sensor devices, PT3 and PT5. These datasets were generated from experiments involving:

  • Petri dish exposures: This involved exposing porphyrin indicators to various volatile organic compounds (VOCs) like ethanol, methanol, isopropanol, acetone, acetic acid, and methyl salicylate at different concentrations. This method provided brief peak target concentrations.
  • Glove enclosure exposures: This method involved continuous data collection over extended periods (up to 14 days) with controlled exposure and purge cycles of ethanol at concentrations ranging from 0.05 ppm to 1.6 ppm. This approach aimed to simulate more realistic environmental monitoring conditions.

The data collected from these experiments served as the basis for developing, tuning, and evaluating the detection algorithms.

Key Insights and Ideas

  • Focus on Event Occurrence, Not Just Target ID: The paper highlights the practical advantage of an algorithm that reliably detects when something is present, rather than immediately trying to identify what it is. This simplifies onboard processing for portable devices.
  • Adaptive Thresholding is Crucial: The algorithm's ability to automatically adjust detection thresholds based on noise levels and indicator behavior is a significant advantage, making it more robust to variations between devices and indicators.
  • Slope-Based Detection Outperforms Standard Deviation for Gentle Changes: While the standard deviation method worked well for sharp, distinct changes (like in Petri dish experiments), the slope-based algorithm proved more effective for the slower, more gradual concentration changes observed in the glove enclosure experiments. This suggests that the choice of algorithm should be tailored to the expected nature of the chemical events.
  • Integration Time is a Key Parameter: The study demonstrates a clear trade-off between integration time, signal-to-noise ratio, and the resulting algorithm performance. Longer integration times (up to 400 ms) improved sensitivity and specificity for the PT5 device by reducing noise, but excessively long times (500 ms) did not yield further gains and could even decrease specificity.
  • Multi-Indicator Synergy: The paper suggests that combining responses from multiple indicators (seats) can significantly improve specificity and reduce false positives, a crucial aspect for reliable chemical detection.

Key Results

  • The standard deviation-based algorithm (s1std) achieved a sensitivity of 0.87 and specificity of 0.92 for ethanol detection at 8 ppm in Petri dish experiments.
  • In glove enclosure experiments, the standard deviation algorithm showed poor performance (sensitivity 0.07), while the slope-based algorithm (s1) achieved a sensitivity of 0.50 and specificity of 0.90 for PT5 data.
  • For PT3 data in enclosure experiments, the slope-based algorithm (s1) showed improved sensitivity (0.82) compared to the standard deviation method.
  • With optimized integration times (400 ms) and a dual-seat slope-based algorithm, the PT5 device achieved a sensitivity of 0.88 with 0.98 specificity at a concentration limit of 1.58 ppm ethanol.
  • A three-seat variant of the slope-based algorithm with a 0.45° angle threshold achieved a sensitivity of 0.85 with no false positives at a 0.16 ppm threshold.

Limitations and Future Work

  • Target Identification: The current algorithm focuses on event occurrence and does not perform specific target identification. Future work would involve developing higher-tier algorithms to classify or identify the detected chemical.
  • Concentration Thresholds: While the algorithm can detect events, achieving very low detection thresholds (e.g., 0.05 ppm ethanol) with high sensitivity and specificity remains a challenge.
  • Device-Specific Tuning: The performance of the algorithms can vary depending on the specific sensor device (PT3 vs. PT5) and its manufacturing variations, necessitating some level of tuning.
  • Sampling Increment vs. Integration Time: The paper notes that longer integration times limit the sampling increment, impacting the real-time nature of data collection. Future work aims to modify devices to allow for shorter sampling increments without sacrificing integration time.
  • Firmware Implementation: The authors plan to incorporate the developed algorithm into device firmware for automated reporting, moving towards fully autonomous operation.
  • Broader Indicator Applicability: While developed for porphyrin and metalloporphyrin indicators, the authors suggest the approach should be applicable to other colorimetric indicators, including reactive ones.

Summary updated

Abstract

Here, we describe our efforts focused on development of an algorithm for identification of detection events in a real-time sensing application relying on reporting of color values using commercially available color sensing chips. The effort focuses on the identification of event occurrence, rather than target identification, and utilizes approaches suitable to onboard device incorporation to facilitate portable and autonomous use. The described algorithm first excludes electronic noise generated by the sensor system and determines response thresholds. This automatic adjustment provides the potential for use with device variations as well as accommodating differing indicator behaviors. Multiple signal channels (RGB) as well as multiple indicator array elements are combined for reporting of an event with a minimum of false responses. While the method reported was developed for use with paper-supported porphyrin and metalloporphyrin indicators, it should be equally applicable to other colorimetric indicators. Depending on device configurations, receiver operating characteristic (ROC) sensitivities of 1 could be obtained with specificities of 0.87 (threshold 160 ppb, ethanol).
BibTeX
@misc{malanoski2016development,
  author = {Anthony P. Malanoski and Brandy J. Johnson and Jeffrey S. Erickson and David A. Stenger},
  title = {{Development of a Detection Algorithm for Use with Reflectance-Based, Real-Time Chemical Sensing}},
  year = {2016},
  doi = {10.3390/s16111927},
}

Loading related content...

Figure