| Literature DB >> 33854157 |
Dennis Wagner1, Dominik Heider1, Georges Hattab2.
Abstract
Predicting if a set of mushrooms is edible or not corresponds to the task of classifying them into two groups-edible or poisonous-on the basis of a classification rule. To support this binary task, we have collected the largest and most comprehensive attribute based data available. In this work, we detail the creation, curation and simulation of a data set for binary classification. Thanks to natural language processing, the primary data are based on a text book for mushroom identification and contain 173 species from 23 families. While the secondary data comprise simulated or hypothetical entries that are structurally comparable to the 1987 data, it serves as pilot data for classification tasks. We evaluated different machine learning algorithms, namely, naive Bayes, logistic regression, and linear discriminant analysis (LDA), and random forests (RF). We found that the RF provided the best results with a five-fold Cross-Validation accuracy and F2-score of 1.0 ([Formula: see text], [Formula: see text]), respectively. The results of our pilot are conclusive and indicate that our data were not linearly separable. Unlike the 1987 data which showed good results using a linear decision boundary with the LDA. Our data set contains 23 families and is the largest available. We further provide a fully reproducible workflow and provide the data under the FAIR principles.Entities:
Year: 2021 PMID: 33854157 PMCID: PMC8046754 DOI: 10.1038/s41598-021-87602-3
Source DB: PubMed Journal: Sci Rep ISSN: 2045-2322 Impact factor: 4.379
Figure 1Annotated mushroom observations. From left to right, the annotated mushroom species are: Amanita muscaria, Coprinopsis atramentaria, Pluteus cervinus. The one image without an annotation corresponds to a species from the puffball mushroom family. Because stemless mushrooms species were excluded from the data, an identification cannot be made. The largest image is shown for a mushroom from the Russula fragilis species with the following attributes: sunken cap-shape, purple cap-color, whitegill-color, whitestem-color.
Primary data excerpt. The square brackets refer either to a set of nominal variables or to a continuous range of values. The single letters were encoded as nominal variables. Regarding continuous variables (seen as float numbers), they correspond to lengths in centimeters (cm), with the exception of stem-width reported in millimeter (mm). The shown columns are the three classes, the first two variables and the last variable. Intermediary columns are not shown due to page and column size restrictions.
| Family | Name | Class | Cap-diameter | Cap-shape | Season |
|---|---|---|---|---|---|
| Amanita Family | Fly Agaric | p | [10:20] | [x, f] | [u, a, w] |
| Amanita Family | Panther Cap | p | [5:10] | [p, x] | [u, a] |
| Amanita Family | False Panther Cap | p | [10:15] | [x, f] | [u, a] |
| . | . | . | . | . | . |
| Morel Family | Common Morel | e | [3:8] | [p, c, o] | [s] |
| Jelly Discs Family | Jelly Babies | p | [1:1.5] | [x, f, s] | [u,a] |
Figure 21987 data.
Figure 3Secondary data.
Figure 4Five-fold cross-validation accuracy and F2 score results for both data sets and using each of the four classifiers. The highest score results are obtained using the RF classifier. They are reported in gray color.
Figure 5ROC curve for each classifier applied to the secondary data. The x-axis and the y-axis correspond to the FP and TP rates, respectively. The black line represents the ROC curve. The area under the curve represents the AUC which is reported textually above the graph. Each curve depicts the true positive rate or the recall on the y-axis and the false positive rate or the Type I error on the x-axis. The latter corresponds to the ratio of mushrooms wrongly classified as poisonous to all edible mushrooms.