Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

IoT Based Novel Smart Refrigerator to Curb Food

Wastage
Gaurav Anand Lucky Prakash
Service R&D – Web Service Service R&D – Web Service
Samsung India Electronics Private Limited Samsung India Electronics Private Limited
Noida, India Noida, India
gaurav.anand@samsung.com lucky.p@samsung.com

Abstract—The objective of this paper is to propose a next designed with the objective of minimizing wastage of stored
generation Smart Refrigerator enriched with sensors, camera food that is left uneaten due to user's taste preference or left
and image recognition mechanism. Refrigerators are commonly forgotten due to carelessness inside the refrigerator. The
used for storing and preserving food for an extended period of sensors and camera collects the respective data of food
time. Modern lifestyle has made people more work centric which products and communicate to Google Firebase via Arduino
spares less time for them to focus on their daily food microcontroller. The system also supports an Android
consumption. Eventually they become unaware of quantity and application that enables user to easily track availability and
quality of food stored inside their refrigerators. As a result, the spoilage of food products stored inside refrigerator on a mobile
stored food in refrigerators is left uneaten and wasted more
phone. The rest of the paper is structured as follows. In section
often. Food wastage leads to rise in greenhouse gases emission
and food insecurity especially in developing countries. This paper
II, we will cover the literature survey in smart refrigeration
presents an idea of a smart refrigerator that is able to detect the technology and problems associated with present smart
quality and measure the quantity of food products stored inside refrigerators. In section III, we will describe the concept behind
it. It is designed to notify user of food shortage, food spoilage and our proposal. In section IV, we will cover the system
current status of food items using an android application on a architecture. In section V, we will discuss the implementation
mobile device. The user is able to detect spoilage of food item in part. In section VI, we will cover the results of proposed
preliminary stage. Thus, it will provide user a manageable as well system. Section VII concludes our work and discusses future
as convenient way of food storage and preservation. work.

Keywords—smart refrigerator; image recognition; food II. LITERATURE SURVEY


wastage; internet of things
In 2003, LG launched a digital fridge with multimedia
capability [3]. It supported MP3 player for downloading and
I. INTRODUCTION
playing songs online using Internet. Other services included
A study by Food and Agriculture Organization of the email and video mail using a built in camera and a microphone.
United Nations reveals that approximately 33% of food At that time, it was regarded as a unique and ultimate thing in
generated for human consumption is lost or wasted globally kitchen technology.
which sums up to 1.3 billion tons per year [1]. Loss of food
leads to wastage of resources such as water, energy, land and With the year 2006, Electrolux reintroduced screen fridge
other bio-resources used in its production. We aim to curb this with more features and highest price in the segment [3]. The
problem with the use of IOT (Internet of Things). IOT is a screen fridge was connected to broadband and TV via wireless
network of devices connected among themselves and to the connection. In addition to internet, email, phone, radio and
internet. It is a huge network of connected things which collect MP3 player, Electrolux added video messaging system and
and share data about the way they are used and about the advanced calendar so the kitchen genuinely becomes the core
environment around them. The devices and objects are hub in one’s house. One could check weather and traffic
accompanied with built in sensors that are connected to an IOT conditions before leaving home.
platform. The IOT platform aids in integrating data from Samsung in 2013 declared production of T9000, a
different devices and applying analytics to share the most refrigerator that boasted a 10 inch LCD touchscreen option [4].
useful information using applications designed to address One of the main features of the appliance was the LCD display
specific needs. We are going through a period where the that connects to a home network via wifi. The main drawback
number and type of devices connected to internet is increasing was that users could not install their own apps, but a variety of
rapidly. As per the Ericson Mobility Report Nov 2017, around apps come preloaded including Epicurious, weather, AP news.
20 billion IOT-devices are expected to be connected globally It also featured Google calendar integration and Evernote,
by 2023 [2]. With the help of this paper, we introduce an IOT which aids users to share recipes, photos and videos.
environment into a refrigerator which includes Arduino AT
Mega 2560 as an IOT platform, sensors such as distance In CES 2016, Samsung launched a new type of refrigerator
sensor, load sensor, gas sensor and camera. The system is featuring a 21.5 inch touchscreen and a built-in camera [5]. In

