Professional Documents
Culture Documents
INTRODUCTION:
Macronutrients
Micronutrients
Macronutrients , which include carbohydrates, protein and fat that serve as energy
sources, as well as structural components that are essential for growth and development
and are required at regular intervals. Micronutrients are needed only in small amounts
but nevertheless are essential for the function of cell and organ system . They include
approximately 10 Vitamins and 20 Minerals, each as specific roles.The focus of this
band will be on sensors that detect and monitor nutritious components.
One of the biggest hurdles in healthcare is decision making, as every option has its
advantages and possible complications, which may jeopardise the human life. A recent
solution to this problem is the implementation of Decision Support Systems (DSSs).
When applied to healthcare, these systems can improve the patient’s quality of life,
offering personalised and patient-focused suggestions. The patient’s nutrition is a key
component in its treatment and recovery process. Medical nutrition therapy, also called
nutrition therapy, use nutrition as a treatment process. A person’s nutrition status is
checked, and given the right foods or nutrient to treat conditions, such as those caused
by diabetes, heart disease, and cancer. A medical nutrition therapy policy may also help
patients recover more quickly, spending less time in the hospital. In this context, this
project has emerged, consisting in the development and exploration of a new platform
for detecting nutrition’s and incorporating machine learning algorithms for decision
support.
KNN ALGORITHM:
In k-NN regression, the output is the property value for the object. This value is the
average of the values of k nearest neighbours.
k-NN is a type of classification where the function is only approximated locally and all
computation is deferred until function evaluation. Since this algorithm relies on distance
for classification, if the features represent different physical units or come in vastly
different scales then normalizing the training data can improve its accuracy dramatically.
Both for classification and regression, a useful technique can be to assign weights to the
contributions of the neighbours, so that the nearer neighbours contribute more to the
average than the more distant ones. For example, a common weighting scheme consists
in giving each neighbour a weight of 1/d, where d is the distance to the neighbour.
The neighbours are taken from a set of objects for which the class (for k-NN
classification) or the object property value (for k-NN regression) is known. This can be
thought of as the training set for the algorithm, though no explicit training step is
required.
LITERATURE SURVEY:
[1]. The results obtained are available to research workers in the area of human nutrition
at a running cost and helps them in further analysis. Cow burn et al. published a research
paper which explores the understanding of nutrition fact labels in Europe. The results
showed that only 9% of nutrition fact labels were judged to be of high or medium high
quality. This supports the premise of this manuscript
[2]. The reported use of nutrition labeling was found to be high, but the objective usage
of nutrition fact labels while buying food products were found to be low. It is reported
that while users understood some aspects of the food labeling, the information in the
food labels made them confused. Most users were able to decipher simple information
from the food labels but the ability to interpret the nutrition labels decreases as the
complexity of the task increases. A comparison of five health and diet surveys done by
Bender et al. provides estimates of numbers of consumers who have paid attention to
ingredient lists and nutrition labels and identify the trends based on replicated measures
[3]. It reports that more than four out of five consumers pay attention to one or both
types of label information. Consumers who read both types of labeling information are
likely to be young, better educated, and follow a self-initiated or doctor-prescribed low
sodium or low cholesterol diet. The food labels are viewed as an important source of
information to consumers according to Margareta Wendel
[4]. The result from the study suggests that many consumers have difficulties when
trying to understand this information. The consumers felt that the terminology on the
food labels appeared technical and very advanced to them [4]. They have dealt with
these problems in various ways. Some made use of the labels to a limited extent whereas
some did not even use the labels. Some thought that reading the label consumed too
much time or that it was very difficult. Rules for novel foods and genetically modified
foods are analysed by Cheftel
[5]. The nutritional labelling directive is detailed, together with foods for particular
nutritional uses and food supplement rulings. Critical surveys on implementation of
nutrition and food labelling are summarized, with corresponding recommendations for
improvement. Instead of looking at separate nutrients or foods, pattern analysis
examines the effect of overall diet of a consumer. Dietary patterns show a broader
picture of nutrient and food consumption, and hence may be useful to predict disease
risk
[6]. Studies by Frank B. Hu have suggested that dietary patterns from cluster or factor
analysis predict disease, risk or mortality. The association between soft drink
consumption and nutrition and health outcomes and health outcomes is analyzed by
Vartanian et al
[7]. A clear association of soft drink intake with increased energy intake was noted. Soft
drink intake was also associated with lower intakes of milk, calcium and other nutrients
with an increased risk of several medical problems such as diabetes
[8]. Chowdhury et al. summarize evidence about associations between fatty acids and
cardiovascular health using observational studies and randomized, controlled trials
[9]. Seventy-two unique studies were identified over various continents. There were 45
prospective, observational studies and 27 randomized studies. A clear correlation
between fatty acids and cardiovascular health was found out. The article by Variam et al.
provides a model that measures how much factors such as nutrition knowledge and diet
awareness influence an individual’s Health Eating Index (HEI)
[10]. The results show that one’s level of nutrition information has an influence on one’s
HEI, it also shows that higher education leads to healthful choices. From the above
literature survey it is clear that there is a strong correlation between the kind of nutrients
which the consumers’ intake and their health. It is also seen that there is a lot of
difficulty involved in interpreting nutrient fact labels by the consumers. Dietary patterns
are important and influence how healthy a person is and will be. This manuscript is
based on the above research papers and implements a system for predicting the
healthiness of a particular food item based on the nutrients available in common
nutritional labels. The manuscript follows a sequential process of data collection by
retrieving nutrition data using web scraping. The data is collected from the Canadian
Government's heath website. The health website contains nutrient data for about 1200
commonly used foods. The system uses these nutrients as features for training and
testing using supervised machine learning algorithms. The food products are labelled
from 0 to 4. The class label 0 representing the healthiest and 4 representing the
unhealthiest food product. To develop a classification system, the class labels of the
food products 0 through 4 are assigned under the guidance of nutritionists. A
performance analysis of algorithms is done using the accuracy parameter. From the
literature survey it is seen that there is no similar analysis of nutrient facts of food using
supervised learning techniques and hence this article aims to help consumers choose
food products more wisely.
METHODOLOGY:
The spectral sensor emits three IR(Infrared) light with different wavelength, it
penetrate through the skin and gets reflected back from the components of the
blood and water content.
Then the values obtained are given to Raspberry pi where the pre-defined data set
of carbohydrates and protein are coded using Python.
The machine learning does two different processes (Training and Testing) , the
date set is trained and the machine learns those values this is called as training
process. Whereas the comparison of those values is called as Testing process.
Finally within a fraction of seconds the parameters are displayed in the LCD
display in both gram per day(g/dl) and percentage (%) per day.
HARDWARE DESCRIPTION
The Raspberry Pi Zero Model B+ is the latest product in the Raspberry Pi Zero range,
boasting a 64-bit quad core processor running at 1.4GHz, dual-band 2.4GHz and 5GHz
wireless LAN, Bluetooth 4.2/BLE, faster Ethernet, and PoE capability via a separate
PoE HAT The dual-band wireless LAN comes with modular compliance certification,
allowing the board to be designed into end products with significantly reduced wireless
LAN compliance testing, improving both cost and time to market. The Raspberry Pi
Zero Model B+ maintains the same mechanical footprint as both the Raspberry Pi 2
Model B and the Raspberry Pi Zero Model B.
The Raspberry Pi Compute Module 3+ (CM3+) is a range of DDR2-SODIMM-
mechanically-compatible System on Modules (SoMs) containing processor, memory,
eMMC Flash (on non-Lite variants) and supporting power circuitry. These modules
allow a designer to leverage the Raspberry Pi hardware and software stack in their own
custom systems and form factors. In addition these modules have extra IO interfaces
over and above what is available on the Raspberry Pi model A/B boards, opening up
more options for the designer. The CM3+ contains a BCM2837B0 processor (as used on
the Raspberry Pi 3B+), 1Gbyte LPDDR2 RAM and eMMC Flash. The CM3+ is
currently available in 4 variants, CM3+/8GB, CM3+/16GB, CM3+/32GB and CM3+
Lite, which have 8, 16 and 32 Gigabytes of eMMC Flash, or no eMMC Flash,
respectively. The CM3+ Lite product is the same as CM3+ except the eMMC Flash is
not fitted, and the SD/eMMC interface pins are available for the user to connect their
own SD/eMMC device. Note that the CM3+ is electrically identical and, with the
exception of higher CPU z-height, physically identical to the legacy CM3 products.
CM3+ modules require a software/firmware image dated November 2018 or newer to
function correctly
Hardware
• Low cost
• Low power
• High availability
• High reliability – Tested over millions of Raspberry Pis Produced to date – Module IO
pins have 15 micro-inch hard gold plating over 2.5 micron Nickel
2.2 Peripherals
• 48x GPIO
• 2x I2C
• 2x SPI
• 2x UART
• 2x SD/SDIO
• 1x HDMI 1.3a
• 1x USB2 HOST/OTG
• 1x 2-lane DSI Display Interface (up to 1Gbps per lane) 2.3 Software
• Mature and stable Linux software stack – Latest Linux Kernel support – Many drivers
upstreamed – Stable and well supported userland – Full availability of GPU functions
using standard APIs
The Compute Module 3+ has six separate supplies that must be present and powered at
all times; you cannot leave any of them unpowered, even if a specific interface or GPIO
bank is unused. The six supplies are as follows: 1. VBAT is used to power the
BCM2837 processor core. It feeds the SMPS that generates the chip core voltage. 2.
3V3 powers various BCM2837 PHYs, IO and the eMMC Flash. 3. 1V8 powers various
BCM2837 PHYs, IO and SDRAM. 4. VDAC powers the composite (TV-out) DAC. 5.
GPIO0-27 VREF powers the GPIO 0-27 IO bank. 6. GPIO28-45 VREF powers the
GPIO 28-45 IO bank.
AS7263:
The AS7263 is a digital 6-channel spectrometer for spectral identification in the near IR
(NIR) light wavelengths. AS7263 consists of 6 independent optical filters whose
spectral response is defined in the NIR wavelengths from approximately 600nm to
870nm with full-width half-max (FWHM) of 20nm. An integrated LED driver with
programmable current is provided for electronic shutter applications. The AS7263
integrates Gaussian filters into standard CMOS silicon via Nano-optic deposited
interference filter technology and is packaged an LGA package that provides a built in
aperture to control the light entering the sensor array. Control and Spectral data access is
implemented through either the I²C register set, or with a high level AT Spectral
Command set via a serial UART.
AS7263 spectral conversion is implemented via two photodiode banks per device. Bank
1 consists of data from the S, T, U, V photodiodes. Bank 2 consists of data from the R,
T, U, W photodiodes. Spectral conversion requires the integration time (IT in ms) set to
complete. If both photodiode banks are required to complete the conversion, the 2nd
bank requires an additional IT ms. Minimum IT for a single bank conversion is 2.8 ms.
If data is required from all 6 photodiodes then the device must perform 2 full
conversions (2 x Integration Time). The spectral conversion process is controlled with
BANK Mode settings as follows: BANK Mode 0: Data will be available in registers S,
T, U & V (R and W registers will be zero) BANK Mode 1: Data will be available in
registers R, T, U & W (V and W registers will be zero) BANK Mode 2: Data will be
available in registers R, S, T, U, V & W When the bank setting is Mode 0, Mode 1, or
Mode 2, the spectral data conversion process operates continuously, with new data
available after each IT ms period. In the continuous modes, care should be taken to
assure prompt interrupt servicing so that integration values from both banks are all
derived from the same spectral conversion cycle. BANK Mode 3: Data will be available
in registers R, S, T, U, V & W in One-Shot mode When the bank setting is Mode 3, the
device operates in One-Shot mode. Spectral conversion occurs only when bit 0 of the
control register (1SHOT) is set to 1. The 1SHOT bit in the control register is
subsequently cleared by hardware at the same time the DATA_RDY bit is set to 1
indicating the availability of spectral conversion result data. The One-Shot mode is
intended for use when it is critical to ensure that spectral conversion results are obtained
contemporaneously
OLED DISPLAY:
GENERAL DESCRIPTION SSD1306 is a single-chip CMOS OLED/PLED driver with
controller for organic / polymer light emitting diode dot-matrix graphic display system.
It consists of 128 segments and 64commons. This IC is designed for Common Cathode
type OLED panel. The SSD1306 embeds with contrast control, display RAM and
oscillator, which reduces the number of external components and power consumption. It
has 256-step brightness control. Data/Commands are sent from general MCU through
the hardware selectable 6800/8000 series compatible Parallel Interface, I 2 C interface or
Serial Peripheral Interface. It is suitable for many compact portable applications, such as
mobile phone sub-display, MP3 player and calculator, etc.
FEATURES
• Power supply o VDD = 1.65V to 3.3V for IC logic o VCC = 7V to 15V for Panel
driving
• For matrix display o OLED driving output voltage, 15V maximum o Segment
maximum source current: 100uA o Common maximum sink current: 15mA o 256 step
contrast brightness current control
• Screen saving continuous scrolling function in both horizontal and vertical direction
• On-Chip Oscillator
• Chip layout for COG & COF • Wide range of operating temperature: -40°C to 85°C
Li-ion batteries can use a number of different materials as electrodes. The most
common combination is that of lithium cobalt oxide (cathode) and graphite (anode),
which is most commonly found in portable electronic devices such as cellphones and
laptops. Other cathode materials include lithium manganese oxide (used in hybrid
electric and electric automobiles) and lithium iron phosphate. Li-ion batteries
typically use ether (a class of organic compounds) as an electrolyte.
ADVANTAGES:
Due to these advantages, Li-ion batteries have displaced Ni-Cd batteries as the
market leader in portable electronic devices (such as smartphones and laptops). Li-
ion batteries are also used to power electrical systems for some aerospace
applications, notable in the new and more environmentally friendly Boeing 787,
where weight is a significant cost factor. From a clean energy perspective, much of
the promise of Li-ion technology comes from their potential applications in battery-
powered cars. Currently, the bestselling electric cars, the Nissan Leaf and the Tesla
Model S, both use Li-ion batteries as their primary fuel source.
SOFTWARE DESCRIPTION:
PYTHON 3.7:
Nutrition fact labels have been hard to discern for a long time. This project has
initiated a classification of nutrients value using spectral sensor. This
manuscript can be further improved by increasing the quantity and quality of the
data set and trying out the other machine learning algorithms in existence.
REFERENCES:
[2] Gill Cowburn and Lynn Stockley, “Consumer understanding and use of
nutrition labelling: a systematic review,” in Public Health Nutrition, vol. 8, pp.
21-28, 2005.
[5] J. Claude Cheftel, “Food and nutrition labelling in the European union”,
Food Chemistry, vol. 93, pp. 531-550, 2005.
[10] Jay Variam, James R. Blaylock, and David Smallwood, “USDA’s healthy
eating index and nutrition information” in Economic Research Service/USDA,
Technical Bulletin No. 1866, pp. 26, 1998.