Diff of /documentation/FAQ.md [000000] .. [42b7b1]

Switch to unified view

a b/documentation/FAQ.md
1
# FAQ
2
### [FAQ](#faq)
3
- [Do I need CT images? ](#do-i-need-ct-images)
4
- [Where can I find the segmentation results, and computed biomarker features?](#where-can-i-find-the-segmentation-results-and-computed-biomarker-features)
5
- [Can I apply the proposed method to the 2D PET image-based segmentation](#can-i-apply-the-proposed-method-to-the-2d-pet-image-based-segmentation)
6
- [Can I run lfbnet on CPUs or GPUs?](#can-i-run-lfbnet-on-cpus-or-gpus)
7
- [Can I compare the predictability of the 2D biomarkers with 3D biomarkers?](#can-i-compare-the-predictability-of-the-2d-biomarkers-with-the-3d-biomarkers)
8
###  Do I need CT images? 
9
To run the program, you do not need CT scans. You only need PET scans in a nifty format where the PET images are coded
10
in SUV units.
11
 
12
13
### Where can I find the segmentation results and computed biomarker features?
14
15
The input PET nifty images are preprocessed into the shape of 128x128x256 and voxel size of 4x4x4. These preprocessed data
16
are saved under folder name  **"data_default_3d_dir_"**. If reference segmentations from an expert are provided along the
17
PET images with folder name **"GT"**, the preprocessing step applies the same as the PET images.
18
If the voxel sizes between the **GT** and PET images are different, it will transform the **GT** to the 
19
PET images. The **GT** might have been saved from CT spacing in these cases. Kindly check these
20
examples. 
21
22
From preprocessed 3D images, sagittal and coronal maximum intensity projections (MIP) are generated and saved under the folder name **data_default_mip_dir**.
23
24
The predicted segmentation results, the pet MIP images, and the reference ground truth data (if available) are saved 
25
the folder name **predicted**. 
26
27
Along the **"data_default_3d_dir_"**, **data_default_mip_dir**, and **predicted** subfolders, the calculated surrogate features
28
(**sTMVT and sDmax**) are saved in the EXCEL file. 
29
30
31
### Can I apply the proposed method to the 2D PET image-based segmentation?
32
The proposed method is optimized and applied for 2D MIP image-based segmentations. However, you can apply to 
33
the 2D images without projecting them into MIPs. The results will be saved as a 3D segmentation. Thus, you can directly apply the segmentation to the 2D-based PET images. Please use the virtual environment 
34
installation guide for these use cases mentioned in the [readme](https://github.com/KibromBerihu/ai4elife/blob/main/readme.md)  file. 
35
Kindly run the following command:
36
37
``python test_train_valid.py --input_dir path/to/input/data --output_dir path/to/output/data  --task [train, test, valid]``
38
39
40
### Can I run lfbnet on CPUs or GPUs? 
41
The whole package is tested on window 10 and ubuntu. If installing the dependencies is successful,
42
the package can run on either CPU or GPU. 
43
Please refer to [this]((https://github.com/KibromBerihu/ai4elife/blob/main/documentation/configuration)) for a more detailed selection of GPUs.
44
However, there is less parallelization and optimization of resource.
45
46
47
### Can I compare the predictability of the 2D biomarkers with the 3D biomarkers?
48
The main task of this package is to calculate the surrogate metabolic tumor burden (sTMTV) and dissemination (sDmax) features. However, if you have the reference segmentation in 3D, you can compare their correlation and survival predictability. To compute the metabolic tumor burden (TMTV) and tumor dissemitnaotn (Dmax) from
49
3D-images, please run the script `read_3D_nifti_mask_image_compute_TMTV_Dmax_save_as_csv_file.py` as follows:      
50
    
51
52
`python read_3D_nifti_mask_image_compute_TMTV_Dmax_save_as_csv_file.py  --input_dir  path/to/input/data  --output_dir path/to/output/data`
53
54
55
Note that the  structure of the input data should be:
56
57
    |-- main_folder                                             <-- The main folder or all patient folders (Give it any NAME)
58
59
    |      |-- patient_one                                      <-- Individual patient folder name with unique id (patient_one, can be any name)
60
61
    |           |-- patient_one.nii/nii.gz                       <-- Reference segmentation (ground truth image. The same name as the folder name.
62
63
    |      |-- patient_two                                      <-- Individual patient folder name with unique id (can be any name)                                       
64
    |           |-- patient_two.nii/nii.gz                       <-- Reference segmentation (ground truth image. The same name as the folder name.                                                                                                                                                                                                                             
65
                                                                                                                                                                                   
66
               .
67
               .
68
               .
69
    |      |-- patient_Nth                                     <-- Individual patient folder name with unique id (can be any name)                                       
70
    |           |-- patient_Nth.nii/nii.gz                       <-- Reference segmentation (ground truth image. The same name as the folder name.                                      
71
                                                                                                                                                                                      
72
                                                                                                                                                                                      
73