Implementation of Lumpy Skin Disease Detection Using Machine Learning Approach
Implementation of Lumpy Skin Disease Detection Using Machine Learning Approach
Abstract— Lumpy skin disease (LSD), a contagious and health of animals. Machine learning and image
ailment that can swiftly disseminate within cattle recognition techniques have shown promise in
populations, presents a serious risk to the cattle recent years for the identification and diagnosis of a
industry's finances. Timely identification and precise
number of illnesses, including LSD in cattle. Lumpy
recognition of afflicted animals are imperative to
Skin Disease, characterized by its highly infectious
impede the transmission of the infection and mitigate
its impact. Cattle and buffalo are the primary hosts of nature and its ability to affect cattle, poses a
this viral malady, underscoring the urgency of effective significant financial burden on the livestock sector.
measures. It is important to note that there is no health
danger associated with LSD, however, it can seriously
Lumpy Skin Disease, characterized by its highly
impair the welfare of animals and reduce output. infectious nature and its ability to affect cattle, poses
Images are preprocessed using Convolutional Neural a significant financial burden on the livestock sector.
Networks (CNN) in order to extract features. The next
step we will take is to use machine learning models The lumpy skin disease virus (LSDV) belongs to the
such as Inception V3. Poxviridae family, more precisely to the genus
Capripoxvirus and the subfamily Chordopoxviridae.
Our research is on the application of several machine This illness usually affects creatures that are related
learning algorithms for the diagnosis of lumpy skin to cows, such as water buffalo and cattle. The
disease in cattle. We have used total five machine
sickness varies in severity according on the species.
learning models and calculated performance metrics
for each model to determine how well models can
Fever, depression, nasal discharge, skin nodules,
work. Consequently, Inception V3 outperformed the enlarged lymph nodes, and tears are typical
other models, achieving 97.4% accuracy and symptoms. Reduced milk supply, problems with
98.1% precision. fertilization, delayed development, and perhaps
higher rates of illness and death are all possible
Keywords: Lumpy skin disease, Inception V3, outcomes of the condition.
LSD, Neural Networks, Mobile Application.
Numerous issues may be resolved with machine
learning approaches, such as regression, clustering,
I. INTRODUCTION and classification. Algorithms used in machine
learning include reinforcement learning, supervised
The livestock business suffers significant financial learning, and unsupervised learning[5]. These
losses due to the extremely infectious viral illness techniques are frequently used to solve problems
known as lumpy skin disease (LSD), which can pertaining to categorization. Cattle illness is
affect cattle. Early identification and diagnosis of classified and detected using a variety of well-liked
affected animals is essential for stopping the spread machine learning classification techniques, such as
of illness and lessening its effects on the production
neural networks, Inception V3, VGG, AlexNet, and Additive exPlanations) visualizations to gain more
ResNet 101. insight into the accuracy of the classification, since
Random Forest performs well with the chosen
A deep learning algorithm, or convolutional neural dataset.
network (CNN), is a subset of machine learning.
This method belongs to the category of artificial The researchers in this study [3] employed SMOTE
neural networks and may be used to many kinds of as a resampling approach and Random Forest
data and applications. A CNN is a type of network classification to maximize the prediction of Lumpy
architecture/algorithm that processes pixel input and Skin Disease. They also utilized a genetic algorithm
is used for image recognition. The design of a CNN for hyperparameter tuning. Recall measures are
is comparable to the structure of brain connection. employed in this work to classify LSD, with the
notion being that the greater the score, the higher the
The CNN uses three different layers. The essential probability that the system will label cows with the
part of a CNN is its convolutional layers, which are infection wrongly as healthy.
where elements like edges, textures, and forms are
extracted from the input picture by applying filters. The author employs a number of machine learning
After the convolutional layers' output is processed models in this study [4]. The purpose of this
through pooling layers, the feature maps are down- investigation was to determine whether or not cattle
sampled to lower the spatial dimensions while were afflicted with lumpy skin disease. A total of ten
keeping the most crucial data. One or more fully machine learning classifiers were utilized, and
connected layers are then applied to the output of the assessment metrics were calculated to determine the
pooling layers in order to categorize or forecast the efficacy of each classifier. The two classifiers that
picture. have performed the best overall are the Random
Forest Classifier and the Light Gradient Boosted
Convolutional neural networks (CNNs) with object Machine Classifier.
identification and picture categorization are used in
the Inception V3 architecture. Researchers at In this article [5], author focuses on forecasting
Google invented it. Computer vision applications whether or not cattle in a given geographical area are
including image recognition, object detection, and susceptible to Lumpy disease in the future in order
picture segmentation commonly employ Inception to implement preventive measure. They discovered
V3. that Random Forest, Adaboost, and Neural Network
can reliably forecast the probability of LSDV
infection based on several studies.
II. LITERATURE REVIEW
The author of this report [1] proposes a deep learning III. SOFTWARES AND TOOLS
model based on convolutional neural networks
(CNNs) to accurately detect a variety of illnesses VS Code Editor
from photographs, including infectious bovine
keratoconjunctivitis (IBK), lumpy skin disease It's a versatile and strong editor. VS Code is a robust
(LSD), and foot and mouth disease (FMD). Early and versatile code editor due to its many features and
detection of diseases decreases human error, and extensions. has fundamental qualities. With features
make diagnosis available to all farmers. This might like live servers, snippets, git integration,
completely transform the way disease is controlled. extensions, and a debugger, Visual Studio Code is a
Although further study is required to perfect the great tool for web development.
model and incorporate it into farm management Keras Neural Network API
systems, there is a great deal of promise for
enhancing cattle health and reducing financial Python-based Keras is a deep learning API that may
losses. be used with PyTorch, TensorFlow, or Java
augmented reality. It is written in Python. An
Using robust Machine Learning algorithms based on effective Application Programming Interface (API)
geographic and meteorological data, the author's for advanced neural networks is called Keras.
approach [2] for detecting Lumpy Skin Disease Designed to make deep neural network research
Virus (LSDV) is based on developing a prediction more rapid, this open-source neural network
model. Random Forest outperforms other framework may be used with CNTK, TensorFlow,
algorithms in terms of predicting the likelihood of and Theano. Keras focuses on being modular, user-
LSDV prediction. We also employ SHAP (SHapley friendly, and extensible. Keras runs on top of
TensorFlow and is relatively fast. In Keras, learning framework. Custom layers can be created
prototyping takes less time. and added to a model to introduce specific
functionalities or features tailored to a particular task
Google Colab or application.
Google Colab, or Collaboratory, is a cloud-based Create and compile the Model:
platform tailored for collaborative coding, with a
specific emphasis on machine learning and data Creating and compiling a neural network model
analysis. Python code notebooks may be created by involves defining the architecture of the model,
users on Google's cloud platform, where they can specifying how it should be trained, and configuring
have free access to powerful processing resources parameters such as the optimizer, loss function, and
such as CPU, GPU, and TPU. This enables the metrics.
execution of sophisticated machine learning
algorithms and efficient handling of substantial Sigmoid activation Function
datasets. Noteworthy for its user-friendly sharing This is also called the transfer function used for
features, seamless integration with Google Drive, getting the output of the node. Activation functions
Google Colab finds popularity in educational are used to determine the output of the neural
environments, research endeavors, and the network like yes or no. The resulting values of
development of machine learning projects.
activation functions are between 0 to 1 or -1 to 1.
The range of sigmoid is between 0 to 1. This is an S-
shape curve. The sigmoid function is
IV. MATERIAL AND METHODOLOGY defined by the formula:
Application Model:
Figure 4: Homepage
C. Working of an application
D. RESULTS
Comparative Analysis:
Algorithm Accuracy Precision Recall F1
Figure 6, presents a cautionary message, alerting Table 1: This table represents comparative analysis
users to the model's 91% accuracy and suggesting of performance measures of different CNN models
prompt consultation with a doctor.
100
97.4
95 93.8
89.7
90
87.2
85 82.1
80
75
70
Inception Alex-Net ResNet 101 Random VGG 16
V3 Forest
Accuracy
Confusion Matrix:
Figure 7: Result Message
The prediction summary is represented as a
Figure 7, showcases an image of a tested cow for matrix in a confusion matrix. It displays the
LSD. The result indicates whether the cattle is number of correct and wrong predictions for
normal, mild, or severe, along with the accuracy rate each class. It aids in comprehending the
for that specific image. The option to download the
courses that are perplexed by the model as .
another class.
Figure 11: Loss Graph of our model using
Inception V3 with increasing no of images.
Actual Values
Predicted 550(TP) 10 (FP) VI. CONCLUSION
Values 5 (FN) 5 (TN)
The primary goal of our model is to predict the
Table 2: Confusion Matrix
prevalence and severity of bovine TB while
minimising financial losses in the cattle industry.
Performance Metrics Our findings emphasise the need of collecting high-
quality data sets from numerous sources in order to
100
increase machine learning model performance, as
98 98.1
97.4 well as how machine learning and image recognition
96.7
approaches may be utilised to identify LSD in cattle.
96 Our programme has the potential to enhance the
94.7
94 quick identification and diagnosis of LSD in cattle
with an accuracy of 97.4%, which might assist to
92 curtail the disease's spread and alleviate the related
Accuracy Precision Recall F1 Score economic losses.