Vitamin Deficiency Detection Using Neural Networks
Vitamin Deficiency Detection Using Neural Networks
2024 International Conference on Wireless Communications Signal Processing and Networking (WiSPNET) | 979-8-3503-5084-5/24/$31.00 ©2024 IEEE | DOI: 10.1109/WISPNET61464.2024.10533044
NEURAL NETWORKS
Abstract—Vitamin deficiency is a pervasive health issue affecting Vitamin deficiencies highlight the many health problems we
millions globally, often leading to severe health complications if face every day. Vitamin deficiencies occur from insufficient
undiagnosed. Various vitamin deficiencies can be identified by
identifiable symptoms manifesting in numerous areas across the intake of vitamins. Eating a balanced diet is good for general
human body. Blood tests are most commonly used to detect health. Dietary imbalances can lead to excess or insufficient
deficiencies. However, blood tests are expensive and have limited intake of certain nutrients. Deficiencies can occur when you
availability. The project aims to develop an automated system to
don't get enough of a particular nutrient. Vitamins are
detect vitamin deficiencies using Mobilenet, convolutional neural
networks (CNN), NasNet-mobile, inception modules, and artificial important micronutrients that the body requires for various
neural networks (ANN). The program allows users to detect physiological processes. An insufficiency of vitamins results
potential vitamin deficiencies without needing blood samples by in various health problems, from fatigue and poor immunity
examining images of the eyes, lips, tongue, and nails. Here we
have considered the dataset of abnormalities caused by vitamin
to severe conditions like scurvy, rickets, and Anemia. A
deficiencies like glaucoma eyes, bluish nails, and other nutritionally deficient diet can lead to a variety of symptoms.
abnormalities of lips and tongue. We have trained the model on The body uses these symptoms as a warning system for
these image datasets, by leveraging image recognition and data possible nutritional or mineral deficiencies. Knowing these
analytics, the proposed system offers a quick, efficient, and non-
invasive method of detection thereby streamlining the diagnostic will facilitate better management of your diet. Deficiency of
process and facilitating early intervention. The aim is to provide certain nutrients in the body determines the symptoms of
an economical, accessible, and efficient clinical screening method. deficiency in biological processes. Early detection of vitamin
Moreover, the platform furnishes tailored dietary suggestions to
deficiencies makes the user’s work easier and saves time and
tackle pinpointed inadequacies, thus alleviating health hazards
linked with insufficient nourishment. By furnishing an easily money. Blood tests are standard practice in rich countries, but
reachable resource for prompt identification and action, our different socio-economic and public perspectives make
system aids in tackling a prevalent worldwide health concern. The testing difficult in poor countries. Traditional methods of
program functions as a beneficial aid for individuals to combat a
widespread global challenge, impacting millions due to inadequate detecting vitamin deficiencies often involve blood tests and
comprehension of nutrition. Serving as a valuable resource, it symptom-based clinical diagnoses, which can be invasive,
addresses an international issue, assisting those facing nutritional costly, and time-consuming. Micronutrient deficiencies are a
uncertainties worldwide.
serious global health problem. The estimated survey says that
around 20 crore individuals globally experience deficiencies
in nutrients like zinc, iron, iodine, and vitamin A. “More than
Keywords— Vitamin deficiency, CNN, NASNet-mobile, 1.2 billion individuals are Zinc deficient and half a million of
Inception, non-invasive. them die each year. Similarly speaking, over 100,000 people
die due to Anemia caused by iron deficiency” [1].
I. INTRODUCTION “Throughout the world, poor people do not consume
sufficient amounts of nutrient-rich foods such as meat, eggs,
Micronutrients that the body does not produce in sufficient fish, milk, legumes, fruits and vegetables. The problem is
amounts are vitamins. This explains why the body needs to made worse by inadequate health care and sanitation, disease,
receive nutrients from external sources to function properly. and a lack of education in infants and childcare” [17]. Most
Authorized licensed use limited to: National Institute of Technology Karnataka Surathkal. Downloaded on September 06,2024 at 05:18:07 UTC from IEEE Xplore. Restrictions apply.
In this paper [4], researchers used the kind of deficit thereby saving time and costs while ensuring user-friendly
specified using the fuzzy logic approach. Several annotated accessibility. Following each diagnostic method, the
photos of segmentation symptoms were used to train a application provides recommended medications and suggests
TensorFlow classifier after pathological research had appropriate dietary measures accordingly [11]. In this study
specified the visual symptoms. The program is taught to [12], The researchers comprehensively elucidated the latest
discriminate between user photographs of the nails, tongue, information regarding vitamin deficiencies and underscored
eyes, and lips of normal persons of those who have a public health strategies to effectively tackle these issues.
deficiency in vitamins.In this paper researchers performed by Furthermore, they emphasized the significance of addressing
contrasting the DCNNs' performance with a support vector micronutrient deficiencies, emphasizing the need to identify
machine's color feature and oriented gradient histogram, and individuals at risk and implement proactive measures for
the DCNNs were shown to be effective. This work shows that prevention and management. The researchers highlighted the
DCNNs are a useful method for identifying nutritional imperative nature of a holistic approach in addressing these
deficits in rice. The author explored the accuracy of various nutritional gaps to safeguard public health. In this study,
Deep Convolutional Neural Networks in detecting nutritional researchers explained how meticulously carried out clinical
deficiencies inside rice within the scope of this research [5]. investigations and Field-based randomized trials, altering
global health policy, unveiled the complete extent and
In this research, scientists have introduced an expert system repercussions of insufficiency among impoverished
application designed to assist the community in identifying populations in developing countries [13]. In this study, the
early-stage vitamin deficiencies. This innovation not only researchers explained current knowledge about the kinetics
saves time and expenses but also simplifies the process for of different forms of vitamin K, their detection, and their
both users and researchers. The researchers elaborate that the toxicity are discussed [14].
field of artificial intelligence, particularly through expert
systems, enables the early detection of vitamin and mineral
deficiencies. Likewise, by discerning precise symptoms, they The researchers of this study [15] explained the effectiveness
can accurately identify the specific vitamins and minerals that of DCNNs was affirmed through comparison with color
are lacking in the body [6]. The objective of the researchers features using a support vector machine and a histogram of
is to create a screening system for Vitamin A deficiency in oriented gradients employing a support vector machine. Their
children that eliminates the need for retinol serum blood tests. investigation illustrates that DCNNs offer a potent
Instead, the system utilizes available health records. The methodology for the diagnosis of nutrient deficiencies in rice.
Support Vector Classifier model demonstrated the highest In this study [16], The findings presented by the researcher
accuracy scores, with an accuracy of 75.7%, sensitivity of suggest that when evaluating patients exhibiting severe dry
83.7%, and specificity of 74.9%. [7]. In this investigation, the eye and corneal ulceration, it is crucial to include vitamin A
scientists employed RCNN, an exceptionally sophisticated deficiency resulting from eating disorders in the list of
machine learning algorithm known for its superior potential diagnoses. The micronutrients zinc, iron, iodine,
performance across diverse pattern recognition tasks, making folate, and vitamin A are necessary for human health and
it a fitting selection for this particular application. The growth. This paper [17] delves into the repercussions of
primary aim of this research endeavor is to make a significant deficiencies in crucial micronutrients on human health,
contribution to the domain of dermatology by elevating the provides recommendations for implementing micronutrient
precision in diagnosing vitamin deficiencies and amplifying programs, and demonstrates the substantial influence that
the effectiveness of therapeutic interventions through the investments in this realm can have on enhancing human
utilization of state-of-the-art imaging technology [8]. capital. Furthermore, it underscores the imperative need for
In this research, the dataset is enriched through augmentation sustained efforts and global collaboration in addressing
employing linear transformations. Subsequently, the micronutrient deficiencies to promote long-term public
augmented images undergo preprocessing in multiple color health and well-being.
spaces before being introduced to the neural network [9].
The objective of this paper is a deliberate endeavor to
establish an autonomous and reliable cost-effective solution
IV. PROPOSED SYSTEM
for detecting nutritional deficits. Datasets representing
deficient and healthier categories are formulated employing
image processing techniques such as an RGB color feature The suggested approach in this research seeks to identify
extractor, edge detection, real-time texture recognition, and vitamin deficiencies through the use of deep learning models.
similar methodologies [10]. In this paper, the researchers For correct analysis, it makes use of NASNetMobile,
developed an expert system application designed to assist the Convolutional Neural Networks (CNN), Inception, Artificial
community in early diagnosis of vitamin deficiencies, Neural Networks (ANN), and mobile net. Numerous benefits
Authorized licensed use limited to: National Institute of Technology Karnataka Surathkal. Downloaded on September 06,2024 at 05:18:07 UTC from IEEE Xplore. Restrictions apply.
come with the suggested method, including its accessibility, reach an optimistic level of accuracy. We will save the
efficiency, high scalability, and non-invasive nature. accuracy in the backend and move on to another model as
soon as we have it.
A. Objective
DEPLOYMENT
Authorized licensed use limited to: National Institute of Technology Karnataka Surathkal. Downloaded on September 06,2024 at 05:18:07 UTC from IEEE Xplore. Restrictions apply.
dividing pixel values by 255, simplifying computational InceptionV3 model demonstrates exceptional proficiency in
processes. mastering intricate hierarchical representations within image
data. This capability, coupled with training for 10 epochs,
C. Models signifies its robustness in handling complex visual data.
During the training stage, a dataset containing 2,000 At the core of this architecture lies the
images spread across four classes was employed to train a NASNetMobile model, which is trained in advance on the
sequential neural network model. The model structure, ImageNet dataset. Tailored for mobile applications, the
described as a sequential arrangement of dense layers, model strikes a delicate balance between computational
encompasses a flattened layer for reshaping input data, efficiency and high-performance image classification. To
succeeded by three densely connected layers featuring 128, capitalize on the acquired knowledge from pre-training, the
64, and 32 units, respectively. The last dense layer produces layers of the base model are fixed, ensuring the retention of
predictions for the four classes. The overall parameter count learned features throughout subsequent training stages.
for the model stands at 19,278,180 (73.54 MB), with all The custom classification head complements the base model
parameters open for training. This particular model by integrating global average pooling for dimensionality
underwent 30 epochs, iterating through the dataset 30 times, reduction, a dense layer featuring 1024 units with ReLU
aiming to optimize its weights and biases and improve activation for effective feature extraction, and an optional
performance on the training dataset. dropout layer for regularization. The final dense layer,
utilizing softmax activation, produces predictions for the
2. CNN Model designated four output classes. Notably, this composite
NASNetMobile-based architecture is fine-tuned for the
The CNN model, designed with a sequential specific task, and the entire model undergoes training for 15
architecture, excels in capturing intricate patterns within epochs to refine its performance and elevate its effectiveness
image data. The first convolutional layer (conv2d) is in the designated classification task.
composed of 512 filters, succeeded by a subsequent layer of
max-pooling (max_pooling2d) for feature extraction and 5.MobileNet
spatial dimension reduction. The subsequent convolutional
layer (conv2d_1), featuring 256 filters, and its corresponding The MobileNet architecture, utilized as the
max-pooling layer (max_pooling2d_1) further refine feature foundational model in this setup, has undergone pre-training
abstraction. The flattened layer prepares the output for on the ImageNet dataset, specifically designed for mobile
densely connected layers. Two dense layers (dense and applications. With an input shape of (224, 224, 3), the base
dense_1) with 64 and 4 units, respectively, contribute to the model's layers, preserving knowledge acquired during pre-
final classification. With a total of 9,124,420 trainable training, function as a feature extractor. The subsequent
parameters (34.81 MB), The model underwent training for a design encompasses global average pooling for reducing
total of 10 epochs. dimensionality, succeeded by three densely connected layers.
The initial two dense layers, each incorporating 1024 units
3.InceptionV3 activated by ReLU, augment the model's ability to enhance
the model's capacity to comprehend complex functions and
The sequential InceptionV3 model adopts a multi- classify intricate patterns. The third dense layer, featuring 512
tiered architecture for effective feature extraction and units, further enhances the model's capabilities in
hierarchical representation learning. The initial convolutional representing features. The ultimate dense layer, employing
layers, conv2d_4 and conv2d_5, each featuring 32 filters, are softmax activation, produces predictions for the designated
followed by a max-pooling operation (max_pooling2d_2) to four output classes. It is noteworthy that this MobileNet-
condense spatial dimensions. Subsequent convolutional based architecture is subjected to training for 10 epochs,
layers, conv2d_6 and conv2d_7, each equipped with 64 undergoing iterative optimization over the dataset to refine its
filters, further extend feature abstraction, culminating in an parameters and enhance its performance in the assigned
additional max-pooling step (max_pooling2d_3). The classification task.
flattening layer prepares the output for densely connected
layers, where dense_2, consisting of 256 units, facilitates
intricate feature mapping. The final dense layer, dense_3, D. Optimizer
with 2 units, enables classification. With a total parameter The Adam optimizer, which combines the advantages of
count of 67,193,122 (256.32 MB), entirely trainable, the momentum and root mean square propagation, represents a
Authorized licensed use limited to: National Institute of Technology Karnataka Surathkal. Downloaded on September 06,2024 at 05:18:07 UTC from IEEE Xplore. Restrictions apply.
widely used optimization algorithm in the realm of deep Fig. 6.2 shows The model undergoes training for 10 epochs,
learning. It allows for the dynamic adjustment of learning during which a concurrence between training accuracy and
rates for every parameter, which promotes robust validation accuracy is observed in the CNN model. The final
performance and effective convergence when neural train and validation accuracies are 95.7% and 96.2%.
networks are being trained. In the context of this study, Adam
optimizer has been consistently employed across all models, 3.INCEPTIONV3
ensuring a standardized and well-performing optimization
approach throughout the training processes.
1. ANN Model
Fig 6.2: Accuracy graph of CNN model Fig 6.5: Accuracy graph of MOBILENET MODEL
Authorized licensed use limited to: National Institute of Technology Karnataka Surathkal. Downloaded on September 06,2024 at 05:18:07 UTC from IEEE Xplore. Restrictions apply.
Fig. 6.5 shows the MobileNet model has shown better 3. INCEPTIONV3
agreement between training and validation accuracies among
all the models. The MobileNet model is trained for 10 epochs
and the final training and validation accuracies of the
MobileNet model are 96% and 97.2%.
1. ANN Model
In Fig. 6.8, the final validation loss is 0.049 and the final
training loss is 1.115 which shows a clear case of overfitting.
4. NASNETMOBILE
Fig. 6.6 shows the ANN model has been trained for 30 epochs
and the final training and validation losses of the model are
0.2716 and 0.1853.
2. CNN Model
In Fig. 6.9, the 1st epoch, the training and validation losses are
0.3195 and 0.111. During the 15th epoch, the losses of the
trained model are 01038. and 0.0662.
5. MOBILENET
In Fig. 6.7 the first epoch, the training and validation losses
of the model are 1.4216 and 1.0684 after training for 10
epochs the losses of the trained model are 0.1053 and 0.0619. Fig 6.10: Loss history of MOBILENET
Authorized licensed use limited to: National Institute of Technology Karnataka Surathkal. Downloaded on September 06,2024 at 05:18:07 UTC from IEEE Xplore. Restrictions apply.
The above Fig. 6.10 shows the MobileNet model, the 1. MobileNet Confusion Matrix:
validation loss is 1.111, which is very high compared to the
training loss. After training the model for 10 epochs the
validation loss has come down to 0.074 and the final training
loss is 0.0940, this shows the model's ability to learn real
unlabelled data.
C. Performance Analysis:
Authorized licensed use limited to: National Institute of Technology Karnataka Surathkal. Downloaded on September 06,2024 at 05:18:07 UTC from IEEE Xplore. Restrictions apply.
E. Model Deployment VIII. CONCLUSION
Authorized licensed use limited to: National Institute of Technology Karnataka Surathkal. Downloaded on September 06,2024 at 05:18:07 UTC from IEEE Xplore. Restrictions apply.
learning," 2021 IEEE International Conference on Automation/XXIV [14] Přemysl Mladěnka, Kateřina Macáková, Lenka Kujovská Krčmová,
Congress of the Chilean Association of Automatic Control (ICA- Lenka Javorská, Kristýna Mrštná, Alejandro Carazo, Michele Protti,
ACCA), Valparaíso, Chile, 2021, pp. 1-7, doi: Fernando Remião, Lucie Nováková, the OEMONOM researchers and
10.1109/ICAACCA51523.2021.9465311. collaborators, Vitamin K – sources, physiological role, kinetics,
[10] V. Krishna, Y. D. Solomon Raju, C. V. Raghavendran, P. Naresh and deficiency, detection, therapeutic use, and toxicity, Nutrition Reviews,
A. Rajesh, "Identification of Nutritional Deficiencies in Crops Using Volume 80, Issue 4, April 2022, Pages 677–
Machine Learning and Image Processing Techniques," 2022 3rd 698, https://doi.org/10.1093/nutrit/nuab061.
International Conference on Intelligent Engineering and Management [15] Z., Guo, X., Zhu, A., He, X., Zhao, X., Han, Y. and Subedi, R. 2020.
(ICIEM), London, United Kingdom, 2022, pp. 925-929, doi: Using deep convolutional neural networks for image-based diagnosis
10.1109/ICIEM54221.2022.9853072. of nutrient deficiencies in rice. Comp. Intell. Neurosci., 20: 1-12.
[11] S. Yadav, A. Rathod, P. Patil and V. Hole, "Vitamins and Minerals https:// doi.org/10.1155/2020/7307252 .
Diagnosis System Using Neural Network," 2018 Second International [16] Velasco Cruz AA, Attié-Castro FA, Fernandes SL, Cortes JF, de Tarso
Conference on Inventive Communication and Computational P Pierre-Filho P, Rocha EM, Marchini JS. Adult blindness secondary
Technologies (ICICCT), Coimbatore, India, 2018, pp. 1921-1925, doi: to vitamin A deficiency is associated with an eating disorder. Nutrition.
10.1109/ICICCT.2018.8473019. 2005 May;21(5):630-3. doi: 10.1016/j.nut.2004.12.003. PMID:
[12] Darnton-Hill I. Public Health Aspects in the Prevention and Control of 15850971.
Vitamin Deficiencies. Curr Dev Nutr. 2019 Jun 21;3(9):nzz075. doi: [17] Investing in the future: A united call to action on vitamin and mineral
10.1093/cdn/nzz075. PMID: 31598578; PMCID: PMC6775441. deficiencies. Global Report 2009
[13] Sommer A. Vitamin deficiency and clinical disease: a historical
overview. J Nutr. 2008 Oct;138(10):1835-9. doi:
10.1093/jn/138.10.1835. PMID: 18806089.
Authorized licensed use limited to: National Institute of Technology Karnataka Surathkal. Downloaded on September 06,2024 at 05:18:07 UTC from IEEE Xplore. Restrictions apply.