978-1-5386-6894-8/18/$31.00 2018
c IEEE 268

Authorized licensed use limited to: University of Otago. Downloaded on May 30,2020 at 15:47:05 UTC from IEEE Xplore. Restrictions apply.
this model, users didn’t need to enter products list manually. B. Recognizing removal of food
Rather, built-in camera allowed users to check the actual image Our system identifies removal of products with the use of
inside the fridge with a smartphone. This product was termed load sensors in various divisions and camera module present
as Family Hub by Samsung possibly to give their product a inside the refrigerator. Load sensors are used to measure
core role in the household. quantity of food present in the fridge. Furthermore, with each
Hsin-Han & Yung-Ting, 2017 used camera module to opening and closing of door camera captures an image to keep
capture food images and upload the detected products data to track of list items present inside the fridge.
the cloud database [6]. However, there is no mention of food
detection technique supporting the task. Moreover, the lack of C. Assessing freshness of food
food spoilage detection system makes the proposal incomplete. As described earlier, RFID tag can be used to fetch
Aurel-Dorian & Valentin, 2016 took into consideration that product’s expiry date. Thus, user will be able to view expiry
each and every product bought will have a tracking RFID tag date on mobile phone corresponding to each food product
[7]. Therefore, the proposal doesn’t seem to be compatible with present inside the refrigerator. Furthermore, in order to assess
present market scenario where some products are not yet the freshness of products without RFID tag, our system
associated with a unique RFID tag. features use of C2H4 ethylene gas sensor. It measures the
In spite of all the advancements, few problems are still concentration of ethylene gas in fridge at any given time.
present to deal with: Ethylene gas is responsible for speeding the ripening of fruits
and vegetables [11]. However, release of ethylene in shipping
containers or storage causes unwanted ripening of food leading
A. Cost Factor
to spoilage and economic losses. While some fruits and
The prices of existing smart refrigerators are quite high. For vegetables are high ethylene producers, others are more
instance, a cheapest Samsung Family Hub fridge is available at sensitive to it [12].
a price of USD $5599.99, which is obviously not viable for an
average family. D. Notifying user of scarce products
It is not possible to maintain stock of each and every food
B. Fixed Hardware Components
item in the refrigerator. However, user can predefine daily need
Smart refrigerators used to come with fixed hardware products with the required threshold quantities. As soon as the
system and the user was not able to customize the features product quantity goes below threshold, user gets a notification
provided based on his preferences. For instance, user had to on phone regarding shortage of food item.
pay for MP3 player included in refrigerator even if user finds it
of no use. E. Monitoring products list
The system allows user to keep track of products inside
C. Organizing Data
refrigerator through mobile application. It uses Google
Not each and every product is associated with barcode or Firebase cloud database to store products details collected by
RFID tag, therefore it wastes a significant amount of user’s camera and sensors mounted on refrigerator. Google provides
time to enter product details manually into the system. Firebase cloud service for synchronization of data on multiple
devices.
D. Dependency on Expiry Dates
Existing smart refrigerators didn’t detect initial stage of IV. ARCHITECTURE
food spoilage and were solely dependent on expiry dates The block diagram in Fig. 1 illustrates the different
fetched from RFID tags or barcodes. components used in our system. The components such as load

III. CONCEPT
Our system proposes numerous benefits to the user in the
sense of avoiding wastage and maintaining the stock of
necessary food items in the refrigerator at all times.

A. Recognizing addition of food


