Echocardiography Quality Control Utilities
This repository contains three Microsoft WINDOWS executable for echocardiography quality control. In some cases, you may have to disable some antivirus software for executing this inference tool
dicom-preprocess-1.0.0.exe
: Preprocessing tool that takes in DICOMs and outputs JPEG Images and Metadata fordicom-inferrer-1.0.0.exe
dicom-inferrer-1.0.0.exe
: Inference tool that takes in echocardiography and outputs corresponding quality information.report-viewer-1.0.0.exe
: Viewer tool that takes in the output of inference tool for better analysis.
The preprocessing tool, dicom-preprocess-1.0.0.exe
is an executable with graphical user interface for extracting DICOM into JPEG images for the inference tool in next step. This tool reads DICOM, masks images, and crops the central region. This tool accepts echocardiography DICOM from four different machines. The mask image file (*.bmp
) should be in the same directory as dicom-preprocess-1.0.0.exe
- Philips CX50
- Philips EPIQ7C
- Philips iE33
- HP SONOS
First select the source directory and output directory, and then click the Start Preprocessing button. Your directory structures should be as same as SourceDICOM
. The tool will only extract DICOM videos and output JPEG images and metadata. Output directory structures will be similar to SourceImages
.
After the progress bar is full of color, you'll see the extracted images (Only for video types).
The inference tool, dicom-inferrer-1.0.0.exe
, is an executable with graphical user interface for simple quality inference usage.
Please turn off the antivirus software to execute inference tool
First select the source directory and output directory, and then click the Start Inference button.
Wait until the progress bar is full of color.
Since the executable only supports CPU inference, it might take a long time if you select all cases for inference. We suggest you to select a single case for inference if you're testing this tool
The source directory should be organized in the following structure (...prefix/patient/series/JPGFiles
, see SourceImages
as an example). Any directory above case01
(included) level in the following figures is acceptable. (or you could directly select the output directory from previous dicom-preprocessing-1.0.0.exe
as the input of this tool.)
Inside the series folder, preprocessed images (with .jpg format) from DICOM and metadata text file are required.
The preprocessing steps are
- Crop the central region of images such that only sector area remains.
- Mask the cropped image such that only sector area is viewable.
These steps should be easily done with the preprocessing tool that we provided above.
The metadata.txt
file includes
The tool would output each series result as a subfolder in output directory named after series ID in input metadata.txt
.
For each series, CAM results are provided, and the result has been normalized to (-25, 25).
Also, a conf.npy
stores the quality information.
The viewer tool, report-viewer-1.0.0.exe
, is a executable with graphical user interface for viewing inference result.
Select the source directory and the report directory, which should be as same as those of Inference tool, respectively.
After navigating to the patient in the left region, the central region will show each series inference result for this patient. Each column (from left to right) represents:
Filename
: Filename of the series, which is read frommetadata.txt
View
: Predicted view of the cardiography. The tool shows the predicted view by default, which would be in red color. Other view's quality confidence and prediction confidence can be seen by dragging the list.Avg Prob
: Average prediction probability of the view. This number is averaged over the selected cycles(SB column).Avg Conf
: Average classification confidence of the view. This number is averaged over the selected cycles(SB column).SD
: Standard Deviation of classification confidence of the view.Corr %
: The correct percentage of the DICOM video. This value is calculated by correct view prediction frames / total frames.SB
: Select which cardiography cycles to be viewed.TB
: Select total cardiography cycles to be viewed.
In the right region, the upper block show the original images and the lower block show the inference images.