- Click the "Open in Colab" button to access the notebook environment.
- Run all cells by navigating to Runtime -> Run all.
- Wait for approximately one minute as the notebook processes the fNIRS data. You’ll see a verified ezkl proof of a model trained to classify between two states: mental arithmetic activity or baseline observation.
Data source: tu-berlin
NIRS data "NIRS_01-29". For the ZuThailand buildathon, only the first 9 participants are selected for processing.
- git clone https://github.com/rainbowpuffpuff/ez_think2earn
- cd fNIRSNET
- python KFold_train.py -> wait for the training to be done and for files to be outputted in the "fNIRSNET/save/" folder
- cd flask-backend
- python app.py
- In second terminal, cd ..
- cd frontend
- npm install
- npm start
- upload model.onnx from example pathing: ~/ez_think2earn/fnirs_ezkl/fNIRSNET/save/MA/KFold/1/1/
- wait for printout
- You successfully uploaded a brain computer interface model (https://github.com/wzhlearning/fNIRSNet), the script inputted data (https://doc.ml.tu-berlin.de/hBCI/contactthanks.php), and you created EZKL proofs that a private model was run on public data
Below there's results of the training done on the Mental Arithmetic dataset:
Explaining the confusion matrix:
The model correctly identifies 71% of non-mental arithmetic cases and 68% of mental arithmetic cases. However, it misclassifies 29% of non-mental arithmetic as mental arithmetic and 32% of mental arithmetic as non-mental arithmetic, indicating moderate performance with room for improvement.