The addition of food is recognized with the use of RFID
scanner which is mounted on the outer body of the refrigerator.
It is used to scan the details pertaining to the products namely
manufacturer, food category, expiry date etc. Each and every
food item in our household cannot contain a RFID tag because
lots of products are bought unpacked from the market.
Therefore, our system includes the second method of
recognizing the addition of food products. It involves use of
camera module. Food items can be effectively recognized from
images using image recognition mechanism [8-10].

Fig. 1. Hardware architecture

3rd International Conference on Contemporary Computing and Informatics (IC3I) 269

Authorized licensed use limited to: University of Otago. Downloaded on May 30,2020 at 15:47:05 UTC from IEEE Xplore. Restrictions apply.
sensor, distance sensor, gas sensor along with camera module JPEG images which make them small and easy to store. Fig. 3
are incorporated into a refrigerator to build what we call as a illustrates connection of camera and wifi module with Arduino
Smart Refrigerator. The above components are connected to microcontroller.
Arduino AT Mega 2560, an IOT platform for collecting and
storing their respective outputs to Google Firebase cloud D. Ethylene gas sensor
service. The products list is finally fetched from Firebase cloud In our system, we use ME3-C2H4 electrochemical gas
system and displayed on user’s mobile. sensor to measure concentration of ethylene gas inside the
refrigerator. In order to avoid the premature spoiling of food
A. Arduino ATMega 2560 item, we notify user for the appropriate action on the mobile
Arduino Mega 2560 is a microcontroller based on the AT phone. In ME3-C2H4 gas sensor, working electrode in
Mega 2560. It supports large number of digital input/output electrolytic cell undergoes electrochemical oxidation process.
pins. It contains 16 analog inputs, a USB connection, a power The concentration of gas is measured with the amount of
jack, an ICSP header, and a reset button [13]. Fig. 2 shows a current produced in the electrochemical radiation [16]. Fig. 4
top view of Arduino AT Mega 2560 microcontroller. The defines connection of ethylene gas sensor to Arduino AT Mega
Mega 2560 board can be programmed with the Arduino IDE. It 2560 microcontroller.
comes preprogrammed with a bootloader that allows to upload
a new code to it without the use of an external hardware
programmer. It can be powered via the USB connection or with
an external power supply. The board can operate on an external
supply of 6 to 20 volts. It has 256 KB of flash memory for
storing code.

Fig. 4. Connection of ME3-C2H4 gas sensor with Arduino Mega board

E. Ultrasonic Distance Sensor


HC-SR04T is used to sense non-contact distance from an
object with range 20cm-400cm with accuracy up to 3mm [17].
It turns on its TRIG pin to 5V for at least 10 microseconds and
then automatically send 8 40KHz tones and detect when the
signal return after reflecting back from the object. The time
Fig. 2. Arduino AT Mega 2560 Microcontroller
duration between transmitting and receiving back the signal is
used to calculate the distance. Fig. 5 describes connection of
B. WiFi Adafruit CC3000 distance sensor with microcontroller board.
In order to add internet connectivity to the microcontroller,
we are using Adafruit CC3000 wifi module [14]. It uses SPI for
communication instead of UART. This helps to push data as
fast or slow as one want. It comes with a proper interrupt
system with IRQ pin so as to provide asynchronous
connections. Moreover, it is supported by 802.11 b/g and
open/WEP/WPA/WPA2 types of security to keep intruders
away from the system.

C. Camera Module
For image capturing, we used TTL serial camera from Fig. 5. Ultrasonic distance sensor connection with microcontroller
Adafruit [15]. It is pretty easy to use this module and only
requires two digital pins. It takes snapshots and transmits them
F. Load cell
over the TTL serial link. It is featured with manually adjustable
focus, auto-brightness, auto-white-balance and auto-contrast A load cell is a type of physical sensor that creates an
options. It can be configured to snap pictures at 640x480, electronic signal whenever a force or load acts over it. This
320x240 or 160x120. The captured images are pre-compressed electronic signal can be one out of voltage change, frequency
change or current change depending on the circuitry being used
in the system [18]. As shown in Fig. 6, we are interfacing a 40
Kg load cell to the Arduino microcontroller using the HX711
load cell amplifier for measuring weights of food items. The
advantage of using this over others is that there is no

