Abstract
This paper presents an enhanced image processing pipeline designed to automatically and accurately identify the quality control (C) and detection (T) lines on colloidal gold test strips. By integrating CMOS sensor data with a multi-stage workflow—including bilateral filtering for noise reduction and a modified AdaBoost algorithm for robust classification—the proposed system significantly improves the accuracy and precision of line localization compared to traditional template-matching methods.
Introduction
Colloidal gold test strips are essential tools in modern rapid diagnostics, widely used for everything from food safety monitoring to clinical tests like pregnancy and COVID-19 screenings. Despite their ubiquity, manual interpretation of these strips is inherently subjective and prone to error, particularly when analyte concentrations are low and lines appear faint. Automated detection systems offer a solution, but they often struggle with environmental noise, lighting variations, and the challenge of isolating thin lines against a dominant background.
Methodology
Preprocessing with Bilateral Filtering
The first stage of the pipeline involves converting RGB images captured by CMOS sensors into grayscale. To address the noise introduced by dust or uneven lighting, the researchers implemented bilateral filtering. Unlike standard mean or median filters, bilateral filtering smooths background noise while preserving the sharp edges of the detection lines. This edge preservation is critical for the subsequent localization steps.
Improved AdaBoost Algorithm
The core of the detection system is a modified AdaBoost algorithm tailored for the specific geometry of test strips. The researchers introduced two key innovations:
- Error Weighting for Class Imbalance: Because the detection lines occupy a very small fraction of the total image area, the researchers treated line detection as a "small probability event." They adjusted the weak classifier training to penalize missing a line (Type A error) more heavily than misidentifying background noise (Type B error).
- The $3\sigma$ Robustness Rule: To prevent the model from overfitting to outliers or corrupted pixels, a weight-capping mechanism was introduced. If a sample's weight deviates from the average by more than three standard deviations ($3\sigma$), its weight is no longer increased, ensuring that noise does not hijack the training process.
Results and Discussion
The improved AdaBoost algorithm (labeled C2 in the study) demonstrated superior performance over standard AdaBoost (C1) and traditional template-matching techniques. ROC curve analysis indicated a higher detection rate across various false detection thresholds, suggesting stronger generalization capabilities.
Qualitative analysis showed that the improved algorithm precisely clips the "useless blank area" between the control and detection lines. By isolating only the relevant pixels, the system provides a much cleaner dataset for calculating the final chemical concentration, reducing the interference that typically plagues automated readers.
Conclusion
By combining edge-preserving preprocessing with a noise-robust boosting algorithm, this research provides a reliable framework for automated lateral flow assay interpretation. Future work will focus on integrating this localization pipeline into mobile "lab-on-a-chip" platforms, enabling laboratory-grade quantification using standard smartphone cameras in field environments.
Summary updated