Classification of H2O with HCl and H2O with NaOH Solution Images Using Otsu Segmentation and CNN
Main Article Content
Abstract
The classification of the image of chemical solutions is crucial in laboratory automation and chemical industry applications; however, it remains challenging when solutions such as H2O with HCl and H2O with NaOH exhibit nearly identical visual characteristics under imaging conditions, particularly when their spectral fluctuation patterns are visually subtle. This study proposes an image classification framework that integrates Otsu-based segmentation in the HSV color space with convolutional neural network (CNN) models to classify High Height Fluctuation (HHF) images generated from a Multi-Scale chemical detection system (MSCS). The dataset consists of 102 HHF images, evenly distributed between the two solution classes. Transfer learning is applied using three CNN architectures, namely EfficientNetV2S, DenseNet201, and EfficientNetB0, and performance is evaluated using accuracy, precision, recall, F1-score, and confusion matrix analysis. The experimental results show that DenseNet201 achieves the best overall performance, while EfficientNetV2S provides competitive results with computational efficiency and Efficient-NetB0 yields a lighter model with lower recall. These findings indicate that combining segmentation with modern CNN architectures can effectively improve classification robustness in chemically similar solutions. This study presents a practical framework that combines Otsu-based HSV segmentation with transfer-learning CNNs to classify chemically similar solutions, providing actionable insights for deep learning-based chemical sensing applications.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work