Fig. 3. Camera module and wifi module connection with Arduino


microcontroller.

270 3rd International Conference on Contemporary Computing and Informatics (IC3I)

Authorized licensed use limited to: University of Otago. Downloaded on May 30,2020 at 15:47:05 UTC from IEEE Xplore. Restrictions apply.
VI. RESULTS
The android application provides user a list of contents
stored in the refrigerator. Food items are recognized using
RFID tag and camera module with image recognition
mechanism. Expiry dates for each product is also provided by
RFID tag associated with the food product. Food quantity is
displayed on the basis of result obtained from load cells and
camera module. Fig. 8 displays the list of contents on user’s
mobile with the current ethylene gas concentration displayed at
the bottom. An alert is triggered whenever ethylene gas
concentration goes beyond a set threshold. User can select low
Fig. 6. Load cell and HX711 connection with Arduino board quantity food items and buy from online grocery store with a
button click.
programming needed for the internal registers. HX711
amplifier is used to amplify the electronic signals from the load
cells and communicating them to Arduino microcontroller. The
load cell is plugged into HX711 microchip and this microchip
informs the Arduino microcontroller the readings of load cells.

V. IMPLEMENTATION
The first step requires the user to attach an Arduino AT
Mega 2560 board along with the camera and described sensors
onto the refrigerator. While adding a new product, user scans
RFID tag if available against RFID scanner. The distance
sensor triggers the camera as soon as the door is opened or
closed by the user. With this, an inside image of fridge is
captured to detect the current list of products using image
recognition mechanism as illustrated in Fig. 7. The details
associated with RFID and the list of detected products is
synchronized and communicated to Google Firebase using wifi
connection.
In addition, the data from load sensors is also shared with
Google Firebase’s database on subsequent opening and closing
of door. Load sensors will keep track of weight of products
Fig. 8. List of contents displayed on android phone
remaining in the fridge. As soon as the product weight goes
below the user specified threshold, user gets a notification on
mobile phone running an android application. The gas sensor VII. CONCLUSION AND FUTURE WORK
measures the concentration of ethylene gas released by In this paper, we proposed a hybrid smart refrigerator using
ripening food. Gas sensor program will keep on running in the various sensors and image recognition mechanism to avoid
background in order to detect and prevent food spoilage as food wastage in household as well as commercial sector. The
soon as possible. The current gas concentration can be checked android application provides user with real time updates. The
on mobile device at any given time. cloud based architecture provides easy synchronization and
database access from multiple devices. In addition, our system
can be used as a stand-alone kit that can be integrated with any
fridge to make it smart. In the future, we look forward to
integrating more sensors to enhance our system’s capabilities.
Smart refrigerator can be made to communicate with other
smart appliances to achieve a more complex task. Furthermore,
this prototype can be applied to modules which require
managing and real time tracking such as drawers, cupboards
etc.

REFERENCES
[1] Global Food Losses and Food Waste 2011 retrieved June 20, 2018 from
http://www.fao.org/docrep/014/mb060e/mb060e.pdf
[2] Ericsson Mobility Report, November 2017 retrieved June 20, 2018 from
https://www.key4biz.it/wp-content/uploads/2017/11/Ericsson-Mobility-
Report_Nov-2017_con-Focus-Wester-Europe.pdf

Fig. 7. Detection of food items using image recognition techniques [19]

3rd International Conference on Contemporary Computing and Informatics (IC3I) 271

