Spaces:
Build error
Build error
ns
commited on
Commit
·
700daf8
1
Parent(s):
09e21d8
README
Browse files
README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Pre-reading radiology reporst
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
## Data
|
| 5 |
+
All data were derived from MIMIC and require signing a data use agreement with Physionet. None are provided here.
|
| 6 |
+
|
| 7 |
+
## Services
|
| 8 |
+
|
| 9 |
+
This repository exposes four components that are useful in a data science proof of concept.
|
| 10 |
+
- A container running Jupyter notebooks with common machine learning libraries (available @ localhost:8888). Any notebooks will persist in a mounted volume (./volumes/notebooks)
|
| 11 |
+
- A container running Streamlit allows a user to access the predictions from the model based on user inputs (available at localhost:8501)
|
| 12 |
+
|
| 13 |
+
## Usage
|
| 14 |
+
|
| 15 |
+
turn on the application
|
| 16 |
+
```
|
| 17 |
+
docker-compose up
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
download the data from physionet, passing any argument downloads the data (no arguments does nothing)
|
| 21 |
+
```
|
| 22 |
+
docker-compose run physionet True
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
run the etl migrations
|
| 26 |
+
```
|
| 27 |
+
docker-compose run etl
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
train the model
|
| 31 |
+
```
|
| 32 |
+
docker-compose run train
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Structure
|
| 36 |
+
|
| 37 |
+
```
|
| 38 |
+
|-- containers - code
|
| 39 |
+
| |-- etl # transforms raw data from physionet into jsonlines files
|
| 40 |
+
| |-- jupyter # interactive notebooks
|
| 41 |
+
| |-- physionet # download the MIMIC-CXR and MIMIC-CXR-JPG data from physionet
|
| 42 |
+
| |-- prerad # a small streamlit application to demo the model functionality
|
| 43 |
+
|-- volumes # persistent data
|
| 44 |
+
| |-- notebooks # jupyter notebooks persisted here
|
| 45 |
+
| |-- physionet # physionet data is persisted here
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Streamlit User Interface
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
|
| 52 |
+
A small web application can take a clinical indication and a chest x-ray, returns a reasonably templated radiology report.
|