Object Detection and Regression Based Visible Spectrophotometric Analysis: A Demonstration Using Methylene Blue Solution
-
Published:2023-12-29
Issue:
Volume:12
Page:e29120
-
ISSN:2255-2863
-
Container-title:ADCAIJ: Advances in Distributed Computing and Artificial Intelligence Journal
-
language:
-
Short-container-title:ADCAIJ
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.
Publisher
Ediciones Universidad de Salamanca
Reference76 articles.
1. Ali, M., 2020. PyCaret: An open source, low-code machine learning library in Python. https://www.pycaret.org 2. Arabzadeh, V., Sohrabi, M. R., Goudarzi, N., & Davallo, M. (2019). Using artificial neural network and multivariate calibration methods for simultaneous spectrophotometric analysis of Emtricitabine and Tenofovir alafenamide fumarate in pharmaceutical formulation of HIV drug. Spectrochimica Acta Part A: Molecular And Biomolecular Spectroscopy, 215, 266-275. https://doi.org/10.1016/j.saa.2019.02.077 3. Aragaw, T. A., & Angerasa, F. T. (2020). Synthesis and characterization of Ethiopian kaolin for the removal of basic yellow (BY 28) dye from aqueous solution as a potential adsorbent. Heliyon, 6(9), e04975. https://doi.org/10.1016/j.heliyon.2020.e04975 4. Ariaeenejad, S., Motamedi, E., & Salekdeh, G. H. (2021). Application of the immobilized enzyme on magnetic graphene oxide nano-carrier as a versatile bi-functional tool for efficient removal of dye from water. Bioresource Technology, 319, 124228. https://doi.org/10.1016/j.biortech.2020.124228 5. Arpaia P., Azzopardi, G., Blanc, F., Bregliozzi, G., Buffat, X., Coyle, L., Fol, E., Giordano, F., Giovannozzi, M., Pieloni, T., Prevete, R., Redaelli, S., Salvachua, B., Salvant, B., Schenk, M., Camillocci, M. S., Tomás, R., Valentino, G., Van Der Veken, F. F., & Wenninger, J. (2021). Machine learning for beam dynamics studies at the CERN Large Hadron Collider. Nuclear Instruments And Methods In Physics Research Section A: Accelerators, Spectrometers, Detectors And Associated Equipment, 985, 164652. https://doi.org/10.1016/j.nima.2020.164652
|
|