Authorized licensed use limited to: University of Otago. Downloaded on May 30,2020 at 15:47:05 UTC from IEEE Xplore. Restrictions apply.
[3] Folasade O., Shade K. and Oludele A., “Internet refrigerator – A typical [11] Keeping fruit, vegetables and cut flowers fresh longer, 2013 retreived
internet of things (IoT),” in 3rd International Conference on Advances in June 24, 2018 from
Engineering Sciences and Applied Mathematics, London https://www.acs.org/content/acs/en/pressroom/presspacs/2013/acs-
[4] Samsung’s T9000 fridge with 10-inch touchscreen and Evernote by presspac-june-26-2013/keeping-fruit-vegetables-and-cut-flowers-fresh-
Antonio Pasolini 2013 retrieved June 22, 2018 from longer.html
https://newatlas.com/samsung-t9000-refrigerator-ces2013/25729/ [12] Food Science: Ethylene by Emily Han Oct 2010 retrieved June 24, 2018
[5] Pescosolido, L., Berta, R., Scalise, L., Revel, G. M., De Gloria, A., & from https://www.thekitchn.com/food-science-ethylene-gas-130275
Orlandi, G. (2016, September). An IoT-inspired cloud-based web [13] Arduino Mega 2560 Rev3 details retrieved June 22, 2018 from
service architecture for e-Health applications. In Smart Cities https://store.arduino.cc/usa/arduino-mega-2560-rev3
Conference (ISC2), 2016 IEEE International (pp. 1-4). IEEE. [14] How to Add Wifi to Your Arduino by Jeremy Morgan 2015 retrieved
[6] Hsin-Han Wu and Yung-Ting Chuang, “Low-cost smart refrigerator,” in June 20, 2018 from https://dzone.com/articles/how-to-add-wifi-to-your-
1st International Conference on Edge Computing, 2017, pp. 228-231 arduino
IEEE. [15] Wireless camera with arduino and the CC3000 wifi chip by Marco
[7] Aurel-Dorian F., Valentin S., “Smart refrigerator: A next generation Schwartz 2018 retrieved 25 June, 2018 from
refrigerator connected to the IOT,” in ECAI 2016 – International https://openhomeautomation.net/wireless-camera
Conference, pp. 19-24, June 2016 [16] Electrochemical Gas Sensor ME3-C2H4 retrieved June 25, 2018 from
[8] Zawbaa H.M., Abbass M., Hazman M., Hassenian A.E. (2014), https://winsen-sensor.com/products/4-series-electrochemical-toxic-gas-
“Automatic fruit image recognition system based on shape and color sensor/me3-c2h4.html
features,” in Hassanien A.E., Tolba M.F., Taher Azar A. (eds) Advanced [17] Complete guide for ultrasonic sensor HC-SR04 with Arduino retrieved
Machine Learning Technologies and Applications. AMLTA 2014. June 18, 2018 from https://randomnerdtutorials.com/complete-guide-for-
Communications in Computer and Information Science, vol 488. ultrasonic-sensor-hc-sr04/
Springer, Cham
[18] R.S. Khosla, P.S. Chheda, S.R. Dedhia, and Dr. B.Patel, “Smart
[9] Hridkamol B., Faisal H. (2013), “Automatic vegetable recognition refrigerator,” in International Journal on Recent and Innovation Trends
system,” in International Journal of Engineering Science Invention, vol. in Computing and Communication, vol. 4, pp. 6-9, January 2016
2, pp. 37-41, April 2013
[19] Microsoft and Liebherr collaborating on new generation of smart
[10] Selvaraj, Arivazhagan & Shebiah, Newlin & Nidhyananthan, Selva & refrigrators September 2016 retrieved June 28, 2018 from
Ganesan, L. (2010), “Fruit recognition using color and texture features” https://blogs.technet.microsoft.com/machinelearning/2016/09/02/micros
in Journal of Emerging Trends in Computing and Information Sciences, oft-and-liebherr-collaborating-on-new-generation-of-smart-refrigerators/
vol. 1, pp. 90-94, October 2010

272 3rd International Conference on Contemporary Computing and Informatics (IC3I)

Authorized licensed use limited to: University of Otago. Downloaded on May 30,2020 at 15:47:05 UTC from IEEE Xplore. Restrictions apply.

You might also like