Using pre-trained model to classify images to detect cancerous cells
Pre-requirements:
- Python2.7
- MATLAB (LIBSVM)
- Numpy, Scipy,Sklearn
- Tensorflow 1.0
- Tflearn
BreakHis dataset can be found at: http://web.inf.ufpr.br/vri/breast-cancer-database
Add all files to the same folder. Run each of them in the following order:
- Run vgg16_cv.py to extract the features from each image of BreakHis dataset. It will create one feature file per image int he same folder
- Run generate_features.py to combine all individual feature files into one feature matrix (mat file). It also creates a separate target mat file.
- Run CV_balancing_code.m to treat the data imbalance. It outputs 4 files: training data, training data targets, test data and test data targets
- Use classifier_code.m and RandomForest_CV.m to classify the data using Linear SVM, Polynomial SVM and Random Forest.
- Run alexnet.py to get the trained AlexNet model and confusion matrix.
Analysis can be found at https://docs.google.com/document/d/1H7xVK7nwXcv11CYh7hl5F6pM0m218FQloAXQODP-Hsg/edit?usp=sharing.