Object Detection and Regression Based Visible Spectrophotometric Analysis: A Demonstration Using Methylene Blue Solution

Author:

Aytaç Ersin

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

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3