Classification of chemically modified red blood cells in microflow using machine learning video analysis
R. K. Rajaram Baskaran, A. Link, B. Porr and T. Franke
- Python 3.10.6
- Tensorflow 2.11.0
- Keras
- OpenCV
- NumPy
- Matplotlib
- tqdm
- run
main.pyto train, create, validate and test the model. - run
plots.pyto generate the plots as seen in the paper.
Train, validate and test (native vs chem. mod.) RBCs.
Options:
- FA: Classification of native vs formaldehyde
- DA: Classification of native vs diamide
- GA: Classification of native vs glutaraldehyde
- MIX: Classification of native vs random mix of formaldehyde, diamide, glutaraldehyde
This generates all results in the directory results_<option>.
Runs all option: FA, DA, GA and MIX.
- Foreground: Shows the accuracy and loss.
- Background:
nohup ./runall.sh &. You can log out and it will continue.
Loads accuracy_and_loss_values.json and
plots accuracy, loss and probability predictions.
Labels the videos, subtracts the background, and returns them as NumPy arrays.
Tests loading videos from the file directory.
Performs background subtraction, displays processed video.