Professional Documents
Culture Documents
In this chapter, the researchers present the study's analysis and findings.
To support the study's specific questions, data were gathered, collected, and
tabulated. It includes tables that show the findings of the study on the Pig Skin
The researchers conducted a total of ten trials in order to obtain the most
reliable data. Skin lesion, swine pox, and normal skin images were tested and their
data was tailed using system software. Due to a lack of subjects, we also tested
temperature readings for normal skin images, excluding skin lesions and swine
pox. The necessary tools and equipment were placed in a pig pen during the
diseases.
40
4.1.1 Preparation
After approval, the researchers approached the thesis adviser to plan the
project's design, including the entire technical plan. The proposal's success
complete the project. An organized procedure for selecting suitable sources was
4.1.2 Design
The design and application of the Pig Skin Diseases Recognition System
Using Machine Learning with Thermal Sensor was based on the recommendation
Using Image Processing and Machine Learning in Human Skin. The researchers
process, system, or computer algorithm. They are used to plan and improve
arrows to define flow and sequence. They can range from simple hand-drawn
Figure 3 depicts the block diagram of the Pig Skin Diseases Recognition
System Using Machine Learning with Thermal Sensor. Blocks with lines illustrating
44
Straight lines that represent the streams of the process flow connect the blocks.
Figure 4 depicts a wiring diagram created with Fritzing to design a humidity and
Arduino Uno. Using the components and wiring connections described above, the
4.1.7 Procedure
performance and functionality. The waterfall with feedback model was used to
Figure 5 depicts each stage of the waterfall process model as well as the
the system development life cycle to create a system in a linear and sequential
one phase to the next in a downward fashion. This model is divided into phases,
and the output of one phase is used as the input of the next phase. Every phase
must be completed before moving on to the next, and no phases can overlap.
Event Activities
Integration and Testing • Following the testing of each unit created during the
implementation phase, the entire system is integrated.
Constant software testing is required to check for bugs
and errors in the designed software. Testing is carried
out to ensure that the client has no issues installing the
software.
47
Deployment of System • Once the product has undergone functional and non-
functional testing, it is either released or deployed in the
customer environment.
deployment of system and lastly the maintenance. In addition, the waterfall method
completion, much like the direction water runs over the brink of a cliff.
48
4.1.8 Operation
Figure 5 depicts the main graphical user interface (GUI). It has five different
system components. Label 1 contains the heading and the title of the research
the imread command. Images of various pig skin diseases are saved in a file and
stored in an array named. The file imread infers that the graphics file format is
saved. Label 3 allows you to clear the currently loaded image and load another
image. Label 4 displays image data by using the imshow function. Label 5 shows
the output or result of the system's testing of the skin types displayed in label 4.
49
The graphical user interface for the image being uploaded to the system is
shown in Figure 6. The system dispays that it detects normal pig skin condition. A
series of trials conducted by the researcher during system testing. The system's
output for Normal Skin condition ranges between 60% and 74% accuracy in
determining the type of skin disease. This indicates that if the observed output falls
Figure 7 displays the results of the system for the pig skin ailment Skin Lesion.
To establish a standard range where the system shows the output for skin lesion
state, the researchers conducted a number of tests. The outcome indicates that
this particular skin problem falls between 74% and 80%. According to this, a skin
The graphical user interface for the swine pox disease detection is
experiments to determine a typical range where the system displays the output for
swine pox status. The results show that between 80% and 90% of pig skin have
this particular skin issue. This states that if the observed output is within the range,
Figure 9. The sensor is a DHT11, and the LCD, connecting wires, and breadboard
4.1.9 Programming
specifically designed to aid the work of computer programmers, who write source
converts this code into machine language that a computer can understand and
Source Code for Pig Skin Diseases Recognition System Using Machine
Code Snippets
Figure 11 shows the code snippet for loading pretrained network. The
classification accuracy on the ImageNet validation set is the most commonly used
trained on over a million images from the ImageNet database can be loaded. The
pretrained network can classify images into 1000 different object categories,
including keyboards, mice, pencils, and various animals. As a result, the network
has learned detailed feature representations for a diverse set of images. The
Figure 12 depicts code snippets for dividing the datasets into two parts, first
features at a specific network layer. This creates an invisible grid overlay on each
image, with the number of cells equal to the extracted features' dimension.
56
Figure 14 illustrates how the program code executes by first utilizing CNN
to extract test features. After that, the trained classifier will get the CNN image
features, and the results will then be tabulated using a confusion matrix. With the
Figure 15 shows how the program execute by the help of CNN in extracting
image. The output is now comparing the trained classifier and displays the
The primary goal of the Pig Skin Diseases Recognition System Using
Machine Learning with Thermal Sensor is to aid in the late detection of diseases
among pig skin diseases. The researchers developed these key features by
as an algorithm to classify skin types, and Arduino uno to test humidity and
programming languages such as C, C++, Java, and others. The IPT in MATLAB is
learning technique. CNNs are trained on large datasets of diverse images. CNNs
can learn rich feature representations for a wide range of images from these large
collections. The researchers trained 3 types of datasets: normal skin images, skin
Source: https://towardsdatascience.com/a-comprehensive-guide-to-convolutional-neural-
networks-the-eli5-way-3bd2b1164a53
an image, assigning it some weightage based on the various objects in the image,
and then distinguishing them from one another. This contains a variety of colors
based on the three-color plane of Red, Green, and Blue, also known as RGB. The
various color spaces in which images are found are then identified, such as RGB,
CNN's useful features is that it reduces the image's dimension to make it easier to
process while still retaining all of its features in one piece. This is done to obtain a
Table 5
accurate and effective in identifying pigs' natural skin. Given that the system can
identify healthy pig skin, which typically has a temperature between 38°C and 40°C
and a humidity level of less than or equal to 80%. Using the confusion matrix
formula, the test reveals that the percentage of pigs with good skin falls between
60 and 74 percent.
Statistical Treatment:
Solving first the total observed output from the table above:
Next, calculate the mean by dividing the total observed output by 10:
70.05 − 74
RE =| |x 100%
74
RE = 0.05%
With a relative error of 0.05%, the method is hence reliable and accurate
Table 6
Did the system recognize the skin lesion pig skin condition?
8 74 - 80 80 Accurate
9 74 - 80 75.9 Accurate
10 74 - 80 74.8 Accurate
Overall Accuracy 100%
Table 6 demonstrates that the system is 100 percent accurate and useful in
differentiating the skin lesion disease of pigs. According to the system, 74–80% of
skin lesions are present. Since we lacked a test subject, we were unable to
Statistical Treatment:
First, solve the total observed output from the table above:
The mean is then calculated by dividing the total observed output by 10:
76.883 − 80
RE = abs | | x 100%
80
RE = 0.03%
The approach is hence accurate for detecting pig skin disease, with a
Table 7
Did the system recognize the swine pox pig skin condition?
distinguishing pig swine pox disease. The temperature and humidity are not tested
because a pig with swine pox skin condition is not available. According to the
system, the prevalence of swine pox skin disease is between 80 and 90 percent.
Statistical Treatment:
To begin, solve the total observed output from the previous table:
The mean is then calculated by dividing the total observed output by 10:
89.341 − 90
RE =| |x 100%
90
RE = 0.73%
The approach is therefore accurate for detecting pig skin disease, with a
result in diagnosing and identifying various pig skin disorders. As a result, the table
demonstrated that the system can recognize and detect healthy pig skin state. The
relative error is less than 1%. In many cases, this is considered a good
approximation.