Design and development of a machine olfaction with the capability of remote information transmission for food industry applications

Document Type : Research Paper

Authors

Mechanical Engineering of Biosystems Department, Faculty of Agriculture, Shahrekord University, Shahrekord, Iran

Abstract

Odor fingerprinting technology with machine olfaction is one of the new methods that has attracted the attention of researchers in the field of food quality inspection, and it includes an array of selective sensors connected to a pattern recognition program. Providing the ability to transmit information remotely with a wireless machine olfaction can be of great help in using this system on the Internet of Things (IoT) platform. In this research, the design and development stages of the electronic nose system with the ability to connect wirelessly with the computer have been described. ESP32 board was used for this device. ESP32 is a low-cost and low-power microcontroller board of the SoC chip type. This type of chip is a type of integrated circuit that integrates several components of a computer or electronic system into a single chip. These components typically include the processor, memory, I/O interfaces, and other features such as graphics processing and networking capabilities. In the written program, receiving data from sensors is done with the I2C communication protocol. The voltage of the sensors is calculated and converted to digital values by the ADS1115 analog-to-digital converter. Finally, in order to test the built device, formalin adulteration was used in milk, and the device showed a good performance in transmitting information. The voltage response of the sensors to the change in the odor pattern in the samples was measured for three groups of milk (pure milk and milk samples adulterated with formalin at volume percentages of 0.1 and 1 g/100 cc) and finally the response of the sensor array for all samples was recorded and stored. The sensor (TGS822) showed the highest loading coefficient in separating samples containing formalin, followed by the sensors (MQ135) and (MQ7) which had a significant effect in separating the samples.

Keywords

Main Subjects


EXTENDED ABSTRACT

 

Introduction

Checking food quality is an important issue in today's food industry, and various researches have been conducted in this regard. Due to the fact that food products are of general use and have many customers, this importance is doubled. The machine olfaction is one of these tools in checking the quality of food. Many of the devices and methods currently in use are located at a fixed location, meaning that the sample must be specifically transported from the production environment or factory to the laboratory location. Therefore, it is necessary to build a portable device that can transmit information wirelessly to overcome these problems and eliminate the unnecessary costs of testing. These items can help monitor food quality more closely.

Materials and methods

The printed circuit board was designed in Proteus software. In this board, a 5V line was used to feed the sensors' heater and a 3.3V line was used to obtain the signals. In this device, two ADS1115 modules and one sht20 temperature and humidity sensor that use the I2C protocol are used at the same time. For this purpose, each of the two adc modules must have a specific address to communicate with the main board. In the written program, receiving data from sensors is done with the I2C communication protocol. The voltage of the sensors is calculated and converted into digital values ​​by the ADS1115 analog-to-digital converter. These converters send data to the ESP32 board through two SCL and SDA lines, and the central board receives the data and processes it to be sent by Wi-Fi.

Results and discussion

The process of measuring the odor and receiving the signal of the gas sensors was timed in three stages: baseline correction, gas injection of the space above the milk sample into the sensor chamber, and cleaning the sensor chamber. At first, oxygen gas was transferred to the sensor chamber for 125 seconds, and at the end of this time, the output signal of all sensors was considered as the base signal. Linear discriminant analysis was used in order to investigate the differentiation between pure milk and formalin adulterated groups. This method is similar to PCA as a feature reduction method that determines the upper plane with a smaller dimension and on which points with higher dimensions are imaged.

conclusion

For LDA methods, two main components and second order method were used. The LDA method has the ability to distinguish pure milk from adulterated formalin samples with different percentages with an accuracy of 83%. The tests performed on milk samples containing adulterated formalin showed the quality of the system's information transmission and the positive performance of the device. The evaluation of the wireless smell machine device for food products will be further elaborated in future research.

Credit authorship contribution statement

Mahdi Ghasemi-Varnamkhasti: Writing – Supervision, Original draft, Methodology.

Zahra Izadi: Methodology, Experiments design, and Resources.

Data Availability Statement

Data available on request from the authors. All the data used in this original research are presented throughout the text and in the form of Tables and Figures.

Ethical considerations

The authors avoided data fabrication, falsification, plagiarism, and misconduct.

Funding

This research has received the financial supports from the Institute of Standards and Industrial Research of Iran (Chaharmahal and Bakhtiari branch).

Acknowledgments

The authors extend their sincere appreciation to the Institute of Standards and Industrial Research of Iran (Chaharmahal and Bakhtiari branch) and Shahrekord University. Also, the authors thank to Mr. Mohammad Hossein Shams, Daryush Valipour, Amir Hossein Mohammadi, Mohammad Rasoul Amini and Mrs. Mahsa Edris for the cooperation in this project.

Conflict of interest

The author declares no conflict of interest.

Dadhaneeya, H., Nema, P., and Arora, V., (2023). Internet of Things in food processing and its potential in Industry 4.0 era: A review, Trends in Food Science & Technology, 139, 104109.
Das, S., Sivaramakrishna, M., Biswas, K., & Goswami, B. (2015). A low cost instrumentation system to analyze different types of milk adulteration. ISA transactions, 56, 268-275.
Kumar, S., Raut, R., Agrawal., N., Cheikhrouhou, N., Sharma, M., Daim, T., (2022). Integrated blockchain and internet of things in the food supply chain: Adoption barriers. Technovation, 118, 102589.
Loutfi, A., Coradeschi, S., Mani, G. K., Shankar, P., & Rayappan, J. B. B. (2015). Electronic noses for food quality: A review. Journal of Food Engineering, 144, 103-111.
Ghasemi-Varnamkhasti, M., Mohtasebi, S. S., Siadat, M., & Balasubramanian, S. (2009). Meat quality assessment by electronic nose (machine olfaction technology). Sensors, 9(8), 6058-6083.
Ghasemi Varnamkhasti M. (2011). Design, development and implementation of a bioelectric olfactory machine and tongue system based on metal oxide semiconductor (MOS) sensors for detecting changes in beer quality in combination with pattern recognition analysis methods. PhD thesis in Agricultural Machinery Mechanics. Faculty of Agriculture. University of Tehran. Iran. (In Persian)
Tan, Y., Chen, Y., Zhao, Y., Liu, M., Wang, Z., Du, L., Wu, C., Xu, X. (2025). Recent advances in signal processing algorithms for electronic noses. Talanta, 283,  127140.
Tohidi, M. Ghasemi, Varnamkhasti, M. Mohtasbi, S.S. Bondayian, M. 2016. Construction and development of an olfactory machine system combined with pattern recognition methods for detecting formalin adulteration in raw milk. Iranian Journal of Biosystems Engineering, 47, 761-770. (In persian).
Wilson, A. D., & Baietto, M. (2009). Applications and advances in electronic-nose technologies. sensors, 9(7), 5099-5148.
Xu, Q., Sum Y., Cai, J. (2025). Detection of citrus Huanglongbing at different stages of infection using a homemade electronic nose system. Computers and Electronics in Agriculture, 229, 109845.