Adulteration in milk is a common scenario for gaining extra profit, which may cause severe harmful effects on humans. The qualitative spectroscopic technique provides a better solution for detecting the toxic contents of milk and foodstuffs. All the available spectroscopic methods for milk adulterant detection are based on laboratory-based with costly equipment. This laboratory-based detection takes a long time and is more expensive, which may not be afforded by a common man. To overcome this issue, this research work involves the design and development of a low-cost, portable, multispectral, AI-based, non-destructive spectroscopic sensor system that can be used to detect the milk adulterant in real-time. The designed sensor system uses the spectroscopic method with wavelength ranges from (410-940nm) which consists of three different bands Ultraviolet (UV), visible, and Infra-Red(IR) spectrum to improve the accuracy of detection. The sensor system is connected to the internet via the developed IoT application module, which displays the detected adulterant results in a dedicated web page designed for this purpose. This IoT application enables the adulterant detected results published on the internet immediately with location information for bringing transparency. Adulterant detection problem is formulated as a classification problem and solved by machine learning algorithms of a decision tree, Naive Bayes, linear discriminant analysis, support vector machine and neural network model. The average accuracy of linear discriminant analysis, support vector machine, Naive Bayes, decision tree and neural network model are obtained as 88.1%, 90%, 90%, 91.7% and 92.7% respectively. Genetic algorithm framework is formulated for hyperparameter tuning of neural network model which improved the accuracy from 92.7% to 100%. The model is trained for five different classes of four adulterants, namely Sodium Salicylate, Dextrose, Hydrogen Peroxide, Ammonium Sulphate, and one pure milk sample.
Read full abstract