Professional Documents
Culture Documents
A Deep Learning Approach To Smart Refrigerator System With The Assistance of IOT
A Deep Learning Approach To Smart Refrigerator System With The Assistance of IOT
assistance of IOT
recent decades, the refrigerator is developing faster and faster. increasingly important role in our daily life and it has brought
Smart refrigerator is constantly evolving. Most of the functions of great amenities to people’s lives as more and more food is put into
intelligent refrigerator is only limited to the original traditional the refrigerator. The application of intelligent refrigerators will
refrigerator. With the development of information technology, if give busy people a very convenient life, so that those people can
the smart refrigerator and information technology can be put more time and energy into the work and study, let the life can
combined, then smart refrigerator will make people's lives more be in an orderly way.
convenient undoubtedly. Smart refrigerators are connected
appliances that know what items are going into the fridge, their
expiry dates. The type of person who frequently forgets what goes 2 PROBLEM FORMULATION
into the fridge it’s very beneficial for those kinds of people.
Smart Devices in general is a relatively new concept in the field of
Internet of things (IoT). Despite it being a new idea, many model
Under the hood of this focus the study examines the following set
has been proposed to make a workable smart refrigerator. But
of questions: use of sensitive scanners in the refrigerator for food
almost all of those models rely heavily on pricey sensors for
preservation without the help of user in intelligent refrigerator
perceiving the environment of the refrigerator to act upon it. Also
system, determine the way of combining smart refrigerator and
many of the proposed methods are incomplete in the sense that
information technology, convenient people live in intelligent
they only monitor the inner temperatures or provide cold water on
refrigerator system, demonstrate, explore and conceive the total
glass holds. But those are not fully smart. Also there are some
networking system in intelligent refrigerator system.
models that can do more but they are very expensive for day to
day use. Keeping those things in mind we asked ourselves, which
In previous works and studies, a model of smart refrigerator was
are the interactions people do the most with refrigerator and which
proposed based on the technology of radio frequency
is more time consuming? And the answer we got was tracking the
identification, combined with the Internet and information
product usages and refilling if necessary. That's why in this
processing technology. Main goal was to record the information
research we tried to propose a model that is not that costly and can
of foods with the assistance of sensors and Internet. When the
automate our interaction with refrigerator.
food is over or a week before shelf life of the food, a warning will
be sent to the user [4]. A design technique of smart refrigerator
was proposed which is able to sense the quantity as well as quality 3 PROPOSED MODEL
of the food items kept inside it. Its main goal was to notify the
current status of food items through an android app on mobile For developing this model, we divided the problem into two
phone. It will save money and food wastage as well as help us to sections. One handles Hardware and sensor related works and
live a healthier lifestyle [5]. Researchers also represented smart another handles software related works. We also divided food
refrigerator as a container of healthy food. A research was criteria into three parts packaged foods, raw foods and processed
focused on observing the suitable meal pattern that can be food. For packaged food we will use RFID to get details of the
suggested from the food currently present in the Smart food. But it is not possible for raw and processed food. For that
Refrigerator; enforcing the information regarding healthy recipes. we use camera and image processing techniques to determine the
This model of sensor-equipped food container of a smart food, quality of food and quantity of food.
refrigerator was proposed demonstrating the performance in
detection of food. This system consists of sensor system,
information server & user applications which will suggest the
automatic monitoring of food intake that can provide intuitive
feedback to users [9]. Another proposal of a smart refrigerator
system was to determine an identity of the food item, an
associated date of the food item and a compartment containing the
food item using one or more tag readers. Also, the system may
receive item usage information when a user wishes to use the food
item and can change the temperature of the food item [10]. In a
paper, to improve the accuracy in the case of fruit recognition;
weight information along with multi convolution neural models Figure 1: General Food Classification
have been combined which is named as integrated data fusion
approach by the authors. The authors claim that this approach has
We also propose to divide our system into six modules.
got a significant improvement in the fruit recognition system
compare to any other approach previously introduced [11].
Data Collection Module: Perception is the biggest constraint
when it comes to learning or making decision. It is not any
However, with the improvement of people’s living standards and different in this case as well. To perceive our model uses two
the accelerating pace of people’s life, the refrigerator is playing an sensors, RFID sensors for packaged foods and camera sensors for
ICCA 2020, January 10 - January12, Dhaka, Bangladesh I. Mohammad et al.
4 IMPLEMENTATION
Even though this is mainly a model based research, it comes with
a small demonstration to show that it is possible to implement this
as a full-fledged solution. For the demonstration, we implemented
CNN architecture to detect food from images. It was built with the
help of Google’s Inception V3 weight and Food 101 dataset from
Kaggle. A small implementation was also done on device end
with Arduino. Arduino detects the push on the switch, takes the
pictures and information from RFID and sends them to a central
server for processing. The trained CNN Model is also on the
central server.
Dataset: There are many dataset present for food classification
on Internet. But for this research we used Food-101 As Our
Figure 2: Workflow of the system dataset [6]. Food 101 contains 101 classes of food item. Those
classes contain raw foods, processed foods, and mixed foods. Also
Analysis Module: Analysis module is the main brain of our same class foods have pictures in multiple scenarios. Every Class
system. Analysis Module is what does the main classification and has 1000 samples in them.
detection of the products present in Refrigerator. There are two
main components. One is a CNN architecture that classifies food.
It will also try to detect the quality of the food and the quantity of
the food present in the refrigerator with the help of image
processing. The processing will be done on the six divided
images. Another component is a JSON analyser which will parse
the JSON, compare the current data with the previous data taken
from previous JSON to detect changes. It will also track the
products expiry dates to detect if there is any spoiled food present Figure 3: Food-101 Dataset[6]
in the refrigerator.
ICCA 2020, January 10 - January 12, 2020, Dhaka, Bangladesh I. Mohammad et. al
Every class has 250 manually reviewed test images and 750 train
images. The dataset has in total 101000 images with some noise
images in them. Noises come in form of not related images,
wrong labels and intense colours. All images have maximum
length of 512 pixels. Total Size of the dataset is 4.65GB.
Inception architecture usages less computation but gives more used in this training process. The total number of parameters was
accuracy. Inception is basically a convolutional neural network over 7 million. It was tuned using stochastic gradient descent with
(CNN) which has 27 layers. a learning rate of 0.0001 for 40 epochs. This model also usages 64
batch size and 140 dense neurons. Increment rate of training
accuracy was reducing after each epoch. In our model dropout
layers were used to prevent overfitting. As the activation function,
ReLu was used. Because of transfer learning technique, decrement
of loss and increment of accuracy were achieved faster initially.
Data were split into training and validation set. After the training
process, the validation set was used for evaluation of the trained
model. Out of 101000 food images of the dataset, 75750 food
images have been used for training and the remaining 25250
images were validation set.
5 EXPERIMENTAL RESULTS
After the research was done, the model was tested on validation
and test datasets. For performance measurement and evaluation of
our model as a food classifier, we considered training accuracy,
training loss, validation accuracy, validation loss as parameters.
These factors of evaluation shall be analysed and studied to get a
better understanding of the performance of the model.
Evaluation Results
This research shows great performance in food classification. But [1] Rouse, M. 2019. What is Internet of things (IoT)? - Definition from WhatIs.com.
IoT Agenda. https://internetofthingsagenda.techtarget.com/definition/Internet-of-
it can be improved upon. Right now this research proposes an Things-IoT?fbclid=IwAR1d7IXSB7FdzTJjJBZGSsX4-
image slicing based approach to separate food items present in the c18TjRwfK6xVHaG5HQXs7m9IItM55q6arM[Accessed 10 Aug. 2019]
refrigerator. But slicing an image may destroy some important [2] It's more than a fridge, it's the Family Hub. 2019. Samsung Electronics America.
https://www.samsung.com/us/explore/family-hub-
features. So it is not a great solution. Instead of using pure CNN refrigerator/overview/?fbclid=IwAR2uklQLj53q1nghO1BsCACwrtDUISswhDd_dp
and image slicing, using Regional-CNN (R-CNN) may be a better Vs8OUsT8mGeAzl1wRWZK4[Accessed 10 Aug. 2019]
[3] Baker, N. 2013. Smart refrigerator runs apps for shopping lists, recipes. Reuters.
solution. https://www.reuters.com/article/us-app-refrigerator/smart-refrigerator-runs-apps-for-
shopping-lists-recipes-idUSBRE90K0PX20130121?fbclid=IwAR25kAJGxqv-
This training was not fully complete due to resource scarcity. qGkkztH61ZuwcT5HNo5O9jziQfSSLV7tKS4nIzC_uWwevNU. [Accessed 10 Aug.
2019]
Completing the model training is a future work we are looking [4] Shouming Qiao, Hongzhen Zhu, Lijuan Zheng and Jianrui Ding. Intelligent
forward to. Refrigerator based on Internet of Things. 2017 IEEE International Conference on
Computational Science and Engineering (CSE) and IEEE International Conference
on Embedded and Ubiquitous Computing (EUC).
This research also does not take into account the occlusion https://ieeexplore.ieee.org/abstract/document/8006039
problem that may happen in the refrigerator. This will be a future [5] Deepti Singh, Preet Jain. “IoT based smart refrigerator system.” ISSN: 2278 –
work that needs to be focused on. 909X International Journal of Advanced Research in Electronics and Communication
Engineering (IJARECE) Volume 5, Issue 7, July 2016.
https://pdfs.semanticscholar.org/1b11/038f8b71a9fcac91f1b323d57d1bcdb60fba.pdf
Right now research proposes 3 cameras per compartment [6] Lukas Bossard, Matthieu Guillaumin, Luc Van Gool. “Food-101 – Mining
approach to handle orientation problem. This will increase the Discriminative Components with Random Forests.” SpringerLink, Springer, Cham, 6
Sept. 2014, link.springer.com/chapter/10.1007/978-3-319-10599-4_29.
cost of the system. It is also not a proper approach to handle
[7] Faizan Shaikh. “Understanding Inception Network from Scratch (with Python
orientation problem. So handling orientation is a future work Codes).” Analytics Vidhya, 6 May 2019,
needs to be focused on. www.analyticsvidhya.com/blog/2018/10/understanding-inception-network-from-
scratch/. [Accessed 10 Aug. 2019]
[8] TensorFlow. (2019). Serving Models | TFX | TensorFlow. [online] Available
Also enriching our dataset with more scenarios like occlusion, at: https://www.tensorflow.org/tfx/guide/serving [Accessed 14 Aug. 2019].
different backgrounds and lighting will be a future work we look [9] Kwon, Taein, Eunjeong Park, Hyukjae Chang. “Smart Refrigerator for Healthcare
forward to. Using Food Image Classification.” Proceedings of the 7th ACM International
Conference on Bioinformatics, Computational Biology, and Health Informatics -
BCB '16, 2016, doi:10.1145/2975167.2985644.
[10] Luk, Bryant Genepang, Yu Tang, and Richard Chapman Bates.
7 CONCLUSION "Compartmentalized smart refrigerator with automated item management." U.S.
Patent No. 9,449,208. 20 Sep. 2016.
In this work, we have developed a convolutional neural network [11] Weishan Zhang,, Yuanjie Zhang, Jia Zhai, Dehai Zhao, Liang Xu, Jiehan Zhou,
Zhongwei Li, Su Yang, “Multi-source data fusion using deep learning for smart
model from a pre-trained model with the help of transfer learning refrigerators”, J. ELSEVIER, February 2018, Volume 95, Page 15-21,
techniques to detect food category from given 101 food classes. It https://www.sciencedirect.com/science/article/abs/pii/S0166361517303755
can be said that the convolutional neural network shows great
promise in food classification. It can also be said that transfer
learning is a great approach for food classification to achieve
faster performance as we only train our model in fully connected
layer.