Research on image processing algorithm of immune colloidal gold test paper detection

Guang Yang, Tiefeng Wang, Peng ZhangVibroengineering 2020

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.

A typical colloidal gold test strip showing the control and test lines.

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:

  1. 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).
  2. 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.
Histogram analysis used during the image processing and feature extraction phase.

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

Abstract

In order to better solve the problem of automatic identification of quality control line and detection line in the detection of gold standard test strip, this paper proposes to collect the image information of gold standard test strip after color rendering through CMOS sensor, preprocess the obtained information, transform RGB image into gray image, build cloud model in the CIELAB/HSV/HSL space, and apply the improved AdaBoost algorithm to determine the position of detection line and quality control line Place. Compared with the traditional template matching method, it improves the accuracy and accuracy of recognition.
BibTeX
@inproceedings{yang2020research,
  author = {Guang Yang and Tiefeng Wang and Peng Zhang},
  title = {{Research on image processing algorithm of immune colloidal gold test paper detection}},
  booktitle = {Vibroengineering},
  year = {2020},
  doi = {10.21595/vp.2020.21348},
}
Figure