University Chemistry ›› 2026, Vol. 41 ›› Issue (1): 394-405.doi: 10.12461/PKU.DXHX202506011

Special Issue:

• Special Subject • Previous Articles     Next Articles

Real-Time Visual Rapid Analysis of Chemical Oxygen Demand (COD) Based on Smartphone RGB Imaging and a WeChat Mini-Program

Shitong Wang1, Yangyang He2, Xihong Xiong3, Wei Zhang1, Meilin Xia1, Fenglin Tang1   

  1. 1 College of Chemistry and Chemical Engineering, China West Normal University, Nanchong 637000, Sichuan Province, China;
    2 College of Mathematics and Information, China West Normal University, Nanchong 637000, Sichuan Province, China;
    3 College of Computer Science, China West Normal University, Nanchong 637000, Sichuan Province, China
  • Received:2025-06-03 Accepted:2025-09-23 Published:2025-12-30
  • Contact: Fenglin Tang E-mail:tfl06180205@cwnu.edu.cn

Abstract: Chemical oxygen demand (COD) serves as a crucial parameter for assessing organic pollution in water and represents a routine analytical requirement. Building upon the standard method HJ/T399-2007 (“Water Quality-Determination of Chemical Oxygen Demand-Rapid Digestion Spectrophotometric Method”), this study innovatively developed a smartphone-based real-time visual detection system for COD analysis. The system utilizes smartphone color recognition to extract RGB values from digested water samples and establishes a ternary multiple regression model based on these values. A dedicated WeChat mini-program was developed to enable online visualization and analysis of COD, facilitating rapid on-site measurement of multiple water samples. This approach demonstrates advantages including operational simplicity, cost-effectiveness, and rapid analysis. Educational practice has shown that this technology not only finds application in environmental monitoring but also effectively enhances analytical chemistry pedagogy. It promotes outdoor teaching activities for undergraduates, stimulates students’ interest in chemistry, fosters scientific thinking and innovation awareness, and cultivates rigorous scientific attitudes.

Key words: Chemical oxygen demand (COD), RGB value, Smartphone, WeChat mini-program development