Biooptics2021 / PathFinder

GNU General Public License v3.0
42 stars 4 forks source link

Doubt in Tissue Fraction Quantification #8

Open Rukhmini opened 8 months ago

Rukhmini commented 8 months ago

Hello, Thank you for all the responses. I have another doubt in the tissue fraction quantification in Eq.23 of the paper. Did you use the segmentation map or the probability map (NEC heatmaps) for the necrosis channel to calculate Eq.23? I think for Eq.25 you have used the probability heatmaps (TND heatmaps).

LiangJunhao-THU commented 8 months ago

Hi @Rukhmini , Thank you for your question. Both TND and NEC are calculated based on segmentation map. Because we need first get the segmentation map S and know the category of each pixel, then we can perform calculation.

In TIL or TND, one thing may cause confusion is the p in the Eq. 21,22,24,25. They are the percentage of one category (e.g. tumor) in a grid-cell based on segmentation map S, not the raw probability predicted by PaSegNet.

截屏2023-12-02 11 20 20

The TND calculation code is also based on segmentation map. multi_classes[i][j] = np.argmax(pred_map[i,j,:])

截屏2023-12-02 11 22 09
Rukhmini commented 8 months ago

Thanks for the response. I understand your explanation, I got confused because in the Co_loc function the input is mentioned as prob_map and also in TND_score.py file the input of the TND_Score function is (prob_map_path) where it is mentioned that "prob_map:MxNx8 numpy array contains the probabilities" image image Just to make sure, that means you have calculated all these features from the segmentation maps not from the heatmaps, right? Because, In Fig.9 and Fig.10 of your paper you showed both segmentation maps and the heatmaps for TND and NEC respectively. I got confused from those figures as well. That means, all these scores are calculated from the segmentation maps shown in Fig.3(a) for example. Also, another doubt is that, how did you choose the threshold for these TND and NEC features to do the KM-plot as shown in verification.ipynb file?

LiangJunhao-THU commented 8 months ago

Sorry for the confusion. In fact the segmentation map is also calculated based on the prob_map, that's why the input of the code is (prob_map_path). As for extended figure 9 and 10, both segmentation maps and the heatmaps for TND and NEC are aimed to show different CNNs can get slightly different segmentation results, which lead to different TND heatmap. The best threshold for these TND and NEC in KM-plot is calculated by looping through threshold values. You can also select the medium value as the threshold, which is also significant.

Rukhmini commented 3 months ago

Hello, How did you do the hazard ratio plot in Supplementary Fig.5. Did you train the model again with NEC and TND feature and then perform the univariable and multivariable analysis?

LiangJunhao-THU commented 3 months ago

Hi @Rukhmini , Here we showed a demo about using the newly founded biomarkers (TND, NEC) to build MultiModal transparent prognostic model (only with COX regression). So no deep learning model was trained again, only a COX prognosis model was generated with TND or NEC and other already known biomarkers.

Rukhmini commented 3 months ago

Thanks for the response Junhao. That means you calculated NEC and TND using Eq.23 and 25 and then use that calculated NEC and TND scores as features to stratify the patients into high risk and low risk.

LiangJunhao-THU commented 3 months ago

Yes. At this step NEC and TND is already identified and verified as the new significant biomarkers, just like AFP or TIL. Not like risk scores predicted by deep learning model (black box), they are white indicators which has clear pathological meaning and mathematical models. We show their potential in MultiModal transparent prognosis.

Rukhmini commented 3 months ago

How did you choose the threshold values? You mentioned that by looping through the threshold values you choose the threshold, from where did you get the threshold values to stratify the patients? Are these threshold obtained from cox prognosis model as cut-off values?

LiangJunhao-THU commented 3 months ago

The threshold for each variance (e.g. TND, NEC, TIL) used in multi variance analysis is the same as single variance analysis, which is selected based on the most significant p value in the single variance analysis. You can also select the median value, which is also significant and easy to choose.

Rukhmini commented 3 months ago

Thanks for the clarification.