3.2. Feature Selection Result
Five different types of meat images, beef, buffalo, goat, horse, and pork, were used to test the feature selection findings. Each type of meat image was classified into three classes: fresh, frozen, and rotten. Each meat is described in
Table 3 using GLCM metrics, including homogeneity, contrast, correlation, energy, and entropy. It's crucial to remember that every flesh texture image has the same pixel size, which is 500x500 [
56,
57]. The choice to employ uniform pixel sizes across all flesh texture images may have been made with an eye toward optimizing computer power. It can lower the computing load and expedite the data analysis process by employing a consistent pixel size. This choice has a number of drawbacks, though, including a lack of spatial resolution and difficulty accurately capturing any scale variations that might exist among the photos. The texture of each meat image can still be learned a great deal by using GLCM metrics, which include contrast, correlation, energy, homogeneity, and entropy. When comparing the textural properties of fresh, frozen, and rotten meat from different kinds of animals under observation, this GLCM measure can be helpful. Thus, despite limitations in spatial resolution, GLCM analysis can still provide valuable insights into meat texture recognition and classification. Therefore, GLCM analysis can still offer valuable insights into the detection and classification of flesh texture despite its limitations in spatial resolution.
Table 3 illustrates how well all feature sets distinguish between the three classes (a), (b), and (c). For fresh meat images, the average ranges from
51.52% to
183.21%, while for frozen meat images, the average ranges from
78.25% to
185.75%. Rotten meat images, on the other hand, have an average range of
34.62% to
115.79%.
The picture of fresh meat demonstrates how fresh pigs have a less diverse texture than other meats. In contrast, higher averages for all recorded GLCM measurements suggest that the intensity variation of fresh goat meat was more significant. Significant variations in the intensity and texture structure of fresh meat images from various meat varieties were shown by this experiment. These differences are crucial for categorizing and identifying pictures and understanding the textural characteristics of various meat kinds.
In the meantime, the frozen meat image reveals that the frozen pork texture image has the lowest average. This indicates that the texture of frozen pig has less variation in intensity than that of frozen goat meat. Frozen goat meat, on the other hand, displayed more notable intensity differences. This report provides a summary of the textural characteristics of frozen goat flesh. This information can be helpful in both learning more about the differences between different slices of meat and identifying or classifying images of frozen beef.
However, the picture of the rotting meat demonstrates that, in most cases, the texture difference between rotten pork and rotten beef is less severe. The intensity difference was more significant for the decaying flesh. This study advances our knowledge of the textural characteristics of pictures of rotting beef. This information can distinguish between various states of meat and identify or classify the stages of rotten meat [
58,
59].
Table 4 presents the validation results for all aspects of class (a), (b), and (c) using k-NN classification. It is expected that (A) sensitivity, (B) specificity, (C) accuracy, and (D) Matthews correlation function well. For fresh meat images, the coefficients have percentages ranging from (A):
97.959% to
100%; (B):
96.078% to
100%; (C):
97% to
99%; and (D):
94.019% to
98.02%. Meanwhile, images of frozen beef with percentages ranging between
96.078% to
100% in (A),
97.959% to
100% in (B),
97% to
99% in (C), and
94.019% to
98.02% in ( D)). Meanwhile, the percentage of rotten meat images is as follows: (A):
92.308% to
96%; (B):
95.833% to
97.917%; (C):
94% to
96%; and (D):
88.07% to
92.074%) [
60,
61]. Findings from analyses of (A), (B), (C), and (D) fresh, frozen, and rotten meat images offer essential information about how well k-NN classification models can categorize meat states. Based on the texture image.
Fresh Meat: The model can correctly detect fresh meat images for both categories, as evidenced by (A) having the most significant proportion and being more dominant in fresh goat and fresh horse meat texture images. (B) have different quality percentages. With the highest accuracy images for fresh meat texture, the model can correctly differentiate fresh beef from frozen or rotten beef. This shows how well the model can differentiate fresh meat images from other settings. C) The model can classify fresh meat images correctly; fresh beef and fresh horse meat texture images are the most accurate. This shows how well the model can recognize fresh meat images and differentiate them from other conditions. Images of fresh beef and fresh horse meat (D) are more common in texture images and have the highest percentage (D). This shows a good agreement between the feature model and the actual classes in the fresh meat environment for the classification results. On the other hand, the percentage (D) in the texture image of fresh buffalo meat shows worse performance.
Frozen Meat: The tendency of the model to accurately recognize frozen pork images is demonstrated by the fact that the model has (A) the highest percentage of predominance over frozen buffalo meat texture images. On the other hand, the texture image of frozen buffalo meat has (A) the lowest rate, indicating a problem with identifying frozen buffalo meat. The decreasing tendency of the model to correctly classify frozen buffalo meat photos is shown by (B), which displays the lowest percentage of all frozen buffalo meat texture images. In contrast, the texture images of frozen beef and frozen horse meat received the most significant percentage (B), indicating that the model performs better in accurately classifying these images. (C) The frozen buffalo meat texture image has the lowest accuracy, while the frozen pork texture image has the best dominant accuracy. This shows that the model classifies frozen pork images more accurately than buffalo meat images. However, this algorithm performed very well when classifying frozen meat images. When comparing the texture images of frozen goat meat and frozen pork, the percentage of frozen beef with (D) is the highest. This shows how well and accurately the algorithm can classify texture images of frozen mutton and pork. On the other hand, (D) the percentage of frozen buffalo meat texture images shows worse performance.
Rotting Meat: shows the model's skill in identifying images of rotting goat meat, with (A) the highest percentage being more dominant in texture images. However, in the picture, the texture of rotten buffalo meat has (A) the lowest percentage, so it is challenging to distinguish rotten buffalo meat. (B) has the lowest rate for texture images of rotten buffalo meat and rotten horse meat; this shows the difficulty of effectively recognizing the images of these two types of Meat. However, the texture images of rotten beef and rotten pork have (B) the highest percentage, which shows that the model is more accurate in classifying images of rotten Meat and rotten pork. (C) The texture image of rotten goat meat, rotten pork and rotten buffalo meat has the highest accuracy, while the texture image of rotten beef has the lowest accuracy. This shows that for the model to accurately classify images of rotting buffalo meat, the model must be more precise. However, the images of rotten beef, rotten goat meat, and rotten pork can be recognized correctly through this experiment. But overall, this system works well in categorizing cases of rotting flesh. (D) texture description of rotten pork, rotten goat meat, and rotten beef. Rotten Meat is more common and has the best percentage (D). The model performs well in classifying images of rotting flesh; however, the lowest rate of images was associated with the texture of rotting horse meat (D).
Table 5 shows how well the three models compare in terms of comparison results of performance measurements of the k-nearest neighbor (k-NN) algorithm, the Haar Wavelet algorithm, and the Gray Level Co-occurrence Matrix (GLCM) for the three classes (fresh, frozen, and frozen). Frozen). Rotten). (A) k-NN, (B) Wavelet Haar and (C) GLCM assumed. First, for the fresh meat texture image class, (A):
97% to
99%; (B):
89.25% to
89.96%; and (C):
51.52% to
183.21%. The percentage of frozen meat in both images is
97% to
99% in (A),
87.56% to
88.25% in (B), and
78.25% to
185.75% in (C), third, with the percentage ranges from
94%. Up to
96% in (A),
86.26% to
87.97% in (B), and
34.62% to
115.79% in (C) for the rotting flesh image.
The performance results of algorithms (A), (B), and (C) on fresh, frozen, and rotten meat images provide valuable insight into the performance of algorithm models in determining the condition of Meat based on texture images. Fresh Meat First: (A) The k-NN algorithm gives the best results on texture images of fresh goats, horses and cattle. It also has the most significant standout score (99%). This shows how well the k-NN algorithm performs when classifying fresh meat images. Regarding the texture image of fresh buffalo meat, k-NN has the worst performance, with a score of 97%. Meanwhile, (B) the texture image of fresh pork shows that the performance of the Haar Wavelet algorithm is worse (89.25%) than k-NN. However, when it comes to fresh beef texture images, our algorithm performs well (89.96%). Meanwhile, for the texture image of fresh pork (C), the GLCM method gave inconsistent results, with the lowest application percentage (51.52%). However, GLCM data can still be used for classification. However, GLCM has the most significant proportion of fresh goat meat texture images (183.21%). Of the three algorithms studied, the GLCM, Wavelet Haar, and k-NN models performed the best in categorizing fresh meat texture images into meat categories. This shows that the k-NN technique is more suitable for applications that organize texture images of Fresh Meat.
Second Frozen Meat: (A) Using the k-NN method, the texture image of frozen pork gives the most prominent value (99%), while the texture image of frozen buffalo meat gives the lowest result (97%). This shows how well the k-NN algorithm classifies frozen meat images. However, compared with k-NN, the Haar Wavelet algorithm performs worst (87.56%) on frozen beef texture images. However, the algorithm continues to produce good results. 88.25 per cent) is the highest performance in frozen beef texture images. Based on the GLCM algorithm, the texture image of frozen pork (C) has the lowest value, 78.25%. However, GLCM results can still be used to classify frozen meat images. After three rounds of testing, k-NN maintained its top ranking in frozen meat texture image classification, with Wavelet Haar and GLCM ranking second and third. This shows that applications that require frozen meat texture image classification are more suitable for using the k-NN technique. GLCM was the best model in performance testing, with an accuracy of 185.75%.
Third, Rotten Meat: (A) has the lowest percentage (94%), although the texture images of rotten beef, rotten goat, and rotten pig have the highest k-NN values (96%). This demonstrates how effectively the k-NN algorithm classifies pictures of rotting flesh. While (B) k-NN outperforms the Haar Wavelet algorithm (86.26%), there is an image of decaying buffalo flesh. However, the algorithm continues to yield good results. Conversely, (C) The GLCM approach yields erratic results; the textural image of rotten pork has the lowest performance % (34.62). However, GLCM data can still be used to categorize images of rotting flesh. However, the rotten beef texture image had the highest performance percentage (115.79%). After testing three different algorithms, k-NN, GLCM, and Wavelet, Haar continued to produce the best classification results for images containing rotting meat textures. This shows that when classifying rotting meat texture images, the k-NN approach is more suitable.
Table 6.
Classification accuracy based on meat texture analysis.
Table 6.
Classification accuracy based on meat texture analysis.
Author |
Structure |
Texture Analysis Method (Features) |
Method |
Accuracy (%) |
Yudhana, Anton Umar, Rusydi Saputra, Sabarudin[36] |
Fish |
RGB colors and GLCM features |
k-NN |
94% |
Don Africa, Aaron M Claire Alberto, Stephanie T Evan Tan, Travis Y[62] |
Beef and pork |
Skewness, Kurtosis, Mean, and Std Deviation |
k-NN |
98.6% |
Wijaya, Dedy Rahman Sarno, Riyanarto Zulaika, Enny[63] |
beef |
Regression results (black: actual, blue: prediction, red: prediction with error |
Discrete Wavelets Transform and Long Short-Term Memory (DWTLSTM) dan k-nearest neighbour (k-NN) |
85,05% |
Kiswanto, Hadiyanto, and Eko Sediyon[2] |
Beef, buffalo, goat, horse and pork |
RGB, GLCM and HSV |
Haar wave algorithm |
76.72% |
Ayaz, Hamail Ahmad, Muhammad Mazzara, Manuel Sohaib, Ahmed[64] |
Meat |
HSI |
k-NN |
82% |