- Project Description
- Configuration Instructions
- Installation Instructions
- Operating Instructions
- Manifesting Directory structure
- Copyrights
- Contact
- Bugs
- Acknowledgement
- References
Mushroom is fleshy and edible fruit bodies of several species of fungi members of Basidiomycetes grown in ground surface or substrate of other plants such as straw and wood some of which are edible, but a minority of them are toxic. Every year, a large number of people die from eating poisonous mushrooms. It is useful to identify whether a mushroom is poisonous according to the appearance features of the mushroom. The automatic recognition of mushroom toxicity has important social and application value in effectively preventing food poisoning. An automatic identification can break through the limitation to determine whether it is toxic.
These mushroom toxicity recognition methods have some limitations, such as low accuracy, unqualified detection of unknown toxins, strict requirements for the experimental environments, sufficient professional knowledge, and complex experimental cycles. To solve these problems, we propose an automatic toxicity identification method based on visual features. Firstly, data is inspected for unbalanced set, followed by preprocessing the dataset by data wrangling(Encoding categorical features, Standardizing the features, Encoding the target variable) to convert the categorical data into numerical data Finally, various classifiers like Logistic Regression, Naive Bayes and Random Forest classifier are applied to check for the accuracies of each classifier and propose the best suitable classifier to recognize the toxicity of mushrooms, even that of some unknown species—according to their appearance features and important social and application value. The implementation result indicates that the Random Forest classifier outperforms.
The Project requires the following tools and libraries to run the source code.
-
- Python version 3.6.0 – 3.9.0
- pip 19.0 or later
- Ubuntu 16.04 or later (64-bit)
- macOS 10.12.6 (Sierra) or later (64-bit)
- Windows 7 or later (64-bit)
-
Python IDE (to run ".py" file)
To work with the project code
-
Clone the Edible-Mushroom-Classification repository into your local machine from this link : https://github.com/sowmi06/Edible-Mushroom-Classification.git
-
Follow the same directory structure from the cloned repository.
The following are the steps to replicate the exact results acquired from the project:
- Satisify all the system and the tool, libraries requirements.
- Clone the Edible-Mushroom-Classification repository into your local machine.
- Run the LR_NB.py for the Logestic Regression and Naive Bayes results and Random_Forest.py for the Random forest result.
- Follow the same directory structure from the cloned repository.
The following directory structure is required to replicate exact results acquired from the project:
.
├── .gitignore
├── LICENSE
├── LR_NB.py
├── Preprocessing.py
├── README.md
└── Random_Forest.py
LR_NB.py - A ".py" file containing the proposed model implementation of the mushroom classification using Naive Bayes and Logestic Regression Classifier.
Random_Forest.py - A ".py" file containing the proposed model implementation of the mushroom classification using Random Forest Classifier.
Preprocessing.py - A ".py" file containing the preprocessing steps.
Readme.md - Readme file to execute the project.
The project is under the MIT. Refer LICENSE file for more information.
Feel free to drop an email for any help.
The code is a finalized and free from bugs.
I would like to thank Dr. Thiago E. A. de Oliveira for guiding throughout research paper.
- Anaconda Navigator : https://docs.anaconda.com/anaconda/navigator/install/
- PyCharm IDE Installation : https://www.jetbrains.com/pycharm/download/#section=windows
- Spyder IDE Installation : https://www.psych.mcgill.ca/labs/mogillab/anaconda2/lib/python2.7/site-packages/spyder/doc/installation.html
- VS code IDE Installation: https://code.visualstudio.com/download
- Numpy Installation : https://numpy.org/install/
- Scikit learn Installation : https://scikit-learn.org/stable/install.html
- Pandas Installation: https://pandas.pydata.org/docs/getting_started/install.html