Instrumentation & Measurement Magazine 25-9 - 49
Table 10 - Prediction results for No. 10 pepper powder with random forest algorithm
Number
1
2
3
Average
Pure pepper
powder
100%
100%
100%
100%
Bran mixed
powder
100%
100%
100%
100%
Rosin powder
mixed
95.24%
100%
100%
98.41%
random forest algorithm had excellent classification results for
pepper powder No. 9.
As listed in Table 10, the random forest model also performed
excellently for No. 10 pepper sample. The recognition
accuracy of pure pepper, adulterated wheat bran and mixedrosin
powder were higher than other adulteration samples.
Moreover, the overall average accuracy reached 95%.
Compared with the results of the decision tree model (Table
8 and Fig. 7), the recognition accuracy was improved with
the random forest method (Fig. 8). The pure pepper could be
classified successfully from the samples with adulterations.
Moreover, the recognition accuracy of the powders mixed with
rosin and wheat bran were higher than that of rice bran and
Corn flour
mixed
85.71%
76.47%
100%
87.39%
Mixed with
rice bran
powder
91.67%
83.33%
100%
91.67%
Average
94.52%
91.96%
100%
95.49%
corn flour. However, all specific adulterations could be identified
with high recognition accuracy with machine learning
models including SVM, DT and RFT.
The recognition results for all ten types of pepper samples
with the RFT method are listed in Table 11. The recognition accuracy
of most types of samples was higher than 95% with the
RFT method. Hence, it is a potentially good method to recognize
adulterations in pepper powders.
Fig. 8. Confusion matrix of No. 10 pepper powder with random forest
classification results where labels 1 to 5 indicate the pure pepper, mixture with
bran powder, rosin powder, corn flour and with rice bran powder, respectively.
Comparison of Different Machine Learning Models
To compare the performance of different machine learning
models to recognize the adulterations in pepper powder, the
recognition accuracy for different adulterations were calculated
with SVM, DT and RFT method, as shown in Fig. 9.
All three algorithms could recognize the adulterations in the
pepper powders with high accuracy. The pure pepper was
identified with the highest accuracy among adulterated powder
samples with different machine learning models. On the
other hand, SVM performed better than RFT and DT in recognizing
the adulterations in the pepper samples both for
the specific species and overall results. Moreover, DT had the
lowest recognition accuracy among three machine learning
models in our test. Hence, the AOS with SVM model seems to
be a good choice to measure the quality of the pepper samples
to identify the adulations in the peppers.
Other ML models including decision tree, discriminant
analysis, k-nearest neighbor, and Ensemble Classifiers were
also tested to identify the adulterations in the pepper. A MATLAB
ML tool was used in this case. Hence, all samples (4000
samples for training and 1190 for testing) were utilized to classify
the adulterations in pepper with MATLAB ML tool. The
results of recognition accuracy for the test sets with different
machine learning models are listed in Table 12.
Table 11 - Training and testing results of all samples of ten pepper species (%)
Number of
experiments
1
2
Average
December 2022
Training
Testing
Training
Testing
Training
Testing
1
100
91.05
100
94.74
100
92.9
2
100
97.5
100
100
100
98.8
3
100
96
100
96
100
96
4
100
99
100
96
100
97.5
5
100
98
100
95
100
96.5
6
100
95
100
95
100
95
IEEE Instrumentation & Measurement Magazine
7
100
99
100
98
100
98.5
8
100
98
100
99
100
98.5
9
100
93
100
97
100
95
10
100
96
100
95
100
95.5
49
Instrumentation & Measurement Magazine 25-9
Table of Contents for the Digital Edition of Instrumentation & Measurement Magazine 25-9
Instrumentation & Measurement Magazine 25-9 - Cover1
Instrumentation & Measurement Magazine 25-9 - Cover2
Instrumentation & Measurement Magazine 25-9 - 1
Instrumentation & Measurement Magazine 25-9 - 2
Instrumentation & Measurement Magazine 25-9 - 3
Instrumentation & Measurement Magazine 25-9 - 4
Instrumentation & Measurement Magazine 25-9 - 5
Instrumentation & Measurement Magazine 25-9 - 6
Instrumentation & Measurement Magazine 25-9 - 7
Instrumentation & Measurement Magazine 25-9 - 8
Instrumentation & Measurement Magazine 25-9 - 9
Instrumentation & Measurement Magazine 25-9 - 10
Instrumentation & Measurement Magazine 25-9 - 11
Instrumentation & Measurement Magazine 25-9 - 12
Instrumentation & Measurement Magazine 25-9 - 13
Instrumentation & Measurement Magazine 25-9 - 14
Instrumentation & Measurement Magazine 25-9 - 15
Instrumentation & Measurement Magazine 25-9 - 16
Instrumentation & Measurement Magazine 25-9 - 17
Instrumentation & Measurement Magazine 25-9 - 18
Instrumentation & Measurement Magazine 25-9 - 19
Instrumentation & Measurement Magazine 25-9 - 20
Instrumentation & Measurement Magazine 25-9 - 21
Instrumentation & Measurement Magazine 25-9 - 22
Instrumentation & Measurement Magazine 25-9 - 23
Instrumentation & Measurement Magazine 25-9 - 24
Instrumentation & Measurement Magazine 25-9 - 25
Instrumentation & Measurement Magazine 25-9 - 26
Instrumentation & Measurement Magazine 25-9 - 27
Instrumentation & Measurement Magazine 25-9 - 28
Instrumentation & Measurement Magazine 25-9 - 29
Instrumentation & Measurement Magazine 25-9 - 30
Instrumentation & Measurement Magazine 25-9 - 31
Instrumentation & Measurement Magazine 25-9 - 32
Instrumentation & Measurement Magazine 25-9 - 33
Instrumentation & Measurement Magazine 25-9 - 34
Instrumentation & Measurement Magazine 25-9 - 35
Instrumentation & Measurement Magazine 25-9 - 36
Instrumentation & Measurement Magazine 25-9 - 37
Instrumentation & Measurement Magazine 25-9 - 38
Instrumentation & Measurement Magazine 25-9 - 39
Instrumentation & Measurement Magazine 25-9 - 40
Instrumentation & Measurement Magazine 25-9 - 41
Instrumentation & Measurement Magazine 25-9 - 42
Instrumentation & Measurement Magazine 25-9 - 43
Instrumentation & Measurement Magazine 25-9 - 44
Instrumentation & Measurement Magazine 25-9 - 45
Instrumentation & Measurement Magazine 25-9 - 46
Instrumentation & Measurement Magazine 25-9 - 47
Instrumentation & Measurement Magazine 25-9 - 48
Instrumentation & Measurement Magazine 25-9 - 49
Instrumentation & Measurement Magazine 25-9 - 50
Instrumentation & Measurement Magazine 25-9 - 51
Instrumentation & Measurement Magazine 25-9 - 52
Instrumentation & Measurement Magazine 25-9 - 53
Instrumentation & Measurement Magazine 25-9 - 54
Instrumentation & Measurement Magazine 25-9 - 55
Instrumentation & Measurement Magazine 25-9 - 56
Instrumentation & Measurement Magazine 25-9 - 57
Instrumentation & Measurement Magazine 25-9 - 58
Instrumentation & Measurement Magazine 25-9 - 59
Instrumentation & Measurement Magazine 25-9 - 60
Instrumentation & Measurement Magazine 25-9 - 61
Instrumentation & Measurement Magazine 25-9 - 62
Instrumentation & Measurement Magazine 25-9 - 63
Instrumentation & Measurement Magazine 25-9 - 64
Instrumentation & Measurement Magazine 25-9 - 65
Instrumentation & Measurement Magazine 25-9 - 66
Instrumentation & Measurement Magazine 25-9 - 67
Instrumentation & Measurement Magazine 25-9 - 68
Instrumentation & Measurement Magazine 25-9 - 69
Instrumentation & Measurement Magazine 25-9 - Cover3
Instrumentation & Measurement Magazine 25-9 - Cover4
https://www.nxtbook.com/allen/iamm/26-3
https://www.nxtbook.com/allen/iamm/26-2
https://www.nxtbook.com/allen/iamm/26-1
https://www.nxtbook.com/allen/iamm/25-9
https://www.nxtbook.com/allen/iamm/25-8
https://www.nxtbook.com/allen/iamm/25-7
https://www.nxtbook.com/allen/iamm/25-6
https://www.nxtbook.com/allen/iamm/25-5
https://www.nxtbook.com/allen/iamm/25-4
https://www.nxtbook.com/allen/iamm/25-3
https://www.nxtbook.com/allen/iamm/instrumentation-measurement-magazine-25-2
https://www.nxtbook.com/allen/iamm/25-1
https://www.nxtbook.com/allen/iamm/24-9
https://www.nxtbook.com/allen/iamm/24-7
https://www.nxtbook.com/allen/iamm/24-8
https://www.nxtbook.com/allen/iamm/24-6
https://www.nxtbook.com/allen/iamm/24-5
https://www.nxtbook.com/allen/iamm/24-4
https://www.nxtbook.com/allen/iamm/24-3
https://www.nxtbook.com/allen/iamm/24-2
https://www.nxtbook.com/allen/iamm/24-1
https://www.nxtbook.com/allen/iamm/23-9
https://www.nxtbook.com/allen/iamm/23-8
https://www.nxtbook.com/allen/iamm/23-6
https://www.nxtbook.com/allen/iamm/23-5
https://www.nxtbook.com/allen/iamm/23-2
https://www.nxtbook.com/allen/iamm/23-3
https://www.nxtbook.com/allen/iamm/23-4
https://www.nxtbookmedia.com