To download the sample of ultrasound image data: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GQDA01
-
Test Environment: Windows 11 computer with an Intel i9-13900k processing unit and NVIDIA RTX 4090 graphics processing unit. The model development platform was Python 3.10 with the PyTorch (version 2.10; pytorch.org) and CUDA (version 12.1) deep-learning framework.
-
System requirements: Python 3.10; Python packages: Pytorch for Python, Numpy, scikitlearn, Matplotlib.
(Optional, Recommended) Nvidia GPU with CUDA support. If not available, change the 'device' to 'CPU'. This will lead to slightly longer training and running time for the machine learning model. -
To run the demo:
- Download all files in the repository and the sample of ultrasound image data from the Harvard Dataverse using the above link (file size ~2.5GB). Unzip the Ultrasound image data.
- Run the Python script directly. Make sure the data path is correct. It is in the Python notebook style to include output from the test environment.
- Expected output is already included in the Notebook file. The outputs such as 'Loss in test', and mean error 'MeanE_CNN' should vary slightly due to the random selection of training and testing data. The average processing time per image can vary largely due to the running system specs.
- In the test environment listed above, the run time of this demo is usually within 15 minutes.
- To run your data with this script, make the ultrasound image data shape aligns with the shape of the first layer of the CNN network, and the tracked data shape should align with the output dimension of the last CNN layer.
If you encounter any problems, feel free to leave comments or directly contact me at gengxilu'at'mit.edu