Object Detection and Regression Based Visible Spectrophotometric Analysis: A Demonstration Using Methylene Blue Solution
Author:
Open Access
- 29 December 2023
- journal article
- research article
- Published by Ediciones Universidad de Salamanca in ADCAIJ: Advances in Distributed Computing and Artificial Intelligence Journal
- Vol. 12 (1) , e29120
Abstract
This study investigates the estimation of the concentration of methylene blue solutions to understand if visible spectrophotometry could be performed using a smartphone and machine learning. The presented procedure consists of taking photos, detecting test tubes and sampling region of interest (ROI) with YOLOv5, finding the hue, saturation, value (HSV) code of the dominant color in the ROI, and regression. 257 photos were taken for the procedure. The YOLOv5 object detection architecture was trained on 928 images and the highest mAP@05 values were detected as 0.915 in 300 epochs. For automatic ROI sampling, the YOLOv5 detect.py file was edited. The trained YOLOv5 detected 254 out of 257 test tubes and extracted ROIs. The HSV code of the dominant color in the exported ROI images was determined and stored in a csv file together with the concentration values. Subsequently, 25 different regression algorithms were applied to the generated data set. The extra trees regressor was the most generalizing model with 99.5% training and 99.4% validation R2 values. A hyperparameter tuning process was performed on the extra trees regressor and a mixed model was created using the best 3 regression algorithms to improve the R2 value. Finally, all three models were tested on unseen data and the lowest MSE value was found in the untuned extra trees regressor and blended model with values of 0.10564 and 0.16586, respectively. These results prove that visible spectrophotometric analysis can be performed using the presented procedure and that a mobile application can be developed for this purpose.Keywords
This publication has 67 references indexed in Scilit:
- A deep reinforcement learning method to control chaos synchronization between two identical chaotic systemsChaos, Solitons & Fractals, 2023
- Application of the immobilized enzyme on magnetic graphene oxide nano-carrier as a versatile bi-functional tool for efficient removal of dye from waterBioresource Technology, 2021
- Fabrication and characterization of sugarcane bagasse–calcium carbonate composite for the efficient removal of crystal violet dye from wastewaterCeramics International, 2020
- Development of standardized method for the quantification of azo dyes by UV-Vis in binary mixturesAnalytical Biochemistry, 2020
- Application of highly sensitive spectrophotometric analysis in detection of metal content in molybdenum reinforced alumina obtained by precursor infiltration of ceramic preformsCeramics International, 2019
- Spectrophotometric analysis of two eye preparations, vial and drops, containing ketorolac tromethamine and phenylephrine hydrochloride binary mixture and their ternary mixture with chlorphenirmaine maleateBulletin of Faculty of Pharmacy, Cairo University, 2018
- Spectrophotometric Analysis of Food Colorants2017
- Regression Modeling Strategies2015
- Spectrophotometric methods for the determination of gemifloxacin in pharmaceutical formulationsActa Pharmaceutica Sinica B, 2011
- Spectroscopy in Forensic Science2003