Non Destructive Approach For Detection of Food Freshness Using IoT
Non Destructive Approach For Detection of Food Freshness Using IoT
Abstract- Food and nutrition is essential for all li ving balanced diet with a higher intake of fiber, vitamins, and
beings to survi ve and perform vi tal acti vi ties like minerals. However, these sources of energy also attract
growth, development, and renewal of damaged cells. It is bacteria and environmental conditions such as humidity and
important to consi der various factors that can affect the temperature pro mote their growth, causing food spoilage
safety and quality of perishable foods, such as light, O2 and potential harm to human health. Food-borne illnesses
levels, temperature, humi dity, spoilage bacteria, and result in hospitalizat ion and death, affecting a large number
other environmental condi tions. When stored at room of individuals each year. Therefore, it is crucial to detect
temperature, food may undergo chemical reactions that food spoilage from the production to consumption stages.
affect its taste, texture, and aroma. Consuming s poiled
food can result i n foodborne illnesses, which can be Evaluating the freshness of food through manual methods,
dangerous. This research study presents an efficient such as smelling, tasting, and observing its color and
solution by utilizing IoT technol ogy to manage food texture, is time-consuming and susceptible to errors due to
storage. The proposed system is designed to address the human and environ mental factors. Therefore, it’s important
challenges associated wi th monitoring the quality of to progress in developing a system that can automat ically
stored food. The proposed solution combi nes vari ous IoT detect spoilage of food without human intervention. Digital
devices, cloud services, and web applicati ons. Computer image processing and machine learning techniques have
vision technol ogy offers a non-intrusive, automated, and recently been proposed as a means of detecting food
cost-effecti ve approach to eval uate food quality. This spoilage, offering significant potential for the food industry.
innovati ve soluti on can accurately assess the quality of Adopting a detection technology that is non-destructive and
food products without damaging them, allowing for a automatic can enhance food quality, increase production
more efficient eval uation process. The experimental efficiency, and reduce labor intensity, which is essential in
results demonstrate that the proposed system is effecti ve addressing growing concerns about food safety and quality.
in detecting food quality and promptly alerting users
about any degradation in food quality.
I. INTRODUCTION
In humans, food sources such as meat, meat products, fruits,
and vegetables provide the necessary energy. The
consumption of fresh fruits and vegetables has become Fig. 1 Fruit And Vegetable Spoilage Is A Hidden Contributor T o
increasingly popular worldwide as people aim for a mo re Underdevelopment
For the objective of maintaining the quality of food and these gases in a particular food item. The objective of the
preventing spoilage, it is crucial to mon itor various system is to detect spoiled food items and activate a buzzer
parameters such as pH, humidity, and o xygen levels. via NodeMCU, while also transmitting the collected data to
Changes in these parameters can signal the potential ThingSpeak for analysis in the cloud. To determine whether
spoilage of food products. Biosensors can also be used to a food item is spoiled or not, the authors utilized logistic
detect bacterial contamination in food samples. Our regression and trained the system using relevant data.
proposed system includes a monitoring device equipped
with gas sensors, pH sensors, and moisture sensors that
provide real-time data. The data collected is then transmitted
to a laptop and a Raspberry Pi mini-co mputer with a
mach ine-learning model that can analy ze the data and
determine the current state of the food. Based on this
analysis, the system can determine whether the food is safe
to consume or needs to be discarded. This approach is a
promising way to prevent food spoilage and guarantee that
food products are safe and of high quality.
process, the authors propose a simp le, portable solution built measure the pH of dairy p roducts, while gas sensors detect
on the Internet of Things (IoT) technology and a set of the amount of natural gas emitted by a particular food item.
apples. A microcontroller that’s based on Arduino is utilized This method of evaluating food quality is useful in
for analog operation, and the concept is validated through a situations where food is tightly packed in a container or
pre-calibrated indexing table. The study specifically when food degradation occurs due to a lack of fresh air
examines how the quality-checking process can be (o xygen) or due to the growth and activities of
conducted while monitoring the ripening of fruits. microorganis ms, particu larly bacteria , and yeasts. The real-
time data fro m these sensors is transmitted to a mini-
computer, such as a Raspberry Pi, for analysis and
III. PROPOS ED METHODOLOGY
processing. This subsystem can be used to mon itor fruits,
vegetables, meat, grains, and dairy products such as milk
Our project objective is to design a device that utilizes and curd.
sensors to detect the freshness and spoilage of food with
high accuracy. To increase detection accuracy and reduce pH, a measure of acid ity or alkalin ity, is determined by the
false negatives, we will use a combination of both sensors potential of hydrogen in a solution and is usually measured
and openCV. Co mbin ing IoT and machine learning will on a scale ranging fro m 0 to 14. In the case of dairy
enhance the device's interoperability and potential products such as milk and yogurt, it is crucial to maintain a
applications. The goal is to increase the shelf life o f foo d standard pH since even minor variations can have a
products by reducing or managing senescence, which is the
natural deteriorat ion of the product due to various factors
such as aging, ripening, and exposure to environ mental
stressors.
Moisture is the presence or amount of water or other liquid IV. RES ULTS
substance within a material, either as a component of its
This section will present the results and findings obtained
composition or as a coating on its surface. In the case of fro m the e xperiments conducted. 75 tests were perfo rmed
Meat and poultry, they are comprised of natural water, using various types of apples, bananas, and oranges. The
muscle tissue, bone, and fat. The muscle tissue accounts for confusion matrix is shown in Tab le 2 belo w. An accuracy of
around 75% of the meat, and the water content varies 96% is calculated from the matrix.
depending on the type of meat. Appropriate water content is
T ABLE 1 SHOWING DET ECT ION BY PROPOSED SYST EM
crucial to maintain meat freshness, as excessively wet or dry
meat is unsuitable for consumption. Excessive water content Type of Fresh/Rotten Detected by
can modify the pH level and chemical co mposition of meat, S. No Fruit System
ultimately affecting its freshness. Therefore, a mo isture
sensor is the most effective way to measure the moisture 1 Apple Fresh Fresh
content of chicken and beef.
2 Banana Rotten Rotten
Ethanol is a natural substance, common ly referred to as
3 Tomato Fresh Fresh
alcohol, that has several uses. It can be utilized as a method
to artificially locate ripe fruit, and lower amounts of ethanol 4 Orange Fresh Fresh
found in fruits may serve as a feeding catalyst. During fru it
5 Apple Rotten Rotten
maturation, co lor, taste, sugar, and ethanol content are
modified. As bananas ripen, they emit various gases,
including ethylene and small quantities of ethanol. As time T ABLE 2 CONFUSION MAT RIX
passes, ethanol production increases. To monitor the
production, presence, and concentration of ethanol in fruits,
gas sensors are employed. Actual
Fig.5 Example images used in the project that consists of different stages of Fig. 6 pH sensor placed in milk
fresh and rotten apple, banana, and orange
Fig. 7 T he graph plotting of the pH values of fresh milk over time showing
a gradual decline in pH as the milk becomes increasingly sour VII. CONCLUS ION
This paper suggests a non-destructive approach for
As milk spoils, it undergoes a chemical change that results in increased
acidity and a decrease in its pH value. The bacterium Lactobacillus found identifying bru ises in food products by utilizing co mputer
in milk breaks down lactose sugar into lactic acid, causing the pH level to vision, thereby ensuring their quality and safety.
decline. The rate of pH decrease would accelerate as the milk spoils further, Additionally, it proposes an IoT-based system that monitors
eventually falling below 4.6 - the pH level at which milk is no longer safe
and maintains food storage rooms to preserve the quality of
for human consumption.
food items for a more extended period. The comb ination of
sensors, IoT, and mach ine learning can revolutionize the
V. FUTURE WORK food industry, reduce manual inspection tasks, and
At present, we are testing different dairy and fruit products minimizes human errors. This will create an environment
to expand the capabilities of our device by incorporating where food manufacturers are encouraged to s ell healthier
new sensors and optimizing the current ones. Additionally, food products and increase awareness of healthy food
we plan to integrate an embedded system into the device, options among consumers. As a result, the food processing
allo wing for data transmission to a central server that can be industry, which manufactures various food products will
used for research purposes, as well as providing users with
have to prioritize food quality detection and management.
access to their data history. In a bid to enhance the accuracy
of results, we intend to integrate an Artificial Neural
Network(ANN) into the central server to analy ze the data
VIII. REFERENCES
and convey/communicate the findings to end-user
contraptions for practical application. [1] N. Hebbar, "Freshness of Food Detection using IoT and Machine
Learning," 2020 International Conference on Emerging T rends in
Information Technology and Engineering (ic-ETITE), 2020, pp. 1-3, doi:
10.1109/ic-ETITE47903.2020.80.
VI. APPLICATIONS
[2] Naveed Shahzad, Usman Khalid, Atif Iqbal, Meezan-UrRahman,
• Industry: The implementation of this model in food “eFresh-A device to detect food freshness” International Journal of Soft
Computing and Engineering (IJSCE) ISSN: 2231-2307, Volume-8 Issue-3,
processing industries can lead to more efficient mon itoring September 2018.
of different categories of food items and reduce the
[3] E. Henrichs and C. Krupitzer, "Towards Adaptive, Real-T ime
consumption of t ime and manpower. As a large nu mber of Monitoring of Food Quality Using Smart Sensors," 2022 IEEE
food items are processed on a conveyor belt, s ensors placed International Conference on Autonomic Computing and Self-Organizing
across the belt can detect spoilage and provide management Systems Companion (ACSOS-C), CA, USA, 2022, pp. 70-71, doi:
10.1109/ACSOSC56246.2022.00034.
with data on when and where most occurrences of spoilt
food items occur. Th is data can be used to take necessary [4] B. Sarmah and G. Aruna, "Detect ion Of Food Quality and Quantity at
Cold Storage using IoT," 2020 International Conference on Wireless
action to prevent further spoilage, resulting in imp roved
Communications Signal Processing and Networking (WiSPNET), 2020, pp.
food quality and reduced waste. 200-203, doi: 10.1109/WiSPNET48689.2020.9198348.
• Retail Stores: The suggested model can be advantageous [5] Keshavamurthy, & Mariyam, Steffi & Meghamala, M & Meghashree,
M & Neha, (2019). Automatized Food Quality Detection and Processing
in supermarkets and retail stores by placing an array of
System Using Neural Networks. 1442-1446.
ammon ia and oxygen sensors inside shelves and containers. 10.1109/RTEICT46194.2019.9016919.