External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:abc00aac-cc49-4ef4-9cca-50c4bf72188b]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:7e206b3b-741a-497a-aec8-5bef569267b7]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong.
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQf...
External Email - Use Caution
Dear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.com Sent: 17 January 2024 16:56:34 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:ii_18d169fa598f456b1e51]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:ii_18d169fa59af456b1e52]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1Lym_B8akFFCF3fbNy7aTXko_DzCAp1ZP_F92UvpoNnqF9_...https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
External Email - Use Caution
Hi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu < freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput < leempko@gmail.com> *Sent:* 17 January 2024 16:56:34 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the -- threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SB... https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SB...
External Email - Use Caution
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.com Sent: 29 January 2024 23:00:08 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 17 January 2024 16:56:34 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:ii_18d55baf9b9f456b1e51]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:ii_18d55baf9baf456b1e52]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1V7nM-DWHbtFWzBwwhlPEVZPLlaMW6iu50B2Euqr-isivgH...https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1V7nM-DWHbtFWzBwwhlPEVZPLlaMW6iu50B2Euqr-isivgH...https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
External Email - Use Caution
Dear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
________________________________ From: Krystal Xiwing Yau Sent: 11 March 2024 13:39 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.com Sent: 29 January 2024 23:00:08 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 17 January 2024 16:56:34 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:ii_18d55baf9b9f456b1e51]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:ii_18d55baf9baf456b1e52]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1oXWY90h8UPuopk-WnF8XQaxRxSE_j934AVpz6ds9_1CwJQ...https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1oXWY90h8UPuopk-WnF8XQaxRxSE_j934AVpz6ds9_1CwJQ...https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
External Email - Use Caution
Hi Krystal,
I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is?
Thanks,
Koen
On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
*From:* Krystal Xiwing Yau *Sent:* 11 March 2024 13:39 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu < freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput < leempko@gmail.com> *Sent:* 29 January 2024 23:00:08 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu < freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput < leempko@gmail.com> *Sent:* 17 January 2024 16:56:34 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the -- threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP... https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP... https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP... The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4... < https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4... .
External Email - Use Caution
Dear Koen,
Apologies for any confusion caused. I'm pretty new to the program and self-learning here.
I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated.
Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly.
mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7
mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99
mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt
Did I miss anything here? Please advise.
Thanks.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.com Sent: 19 March 2024 02:07:44 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is?
Thanks,
Koen
On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
________________________________ From: Krystal Xiwing Yau Sent: 11 March 2024 13:39 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 29 January 2024 23:00:08 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 17 January 2024 16:56:34 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:ii_18e52b81200f456b1e51]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:ii_18e52b81201f456b1e52]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1ZODYJb6vrkKRW4ZiW_KIhUZLwGuVT9OX1Apiwl4Dp3sfyz...https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1ZODYJb6vrkKRW4ZiW_KIhUZLwGuVT9OX1Apiwl4Dp3sfyz...https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1ZODYJb6vrkKRW4ZiW_KIhUZLwGuVT9OX1Apiwl4Dp3sfyz...https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1n_bXOQeQmgu3OkwP1h7kM10VzKYpgU540ftRJB99NMFM0G...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1n_bXOQeQmgu3OkwP1h7kM10VzKYpgU540ftRJB99NMFM0G...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
External Email - Use Caution
Hi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear Koen,
Apologies for any confusion caused. I'm pretty new to the program and self-learning here.
I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated.
Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly.
mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7
mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99
mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt
Did I miss anything here? Please advise.
Thanks.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu < freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput < leempko@gmail.com> *Sent:* 19 March 2024 02:07:44 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is?
Thanks,
Koen
On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
*From:* Krystal Xiwing Yau *Sent:* 11 March 2024 13:39 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu < freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput < leempko@gmail.com> *Sent:* 29 January 2024 23:00:08 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu < freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput < leempko@gmail.com> *Sent:* 17 January 2024 16:56:34 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the -- threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_... https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_... https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_... https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmX... https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmX... https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_... The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmX... < https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmX... .
External Email - Use Caution
Dear Koen,
Thank you so much for your clarification. The volume changed after running the suggested commands.
It's weird that the label 99 does not exist in my seg.mgz, but I still see my lesions.mgz in posteriors folder.
As I am inspecting whether the lesions are segmented accurately, the lesions mask (with default threshold) is rather be oversensitive. I tried to view the binarized image, which is in NifTi format, but I can't view it on Freeview. How I can know if adjusting the threshold with mri_binarize would make my lesions accurately estimated afterwards?
Thank you for your kind attention.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.com Sent: 25 March 2024 18:11:42 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Apologies for any confusion caused. I'm pretty new to the program and self-learning here.
I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated.
Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly.
mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7
mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99
mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt
Did I miss anything here? Please advise.
Thanks.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 19 March 2024 02:07:44 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is?
Thanks,
Koen
On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
________________________________ From: Krystal Xiwing Yau Sent: 11 March 2024 13:39 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 29 January 2024 23:00:08 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 17 January 2024 16:56:34 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:ii_18e74e42c2ef456b1e51]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:ii_18e74e42c2ff456b1e52]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1ANtYyo-L5TLIGUHeWRmTXUEulHXry4ung8KpSBo25qcPAt...https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1ANtYyo-L5TLIGUHeWRmTXUEulHXry4ung8KpSBo25qcPAt...https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1ANtYyo-L5TLIGUHeWRmTXUEulHXry4ung8KpSBo25qcPAt...https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/151AtakxNTeZGhjeALqADBviGcxmwR6j5X8Pat0RSKNoL8T...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/151AtakxNTeZGhjeALqADBviGcxmwR6j5X8Pat0RSKNoL8T...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> . _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1ANtYyo-L5TLIGUHeWRmTXUEulHXry4ung8KpSBo25qcPAt...https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_INXoiKyhSkwZrVsgxBddYx0Hqe4UmEZyniepoNkFsbvPVAAOYNRnrROqSH2oAI7tvZ7F9q6MXWjhWX61v43gDNsUpBnwF_0G8eBBb-KBAL4jdeHo5ZmabF-eQtz61PA9Kd3R3nrwgw8H-9a1IgepwdPHisqc-e_xAHL7pPF911x1_0W_O-y-8Jw6ua1ZFc93ffTwkp_h5O7PRdyFDCp0nV_pac62RXu_sPCE9FpQkyfUo23GAyYDi0QFaPant8x0K2tfoUnSjhb9s2c_4uTBojCVj7aPcazR4hSqqMBA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/151AtakxNTeZGhjeALqADBviGcxmwR6j5X8Pat0RSKNoL8T...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/151AtakxNTeZGhjeALqADBviGcxmwR6j5X8Pat0RSKNoL8T...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
Just load the seg.mgz and click on a voxel in the lesion, then look at the value in the panel. There is a slight chance it could be 77 instead of 99.
On 3/26/2024 4:29 AM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Koen,
Thank you so much for your clarification. The volume changed after running the suggested commands.
It's weird that the label 99 does not exist in my seg.mgz, but I still see my lesions.mgz in /posteriors/ folder.
As I am inspecting whether the lesions are segmented accurately, the lesions mask (with default threshold) is rather be oversensitive. I tried to view the binarized image, which is in NifTi format, but I can't view it on Freeview. How I can know if adjusting the threshold with mri_binarize would make my lesions accurately estimated afterwards?
Thank you for your kind attention.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.com *Sent:* 25 March 2024 18:11:42 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use Caution Dear Koen, Apologies for any confusion caused. I'm pretty new to the program and self-learning here. I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated. Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly. mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7 mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99 mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt Did I miss anything here? Please advise. Thanks. Best regards, Krystal ------------------------------------------------------------------------ *From:* freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.com> *Sent:* 19 March 2024 02:07:44 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds External Email - Use Caution Hi Krystal, I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is? Thanks, Koen On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau <krystaly@hku.hk> wrote: External Email - Use Caution Dear FreeSurfer experts, May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve. Please kindly advise. Sincerely, Krystal ------------------------------------------------------------------------ *From:* Krystal Xiwing Yau *Sent:* 11 March 2024 13:39 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds Dear Koen, Sorry for the late reply. I've been busy with other project. Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up. Could you please advise? Thank you. Best regards, Krystal ------------------------------------------------------------------------ *From:* freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.com> *Sent:* 29 January 2024 23:00:08 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds External Email - Use Caution Hi Krystal, I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing? Thanks, Koen On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hk> wrote: External Email - Use Caution Dear Koen, Thank you for your reply and wish you the best of luck on your grant application. As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold? I look forward to hearing from you. Thank you so much for your time and patience. Best regards, Krystal ------------------------------------------------------------------------ *From:* freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.com> *Sent:* 17 January 2024 16:56:34 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds External Email - Use Caution Hi Krystal, Apologies for the delay in replying (grant deadline). The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities. If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew. Hope this helps, Koen On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hk> wrote: External Email - Use Caution Dear FS experts, I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information: Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image Do the volume of lesions supposedly different with threshold adjustments? The following code is what I used for running samseg: run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8 Thank you for your attention. Regards, Krystal Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> . _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_INXoiKyhSkwZrVsgxBddYx0Hqe4UmEZyniepoNkFsbvPVAAOYNRnrROqSH2oAI7tvZ7F9q6MXWjhWX61v43gDNsUpBnwF_0G8eBBb-KBAL4jdeHo5ZmabF-eQtz61PA9Kd3R3nrwgw8H-9a1IgepwdPHisqc-e_xAHL7pPF911x1_0W_O-y-8Jw6ua1ZFc93ffTwkp_h5O7PRdyFDCp0nV_pac62RXu_sPCE9FpQkyfUo23GAyYDi0QFaPant8x0K2tfoUnSjhb9s2c_4uTBojCVj7aPcazR4hSqqMBA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> .
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
External Email - Use Caution
Hi Koen and Doug,
I am trying to do similar analysis but when I run run_samseg command, it gives me error "Illegal Instruction: 4"
I am using the FreeSurfer 7.4.1 version on Apple M2 Max MacBook Pro 14.4.1.
Is it because run_samseg is incompatible with Apple M2? If so, could you please suggest any solution (if available) how I can run run_samseg on my Apple M2 computer?
Thanks.
On Fri, Mar 29, 2024 at 3:58 PM Douglas N. Greve dgreve@mgh.harvard.edu wrote:
Just load the seg.mgz and click on a voxel in the lesion, then look at the value in the panel. There is a slight chance it could be 77 instead of 99.
On 3/26/2024 4:29 AM, Krystal Xiwing Yau wrote:
External Email - Use CautionDear Koen,
Thank you so much for your clarification. The volume changed after running the suggested commands.
It's weird that the label 99 does not exist in my seg.mgz, but I still see my lesions.mgz in *posteriors* folder.
As I am inspecting whether the lesions are segmented accurately, the lesions mask (with default threshold) is rather be oversensitive. I tried to view the binarized image, which is in NifTi format, but I can't view it on Freeview. How I can know if adjusting the threshold with mri_binarize would make my lesions accurately estimated afterwards?
Thank you for your kind attention.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.com leempko@gmail.com *Sent:* 25 March 2024 18:11:42 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear Koen,
Apologies for any confusion caused. I'm pretty new to the program and self-learning here.
I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated.
Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly.
mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7
mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99
mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt
Did I miss anything here? Please advise.
Thanks.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu < freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput < leempko@gmail.com> *Sent:* 19 March 2024 02:07:44 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is?
Thanks,
Koen
On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
*From:* Krystal Xiwing Yau *Sent:* 11 March 2024 13:39 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu < freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput < leempko@gmail.com> *Sent:* 29 January 2024 23:00:08 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu < freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput < leempko@gmail.com> *Sent:* 17 January 2024 16:56:34 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use CautionHi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the -- threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use CautionDear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1Tsxw9BeFdghJWdOpDgb3gh8XosoJxbDH1kgPsP8oDvqWl0... https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1Tsxw9BeFdghJWdOpDgb3gh8XosoJxbDH1kgPsP8oDvqWl0... https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1Tsxw9BeFdghJWdOpDgb3gh8XosoJxbDH1kgPsP8oDvqWl0... https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1ZhJVCcRbSFshxWXFVJiIeb7fKvycCMUGQlMWS0a-xUBtXS... https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1ZhJVCcRbSFshxWXFVJiIeb7fKvycCMUGQlMWS0a-xUBtXS... https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1Tsxw9BeFdghJWdOpDgb3gh8XosoJxbDH1kgPsP8oDvqWl0... https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_INXoiKyhSkwZrVsgxBddYx0Hqe4UmEZyniepoNkFsbvPVAAOYNRnrROqSH2oAI7tvZ7F9q6MXWjhWX61v43gDNsUpBnwF_0G8eBBb-KBAL4jdeHo5ZmabF-eQtz61PA9Kd3R3nrwgw8H-9a1IgepwdPHisqc-e_xAHL7pPF911x1_0W_O-y-8Jw6ua1ZFc93ffTwkp_h5O7PRdyFDCp0nV_pac62RXu_sPCE9FpQkyfUo23GAyYDi0QFaPant8x0K2tfoUnSjhb9s2c_4uTBojCVj7aPcazR4hSqqMBA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1ZhJVCcRbSFshxWXFVJiIeb7fKvycCMUGQlMWS0a-xUBtXS... https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://secure-web.cisco.com/1ZhJVCcRbSFshxWXFVJiIeb7fKvycCMUGQlMWS0a-xUBtXS... https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
Freesurfer mailing listFreesurfer@nmr.mgh.harvard.eduhttps://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1Tsxw9BeFdghJWdOpDgb3gh8XosoJxbDH1kgPsP8oDvqWl0... The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1ZhJVCcRbSFshxWXFVJiIeb7fKvycCMUGQlMWS0a-xUBtXS... < https://secure-web.cisco.com/1ZhJVCcRbSFshxWXFVJiIeb7fKvycCMUGQlMWS0a-xUBtXS... .
External Email - Use Caution
Dear Douglas,
Thank you for your reply.
I do not see 77, and neither does a label named "Lesions". How else can I know the lesions mask is correct? I see the lesion volume after adjusting the threshold has been decreased, but I would like to know how accurately the lesions.mgz detects the lesions on FLAIR T2 image.
Did I miss something when I execute run_samseg? I have atteched the data file generated by executing mri_segstats and the samseg processes I have made to this email for your reference.
The software and OS that I am using are listed below as well:
FreeSurfer: version 7.3.2
Linux: Ubuntu 23.04
Thank you again for your attention. Your help is highly appreciated.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDU Sent: 30 March 2024 4:57 To: freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Just load the seg.mgz and click on a voxel in the lesion, then look at the value in the panel. There is a slight chance it could be 77 instead of 99.
On 3/26/2024 4:29 AM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Koen,
Thank you so much for your clarification. The volume changed after running the suggested commands.
It's weird that the label 99 does not exist in my seg.mgz, but I still see my lesions.mgz in posteriors folder.
As I am inspecting whether the lesions are segmented accurately, the lesions mask (with default threshold) is rather be oversensitive. I tried to view the binarized image, which is in NifTi format, but I can't view it on Freeview. How I can know if adjusting the threshold with mri_binarize would make my lesions accurately estimated afterwards?
Thank you for your kind attention.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.commailto:leempko@gmail.com Sent: 25 March 2024 18:11:42 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Apologies for any confusion caused. I'm pretty new to the program and self-learning here.
I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated.
Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly.
mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7
mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99
mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt
Did I miss anything here? Please advise.
Thanks.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 19 March 2024 02:07:44 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is?
Thanks,
Koen
On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
________________________________ From: Krystal Xiwing Yau Sent: 11 March 2024 13:39 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 29 January 2024 23:00:08 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 17 January 2024 16:56:34 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:part1.3406laAd.I6OCu5t1@mgh.harvard.edu]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:part2.LqpHST77.I6y81cpe@mgh.harvard.edu]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1RrZZNZSHOqKb-I76B5irKr5mOg2T-VN9nx5_eF6Tt-BQkM...https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1RrZZNZSHOqKb-I76B5irKr5mOg2T-VN9nx5_eF6Tt-BQkM...https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1RrZZNZSHOqKb-I76B5irKr5mOg2T-VN9nx5_eF6Tt-BQkM...https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1dLJusHY6wRfS4TRG8vn-RL5IxSwZ1XTAQpmbsXTakdVwhW...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1dLJusHY6wRfS4TRG8vn-RL5IxSwZ1XTAQpmbsXTakdVwhW...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> . _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1RrZZNZSHOqKb-I76B5irKr5mOg2T-VN9nx5_eF6Tt-BQkM...https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_INXoiKyhSkwZrVsgxBddYx0Hqe4UmEZyniepoNkFsbvPVAAOYNRnrROqSH2oAI7tvZ7F9q6MXWjhWX61v43gDNsUpBnwF_0G8eBBb-KBAL4jdeHo5ZmabF-eQtz61PA9Kd3R3nrwgw8H-9a1IgepwdPHisqc-e_xAHL7pPF911x1_0W_O-y-8Jw6ua1ZFc93ffTwkp_h5O7PRdyFDCp0nV_pac62RXu_sPCE9FpQkyfUo23GAyYDi0QFaPant8x0K2tfoUnSjhb9s2c_4uTBojCVj7aPcazR4hSqqMBA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1dLJusHY6wRfS4TRG8vn-RL5IxSwZ1XTAQpmbsXTakdVwhW...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1dLJusHY6wRfS4TRG8vn-RL5IxSwZ1XTAQpmbsXTakdVwhW...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1RrZZNZSHOqKb-I76B5irKr5mOg2T-VN9nx5_eF6Tt-BQkM...
Did you load the seg.mgz? Are there lesions labeled there? If so, click on one to see the value.
On 4/1/2024 11:33 PM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Douglas,
Thank you for your reply.
I do not see 77, and neither does a label named "Lesions". How else can I know the lesions mask is correct? I see the lesion volume after adjusting the threshold has been decreased, but I would like to know how accurately the lesions.mgz detects the lesions on FLAIR T2 image.
Did I miss something when I execute run_samseg? I have atteched the data file generated by executing mri_segstats and the samseg processes I have made to this email for your reference.
The software and OS that I am using are listed below as well:
FreeSurfer: version 7.3.2
Linux: Ubuntu 23.04
Thank you again for your attention. Your help is highly appreciated.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDU *Sent:* 30 March 2024 4:57 *To:* freesurfer@nmr.mgh.harvard.edu *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds Just load the seg.mgz and click on a voxel in the lesion, then look at the value in the panel. There is a slight chance it could be 77 instead of 99.
On 3/26/2024 4:29 AM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Koen,
Thank you so much for your clarification. The volume changed after running the suggested commands.
It's weird that the label 99 does not exist in my seg.mgz, but I still see my lesions.mgz in /posteriors/ folder.
As I am inspecting whether the lesions are segmented accurately, the lesions mask (with default threshold) is rather be oversensitive. I tried to view the binarized image, which is in NifTi format, but I can't view it on Freeview. How I can know if adjusting the threshold with mri_binarize would make my lesions accurately estimated afterwards?
Thank you for your kind attention.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.com *Sent:* 25 March 2024 18:11:42 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use Caution Dear Koen, Apologies for any confusion caused. I'm pretty new to the program and self-learning here. I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated. Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly. mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7 mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99 mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt Did I miss anything here? Please advise. Thanks. Best regards, Krystal ------------------------------------------------------------------------ *From:* freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.com> *Sent:* 19 March 2024 02:07:44 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds External Email - Use Caution Hi Krystal, I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is? Thanks, Koen On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau <krystaly@hku.hk> wrote: External Email - Use Caution Dear FreeSurfer experts, May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve. Please kindly advise. Sincerely, Krystal ------------------------------------------------------------------------ *From:* Krystal Xiwing Yau *Sent:* 11 March 2024 13:39 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds Dear Koen, Sorry for the late reply. I've been busy with other project. Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up. Could you please advise? Thank you. Best regards, Krystal ------------------------------------------------------------------------ *From:* freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.com> *Sent:* 29 January 2024 23:00:08 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds External Email - Use Caution Hi Krystal, I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing? Thanks, Koen On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hk> wrote: External Email - Use Caution Dear Koen, Thank you for your reply and wish you the best of luck on your grant application. As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold? I look forward to hearing from you. Thank you so much for your time and patience. Best regards, Krystal ------------------------------------------------------------------------ *From:* freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.com> *Sent:* 17 January 2024 16:56:34 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds External Email - Use Caution Hi Krystal, Apologies for the delay in replying (grant deadline). The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities. If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew. Hope this helps, Koen On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hk> wrote: External Email - Use Caution Dear FS experts, I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information: Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image Do the volume of lesions supposedly different with threshold adjustments? The following code is what I used for running samseg: run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8 Thank you for your attention. Regards, Krystal Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> . _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_INXoiKyhSkwZrVsgxBddYx0Hqe4UmEZyniepoNkFsbvPVAAOYNRnrROqSH2oAI7tvZ7F9q6MXWjhWX61v43gDNsUpBnwF_0G8eBBb-KBAL4jdeHo5ZmabF-eQtz61PA9Kd3R3nrwgw8H-9a1IgepwdPHisqc-e_xAHL7pPF911x1_0W_O-y-8Jw6ua1ZFc93ffTwkp_h5O7PRdyFDCp0nV_pac62RXu_sPCE9FpQkyfUo23GAyYDi0QFaPant8x0K2tfoUnSjhb9s2c_4uTBojCVj7aPcazR4hSqqMBA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> .
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
External Email - Use Caution
Dear Douglas,
Yes, I loaded seg.mgz on freeview but still no lesions labeled there.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDU Sent: 02 April 2024 21:17:19 To: freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] Lesion detection at different thresholds
Did you load the seg.mgz? Are there lesions labeled there? If so, click on one to see the value.
On 4/1/2024 11:33 PM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Douglas,
Thank you for your reply.
I do not see 77, and neither does a label named "Lesions". How else can I know the lesions mask is correct? I see the lesion volume after adjusting the threshold has been decreased, but I would like to know how accurately the lesions.mgz detects the lesions on FLAIR T2 image.
Did I miss something when I execute run_samseg? I have atteched the data file generated by executing mri_segstats and the samseg processes I have made to this email for your reference.
The software and OS that I am using are listed below as well:
FreeSurfer: version 7.3.2
Linux: Ubuntu 23.04
Thank you again for your attention. Your help is highly appreciated.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDUmailto:dgreve@MGH.HARVARD.EDU Sent: 30 March 2024 4:57 To: freesurfer@nmr.mgh.harvard.edumailto:freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Just load the seg.mgz and click on a voxel in the lesion, then look at the value in the panel. There is a slight chance it could be 77 instead of 99.
On 3/26/2024 4:29 AM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Koen,
Thank you so much for your clarification. The volume changed after running the suggested commands.
It's weird that the label 99 does not exist in my seg.mgz, but I still see my lesions.mgz in posteriors folder.
As I am inspecting whether the lesions are segmented accurately, the lesions mask (with default threshold) is rather be oversensitive. I tried to view the binarized image, which is in NifTi format, but I can't view it on Freeview. How I can know if adjusting the threshold with mri_binarize would make my lesions accurately estimated afterwards?
Thank you for your kind attention.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.commailto:leempko@gmail.com Sent: 25 March 2024 18:11:42 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Apologies for any confusion caused. I'm pretty new to the program and self-learning here.
I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated.
Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly.
mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7
mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99
mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt
Did I miss anything here? Please advise.
Thanks.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 19 March 2024 02:07:44 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is?
Thanks,
Koen
On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
________________________________ From: Krystal Xiwing Yau Sent: 11 March 2024 13:39 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 29 January 2024 23:00:08 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 17 January 2024 16:56:34 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:part1.Rq9Rm61f.EAYy0Psg@mgh.harvard.edu]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:part2.HBdQCAlc.L5ttuGM7@mgh.harvard.edu]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1vkxHr26woqi5XZKIrhFf8VTP6An-8MS4M2PXkm9p7m60Hx...https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1vkxHr26woqi5XZKIrhFf8VTP6An-8MS4M2PXkm9p7m60Hx...https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1vkxHr26woqi5XZKIrhFf8VTP6An-8MS4M2PXkm9p7m60Hx...https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1z-dcJbaGggZW6IZvtQ8YVx0smksBgbuB1CGzt7xX5SuvR0...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1z-dcJbaGggZW6IZvtQ8YVx0smksBgbuB1CGzt7xX5SuvR0...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> . _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1vkxHr26woqi5XZKIrhFf8VTP6An-8MS4M2PXkm9p7m60Hx...https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_INXoiKyhSkwZrVsgxBddYx0Hqe4UmEZyniepoNkFsbvPVAAOYNRnrROqSH2oAI7tvZ7F9q6MXWjhWX61v43gDNsUpBnwF_0G8eBBb-KBAL4jdeHo5ZmabF-eQtz61PA9Kd3R3nrwgw8H-9a1IgepwdPHisqc-e_xAHL7pPF911x1_0W_O-y-8Jw6ua1ZFc93ffTwkp_h5O7PRdyFDCp0nV_pac62RXu_sPCE9FpQkyfUo23GAyYDi0QFaPant8x0K2tfoUnSjhb9s2c_4uTBojCVj7aPcazR4hSqqMBA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1z-dcJbaGggZW6IZvtQ8YVx0smksBgbuB1CGzt7xX5SuvR0...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1z-dcJbaGggZW6IZvtQ8YVx0smksBgbuB1CGzt7xX5SuvR0...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1vkxHr26woqi5XZKIrhFf8VTP6An-8MS4M2PXkm9p7m60Hx...https://secure-web.cisco.com/1RrZZNZSHOqKb-I76B5irKr5mOg2T-VN9nx5_eF6Tt-BQkMCCCAbKs08-YYyeZZhIHxLTpWArEjD_d5cWtmI6W1RzVzgQUabgtq2NU0xKHu_SN461QC5xIj-zxkRkRvSZTUKFSgs7GSyYGWxH-UUPCKr0s9ovZk6pUABEWti9HpOpR0ONw9vcQblo6pChNgEpWG7SeKZgC2LmPgoPoesaGmXS6AI4U0wfIKZn7KuC_5qHAuLR2qYnxNuZyiWXmIX3zZ6TNQJTjzXcgze_olqLAK9Zxb7coxQXDUN9m7uNyu0Byd3Q2gMtuv5bmJuNN6NRKu_oA-Hy5mh9Y0P7HtxuUg/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1vkxHr26woqi5XZKIrhFf8VTP6An-8MS4M2PXkm9p7m60Hx...
It may be the case that it just did not detect any lesions in the input. The lesions volume in the posterior may be empty.
On 4/2/2024 9:58 PM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Douglas,
Yes, I loaded seg.mgz on freeview but still no lesions labeled there.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDU *Sent:* 02 April 2024 21:17:19 *To:* freesurfer@nmr.mgh.harvard.edu *Subject:* Re: [Freesurfer] Lesion detection at different thresholds Did you load the seg.mgz? Are there lesions labeled there? If so, click on one to see the value.
On 4/1/2024 11:33 PM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Douglas,
Thank you for your reply.
I do not see 77, and neither does a label named "Lesions". How else can I know the lesions mask is correct? I see the lesion volume after adjusting the threshold has been decreased, but I would like to know how accurately the lesions.mgz detects the lesions on FLAIR T2 image.
Did I miss something when I execute run_samseg? I have atteched the data file generated by executing mri_segstats and the samseg processes I have made to this email for your reference.
The software and OS that I am using are listed below as well:
FreeSurfer: version 7.3.2
Linux: Ubuntu 23.04
Thank you again for your attention. Your help is highly appreciated.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDU *Sent:* 30 March 2024 4:57 *To:* freesurfer@nmr.mgh.harvard.edu *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds Just load the seg.mgz and click on a voxel in the lesion, then look at the value in the panel. There is a slight chance it could be 77 instead of 99.
On 3/26/2024 4:29 AM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Koen,
Thank you so much for your clarification. The volume changed after running the suggested commands.
It's weird that the label 99 does not exist in my seg.mgz, but I still see my lesions.mgz in /posteriors/ folder.
As I am inspecting whether the lesions are segmented accurately, the lesions mask (with default threshold) is rather be oversensitive. I tried to view the binarized image, which is in NifTi format, but I can't view it on Freeview. How I can know if adjusting the threshold with mri_binarize would make my lesions accurately estimated afterwards?
Thank you for your kind attention.
Best regards,
Krystal
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.com *Sent:* 25 March 2024 18:11:42 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau krystaly@hku.hk wrote:
External Email - Use Caution Dear Koen, Apologies for any confusion caused. I'm pretty new to the program and self-learning here. I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated. Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly. mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7 mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99 mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt Did I miss anything here? Please advise. Thanks. Best regards, Krystal ------------------------------------------------------------------------ *From:* freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.com> *Sent:* 19 March 2024 02:07:44 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds External Email - Use Caution Hi Krystal, I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is? Thanks, Koen On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau <krystaly@hku.hk> wrote: External Email - Use Caution Dear FreeSurfer experts, May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve. Please kindly advise. Sincerely, Krystal ------------------------------------------------------------------------ *From:* Krystal Xiwing Yau *Sent:* 11 March 2024 13:39 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds Dear Koen, Sorry for the late reply. I've been busy with other project. Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up. Could you please advise? Thank you. Best regards, Krystal ------------------------------------------------------------------------ *From:* freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.com> *Sent:* 29 January 2024 23:00:08 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds External Email - Use Caution Hi Krystal, I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing? Thanks, Koen On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hk> wrote: External Email - Use Caution Dear Koen, Thank you for your reply and wish you the best of luck on your grant application. As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold? I look forward to hearing from you. Thank you so much for your time and patience. Best regards, Krystal ------------------------------------------------------------------------ *From:* freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.com> *Sent:* 17 January 2024 16:56:34 *To:* Freesurfer support list *Subject:* Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds External Email - Use Caution Hi Krystal, Apologies for the delay in replying (grant deadline). The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities. If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew. Hope this helps, Koen On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hk> wrote: External Email - Use Caution Dear FS experts, I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information: Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image Do the volume of lesions supposedly different with threshold adjustments? The following code is what I used for running samseg: run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8 Thank you for your attention. Regards, Krystal Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> . _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer <https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_INXoiKyhSkwZrVsgxBddYx0Hqe4UmEZyniepoNkFsbvPVAAOYNRnrROqSH2oAI7tvZ7F9q6MXWjhWX61v43gDNsUpBnwF_0G8eBBb-KBAL4jdeHo5ZmabF-eQtz61PA9Kd3R3nrwgw8H-9a1IgepwdPHisqc-e_xAHL7pPF911x1_0W_O-y-8Jw6ua1ZFc93ffTwkp_h5O7PRdyFDCp0nV_pac62RXu_sPCE9FpQkyfUo23GAyYDi0QFaPant8x0K2tfoUnSjhb9s2c_4uTBojCVj7aPcazR4hSqqMBA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer> The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://www.massgeneralbrigham.org/complianceline <https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> .
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu *MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
External Email - Use Caution
Dear Douglas,
Thanks for your reply.
In my previous conversation with Koen, I have been having problems with the over-sensitive lesion mask as shown in Fig. 1. Nonetheless, I have adjusted the theshold while running the run_samseg command with the option of --save-posteriors. There's a file named Lesions.mgz , and the volume has been saved in stats file.
When I inspected the FLAIR reg image (Fig.2), the lesions detected by samseg had shown in areas other than where actual lesions should be. I was therefure worried that the statistics generated at the end of run_samseg was incorrect. That's why I was asking how I can ensure the new Lesion volume is accurate after running mri_binarize and mri_segstats.
As you suggested, click onto the seg.mgz to see the value on the panel. Please see Fig. 3, the lesion was not shown as 99, but 3. Moreover, I wonder if I can have the total volume of lesions from the values shown on the panel. As I looked at another successful case, like Fig. 4. The panel only shows value 99 for the lesions (Fig. 5). Would you please kindly advise?
[cid:ccf7935a-a3bf-411f-82f2-80dbe51194e1]
Fig. 1 FLAIR image with Lesion mask
[cid:b64f1880-f415-444a-9e14-4909974df2f6]
Fig. 2 FLAIR reg. image
[cid:9c3f3baa-ca18-4166-a605-df4ed8fbf635]
Fig. 3 seg.mgz of problematic case
[cid:ce6f1aa4-79ab-4b6b-ba70-1aa30c9f425d]
Fig 4. FLAIR image of successful case
[cid:f54ca04f-dde0-4010-8c71-644b87f85cd7]
Fig 5. seg.mgz of the successful case
I apologize about the lengthy email but I am pretty frustrated here as I am self-learning.
Thank you so much for your attention and time.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDU Sent: 05 April 2024 00:46:03 To: freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] Lesion detection at different thresholds
It may be the case that it just did not detect any lesions in the input. The lesions volume in the posterior may be empty.
On 4/2/2024 9:58 PM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Douglas,
Yes, I loaded seg.mgz on freeview but still no lesions labeled there.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDUmailto:dgreve@MGH.HARVARD.EDU Sent: 02 April 2024 21:17:19 To: freesurfer@nmr.mgh.harvard.edumailto:freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] Lesion detection at different thresholds
Did you load the seg.mgz? Are there lesions labeled there? If so, click on one to see the value.
On 4/1/2024 11:33 PM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Douglas,
Thank you for your reply.
I do not see 77, and neither does a label named "Lesions". How else can I know the lesions mask is correct? I see the lesion volume after adjusting the threshold has been decreased, but I would like to know how accurately the lesions.mgz detects the lesions on FLAIR T2 image.
Did I miss something when I execute run_samseg? I have atteched the data file generated by executing mri_segstats and the samseg processes I have made to this email for your reference.
The software and OS that I am using are listed below as well:
FreeSurfer: version 7.3.2
Linux: Ubuntu 23.04
Thank you again for your attention. Your help is highly appreciated.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDUmailto:dgreve@MGH.HARVARD.EDU Sent: 30 March 2024 4:57 To: freesurfer@nmr.mgh.harvard.edumailto:freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Just load the seg.mgz and click on a voxel in the lesion, then look at the value in the panel. There is a slight chance it could be 77 instead of 99.
On 3/26/2024 4:29 AM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Koen,
Thank you so much for your clarification. The volume changed after running the suggested commands.
It's weird that the label 99 does not exist in my seg.mgz, but I still see my lesions.mgz in posteriors folder.
As I am inspecting whether the lesions are segmented accurately, the lesions mask (with default threshold) is rather be oversensitive. I tried to view the binarized image, which is in NifTi format, but I can't view it on Freeview. How I can know if adjusting the threshold with mri_binarize would make my lesions accurately estimated afterwards?
Thank you for your kind attention.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.commailto:leempko@gmail.com Sent: 25 March 2024 18:11:42 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Apologies for any confusion caused. I'm pretty new to the program and self-learning here.
I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated.
Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly.
mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7
mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99
mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt
Did I miss anything here? Please advise.
Thanks.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 19 March 2024 02:07:44 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is?
Thanks,
Koen
On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
________________________________ From: Krystal Xiwing Yau Sent: 11 March 2024 13:39 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 29 January 2024 23:00:08 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 17 January 2024 16:56:34 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:part1.N6OgJloo.Zhyu9Tte@mgh.harvard.edu]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:part2.J92cPtns.NZjIr0j0@mgh.harvard.edu]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1I8vOfAE4f0JcrlYZYU81R0uJ-_ij1OWgkmeT-u0Gvl2MBC...https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1I8vOfAE4f0JcrlYZYU81R0uJ-_ij1OWgkmeT-u0Gvl2MBC...https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1I8vOfAE4f0JcrlYZYU81R0uJ-_ij1OWgkmeT-u0Gvl2MBC...https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1fDdmnInOo9Bm5v3C_yc0_XnLs9X2KdlRpiIEs2YsJ9jVns...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1fDdmnInOo9Bm5v3C_yc0_XnLs9X2KdlRpiIEs2YsJ9jVns...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> . _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1I8vOfAE4f0JcrlYZYU81R0uJ-_ij1OWgkmeT-u0Gvl2MBC...https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_INXoiKyhSkwZrVsgxBddYx0Hqe4UmEZyniepoNkFsbvPVAAOYNRnrROqSH2oAI7tvZ7F9q6MXWjhWX61v43gDNsUpBnwF_0G8eBBb-KBAL4jdeHo5ZmabF-eQtz61PA9Kd3R3nrwgw8H-9a1IgepwdPHisqc-e_xAHL7pPF911x1_0W_O-y-8Jw6ua1ZFc93ffTwkp_h5O7PRdyFDCp0nV_pac62RXu_sPCE9FpQkyfUo23GAyYDi0QFaPant8x0K2tfoUnSjhb9s2c_4uTBojCVj7aPcazR4hSqqMBA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1fDdmnInOo9Bm5v3C_yc0_XnLs9X2KdlRpiIEs2YsJ9jVns...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1fDdmnInOo9Bm5v3C_yc0_XnLs9X2KdlRpiIEs2YsJ9jVns...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1I8vOfAE4f0JcrlYZYU81R0uJ-_ij1OWgkmeT-u0Gvl2MBC...https://secure-web.cisco.com/1RrZZNZSHOqKb-I76B5irKr5mOg2T-VN9nx5_eF6Tt-BQkMCCCAbKs08-YYyeZZhIHxLTpWArEjD_d5cWtmI6W1RzVzgQUabgtq2NU0xKHu_SN461QC5xIj-zxkRkRvSZTUKFSgs7GSyYGWxH-UUPCKr0s9ovZk6pUABEWti9HpOpR0ONw9vcQblo6pChNgEpWG7SeKZgC2LmPgoPoesaGmXS6AI4U0wfIKZn7KuC_5qHAuLR2qYnxNuZyiWXmIX3zZ6TNQJTjzXcgze_olqLAK9Zxb7coxQXDUN9m7uNyu0Byd3Q2gMtuv5bmJuNN6NRKu_oA-Hy5mh9Y0P7HtxuUg/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1I8vOfAE4f0JcrlYZYU81R0uJ-_ij1OWgkmeT-u0Gvl2MBC...https://secure-web.cisco.com/1vkxHr26woqi5XZKIrhFf8VTP6An-8MS4M2PXkm9p7m60HxTAcgiCHdllgq1IOiVee5W9RwpX6Q0ANmvZrJwcpS1zbW_PZ5flz2aqpOdtXlwV3H809fvpIVZiq1u09-H2ypTFSBIXQNlYt96m0RFgIrD4BLpeniMdTyjTH48nVW7IAH3vlPMxrc2ew3b7HZ9M9rnH99K9T5PntNXXz7wFpjgGlfGS10dpF6JLznBNBcP1TXJU075UQuot2ucsJWOVOHazvkTHJylgdBJBEk3QLfiFQsvBy4Z6rZW9Gg1UPwSXIjQRuZXJDmbOoQyjuOUYTHBg8fD6N0daju02lEb1sA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1I8vOfAE4f0JcrlYZYU81R0uJ-_ij1OWgkmeT-u0Gvl2MBC...
External Email - Use Caution
To Whom It may Concern,
Just wanted to check in on this matter - how else can I check if the newly thresholded lesion mask accurately detects the lesions.
The last resort would be manually editing as I searched through the archive. If so, please advise on how to edit the lesions. Thank you.
Best regards,
Krystal
________________________________ From: Krystal Xiwing Yau Sent: 05 April 2024 17:09 To: freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] Lesion detection at different thresholds
Dear Douglas,
Thanks for your reply.
In my previous conversation with Koen, I have been having problems with the over-sensitive lesion mask as shown in Fig. 1. Nonetheless, I have adjusted the theshold while running the run_samseg command with the option of --save-posteriors. There's a file named Lesions.mgz , and the volume has been saved in stats file.
When I inspected the FLAIR reg image (Fig.2), the lesions detected by samseg had shown in areas other than where actual lesions should be. I was therefore worried that the statistics generated at the end of run_samseg was incorrect. That's why I was asking how I can ensure the new Lesion volume is accurate after running mri_binarize and mri_segstats.
As you suggested, click onto the seg.mgz to see the value on the panel. Please see Fig. 3, the lesion was not shown as 99, but 3. Moreover, I wonder if I can have the total volume of lesions from the values shown on the panel. As I looked at another successful case, like Fig. 4. The panel only shows value 99 for the lesions (Fig. 5). Would you please kindly advise?
[cid:ccf7935a-a3bf-411f-82f2-80dbe51194e1]
Fig. 1 FLAIR image with Lesion mask
[cid:b64f1880-f415-444a-9e14-4909974df2f6]
Fig. 2 FLAIR reg. image
[cid:9c3f3baa-ca18-4166-a605-df4ed8fbf635]
Fig. 3 seg.mgz of problematic case
[cid:ce6f1aa4-79ab-4b6b-ba70-1aa30c9f425d]
Fig 4. FLAIR image of successful case
[cid:f54ca04f-dde0-4010-8c71-644b87f85cd7]
Fig 5. seg.mgz of the successful case
I apologize about the lengthy email but I am pretty frustrated here as I am self-learning.
Thank you so much for your attention and time.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDU Sent: 05 April 2024 00:46:03 To: freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] Lesion detection at different thresholds
It may be the case that it just did not detect any lesions in the input. The lesions volume in the posterior may be empty.
On 4/2/2024 9:58 PM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Douglas,
Yes, I loaded seg.mgz on freeview but still no lesions labeled there.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDUmailto:dgreve@MGH.HARVARD.EDU Sent: 02 April 2024 21:17:19 To: freesurfer@nmr.mgh.harvard.edumailto:freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] Lesion detection at different thresholds
Did you load the seg.mgz? Are there lesions labeled there? If so, click on one to see the value.
On 4/1/2024 11:33 PM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Douglas,
Thank you for your reply.
I do not see 77, and neither does a label named "Lesions". How else can I know the lesions mask is correct? I see the lesion volume after adjusting the threshold has been decreased, but I would like to know how accurately the lesions.mgz detects the lesions on FLAIR T2 image.
Did I miss something when I execute run_samseg? I have atteched the data file generated by executing mri_segstats and the samseg processes I have made to this email for your reference.
The software and OS that I am using are listed below as well:
FreeSurfer: version 7.3.2
Linux: Ubuntu 23.04
Thank you again for your attention. Your help is highly appreciated.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDUmailto:dgreve@MGH.HARVARD.EDU Sent: 30 March 2024 4:57 To: freesurfer@nmr.mgh.harvard.edumailto:freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Just load the seg.mgz and click on a voxel in the lesion, then look at the value in the panel. There is a slight chance it could be 77 instead of 99.
On 3/26/2024 4:29 AM, Krystal Xiwing Yau wrote:
External Email - Use Caution
Dear Koen,
Thank you so much for your clarification. The volume changed after running the suggested commands.
It's weird that the label 99 does not exist in my seg.mgz, but I still see my lesions.mgz in posteriors folder.
As I am inspecting whether the lesions are segmented accurately, the lesions mask (with default threshold) is rather be oversensitive. I tried to view the binarized image, which is in NifTi format, but I can't view it on Freeview. How I can know if adjusting the threshold with mri_binarize would make my lesions accurately estimated afterwards?
Thank you for your kind attention.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Koen Van Leemput leempko@gmail.commailto:leempko@gmail.com Sent: 25 March 2024 18:11:42 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Sorry I should have been more specific. When you do
mri_segstats --seg seg.mgz --o tmp.txt
the label 99 will be indicated in the second column. E.g., "39 99 9157 10384.1 Seg0099" means that there are 9157 voxels labeled as lesion, with a volume of 10384.1 mm^3.
To do the thresholding on the posteriors, you can do (for example):
mri_binarize --i Lesions.mgz --min 0.9 --o thresholded_0pt9.mgz
Subsequently the lesion volume can be counted by doing
mri_segstats --seg thresholded_0pt9.mgz --o tmp_0pt9.txt
which will create a line of the form
2 1 6301 7145.4 Seg0001
which indicates 6301 voxels with volume 7145.4mm^3 with label 1 (all the other voxels in the image being labeled 0 after the mri_binarize command).
I hope this clarifies things for you,
Koen
On Tue, Mar 19, 2024 at 3:50 AM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Apologies for any confusion caused. I'm pretty new to the program and self-learning here.
I tried to use mri_binarize and mri_segstats for calculating the lesions, and found it confusing with respect of the usage of mri_segstats. There's an option --seg and I input seg.mgz for that, but there's no label 99 in the file. As a result, I still have no new volume of lesions generated.
Moreover, as I want to make sure that I will get the correct count of voxels after adjusting the threshold, I view it with freeview but only a white block shown. I am not sure whether I have it fixed correctly.
mri_binarize --i samsegoutput/posteriors/Lesions.mgz --o binarized_lesions_threshold0.7.mgz --min 0.7
mri_binarize --i binarized_lesions_threshold0.7.mgz --o lesions_label_0.7.mgz --match 99
mri_segstats --i binarized_lesions_threshold0.7.mgz --seg yourSeg/seg.mgz --sum lesion_stats_threshold0.7.txt
Did I miss anything here? Please advise.
Thanks.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 19 March 2024 02:07:44 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm afraid I don't quite understand what you're asking. In your original email, you used two different thresholds and the results you showed indicated that the method worked as expected. One issue was that the lesion volume reported in .stats file is independent of the threshold used (obviously not ideal, will be changed in future versions), so that you'd need to count voxels labeled as lesion (value 99) yourself (e.g., using "mri_segstats --seg seg.mgz--o tmp.txt"). Can you please clarify what the problem is?
Thanks,
Koen
On Sun, Mar 17, 2024 at 11:59 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FreeSurfer experts,
May I know if anyone can help with this matter? I am still exploring my way to fix the lesions volume. I have inspected the raw images (FLAIR T2 images) which did not show any missing brain structures. However, the contrast of FLAIR images may be too high thus the lesions masks appear to be very false positive. In hopes of reducing the probability of false positive, I tweeked up the threshold in samseg command. Unfortunately, the lesions masks did not improve.
Please kindly advise.
Sincerely,
Krystal
________________________________ From: Krystal Xiwing Yau Sent: 11 March 2024 13:39 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
Dear Koen,
Sorry for the late reply. I've been busy with other project.
Yes, I meant whether changing the threshold of samseg that labels lesions would change the voxel count. I have rerun the command with different thresholds, and compared with each other. The lesions volume does not change. The thresholds that I tried out were 0.3 (default), 0.7, and 0.9. The original lesion mask found to be more false positive, so I tweeked it up.
Could you please advise?
Thank you.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 29 January 2024 23:00:08 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
I'm not sure I understand -- changing the threshold should change the number of voxels labeled as lesion in seg.mgz. Can you confirm that we're talking about the same thing?
Thanks,
Koen
On Sun, Jan 21, 2024 at 8:56 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear Koen,
Thank you for your reply and wish you the best of luck on your grant application.
As some of the lesion masks are found to be weird, which shows false positive lesions on the brain, I increased the threshold to lower false positive results. The number of lesion volume and the lesion mask did not show the difference between two different thresholded images, though. Is it normal to have lesion volume the same even with a different threshold?
I look forward to hearing from you. Thank you so much for your time and patience.
Best regards,
Krystal
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edumailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Koen Van Leemput <leempko@gmail.commailto:leempko@gmail.com> Sent: 17 January 2024 16:56:34 To: Freesurfer support list Subject: Re: [Freesurfer] [FreeSurfer] Lesion detection at different thresholds
External Email - Use Caution
Hi Krystal,
Apologies for the delay in replying (grant deadline).
The lesion class in samseg is a bit special, as the internal lesion probabilities are thresholded (using the value passed on via the --threshold flag, or a default value 0.3 if you don't use that flag) to obtain the voxels labeled as 99 in the segmentation output. In contrast, the value in the .stats file is simply the sum (over all voxels) of those internal lesion probabilities.
If you want to inspect the impact of the exact threshold value on the number of voxels with label 99, you could run (as you did) samseg with the --save-posteriors flag to save the internal lesion probabilities (in yourSeg/posteriors/Lesions.mgz). Then you can play with mri_binarize and mri_segstats to obtain lesion volumes for different thresholds without having to re-run sameg anew.
Hope this helps,
Koen
On Sun, Jan 7, 2024 at 11:05 PM Krystal Xiwing Yau <krystaly@hku.hkmailto:krystaly@hku.hk> wrote:
External Email - Use Caution
Dear FS experts,
I am testing out which threshold works the best for the image. As I tested 0.3 and 0.9, the lesion masks do show the difference but the measurement is the same. Please see below for your information:
[cid:part1.N6OgJloo.Zhyu9Tte@mgh.harvard.edu]
Fig 1. Lesion.mgz with a threshold of 0.3 applied to FLAIR image
[cid:part2.J92cPtns.NZjIr0j0@mgh.harvard.edu]
Fig 2. Lesions.mgz with a threshold of 0.7 applied to FLAIR image
Do the volume of lesions supposedly different with threshold adjustments?
The following code is what I used for running samseg:
run_samseg --input $FREESURFER_HOME/${i}.nii $FREESURFER_HOME/${i}_flair_reg.nii --pallidum-separate --lesion --lesion-mask-pattern 0 1 --threshold 0.7 --output $SUBJECTS_DIR/${i}_samsegOutput_thold0.7/ --save-posteriors --threads 8
Thank you for your attention.
Regards, Krystal
Tel.: +852 2255 5024 Fax: +852 2872 5828 Address: Room 304, 3/F, New Clinical Building, 102 Pokfulam Road, Hong Kong. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/14yrN6r1oA2FqBCz-M6nPNUxoQjDo2xbfqtjNsYESWxy59e...https://secure-web.cisco.com/1SQ0_HocLG1cW0ICC6TL2w0TL2FFAKsKAamGEcm4wR86sQfp5_ugmBUW4fkaDUws0L9UHGmUEhef_ZZcxvw-nHVPCjX1HWUVu0jWW9czm6Ersv6PPF8myLxBglhGZZhbBDYaM2Ko6W5MRmQ0Oye4E6Ls4xH0KUFtlTCR4-hjZiBJnQXK0nMbbvZeHRezRBSvtjMqW1n96FplZLs2jv2vlkZgOyU4Jwoi8UeYGv5aZh9aVD4V2UF2_4RSxj0yVhKNpTn6_BrH2EDJG5zxvJlRgVW7teXeMbghE2nRSzuCo01CgpUlzEK8mKVI1MgEpzkPISoZGIEwqWU0_LAekOABZgA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/14yrN6r1oA2FqBCz-M6nPNUxoQjDo2xbfqtjNsYESWxy59e...https://secure-web.cisco.com/1oVh9-LtjvJeJyKSjDrCEacVV9HgKgtyUvtK2qGUrFhw4SBWzXQi47J77hyEdH2Oc-fzZ6bnBcEL8qu-YSKpPZDVc-yfJDkqfBJcNNsXNBdSZh2ur3bTbkX-lM6SPWuL9M8TY5nP5O6NcKcjuyvqo4iqJ5ktA45GQV9Mixc20TX2DLxT46R1RJGBfutCBg4CInJw2nfsy68PSGZoMBwY0SduY_scG475ly5d4ORWOKZNsxMIJnYu6Ug8mn_JSiYES19nlz0lGQrMmhNlt1CY__RFpZfnOW2N0Uq3-S9EYv4ixYSbA4yLaxWh0bzErmfvrED4lL_upssqTzU6TwG-Sig/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/14yrN6r1oA2FqBCz-M6nPNUxoQjDo2xbfqtjNsYESWxy59e...https://secure-web.cisco.com/1UAujb2r39hfyrzCOXnNYtW-hypO4tWov_RmjYosInRKliP4khyXsrr_3p73wGZrYlK-FPqfsHVp65SiaD4dG6aJ9ply9UVlEuBQ-0sM-ZS9I4pmcjHhvACpfy2ZkTR2pajNUPHQ4dTLOW7w5XMK8YE2H-cBy1YURPvU0F_i9lLGCFThd2yY7H2a5A52LjgumgImM7LFo5W8FM-PPUDoAJIVxryXZS51u-DUG2B55RxC2fs7LVPmBVjc8j0HcCzQvD8POQ9gM0hbu4erlbFD7lZtLV1NdAjhVWBm8-ZxhozBhy8TmRgtZIJsf1VzQBEOK/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1UzxXRhZIMNn0JV9pNGvHO_aV1hwZttCmgvxTfvXAL_OUHz...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1UzxXRhZIMNn0JV9pNGvHO_aV1hwZttCmgvxTfvXAL_OUHz...https://secure-web.cisco.com/1jum5MkSfty1Y6V8BrOjCHlxJKLkn9tJajnkHrETvL685f4P0KcAPKDzcqGT9p5l_StZv-Occin0lqjItY1KuwdP8y3OCqMAmmRlT3ovl0FzvyeCoVQL63auoF-WyrHR31lsHMZhDj608gDGHmWVxMtlM4Y2Q4tcF7VkUCdo8E7O4lLhqwJEpcFiLBT9FDI4dnz5_e57iFEvsOUZ0lMmCl62ayxQECFiNbAFovuIZpUxUhFbaussXYBc31kJFXFPvRTEzxF8CIY26sk1QZXwe_g9XeLZ2Q4XMXIHNL5r5zo1q3cQ2SvWBB9KYh-rb1hkH/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> . _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/14yrN6r1oA2FqBCz-M6nPNUxoQjDo2xbfqtjNsYESWxy59e...https://secure-web.cisco.com/1RyB2K4BuANnRGkfUQPVPfVhZ_qhh1Br1fOjr3tmeV9H2B_INXoiKyhSkwZrVsgxBddYx0Hqe4UmEZyniepoNkFsbvPVAAOYNRnrROqSH2oAI7tvZ7F9q6MXWjhWX61v43gDNsUpBnwF_0G8eBBb-KBAL4jdeHo5ZmabF-eQtz61PA9Kd3R3nrwgw8H-9a1IgepwdPHisqc-e_xAHL7pPF911x1_0W_O-y-8Jw6ua1ZFc93ffTwkp_h5O7PRdyFDCp0nV_pac62RXu_sPCE9FpQkyfUo23GAyYDi0QFaPant8x0K2tfoUnSjhb9s2c_4uTBojCVj7aPcazR4hSqqMBA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1UzxXRhZIMNn0JV9pNGvHO_aV1hwZttCmgvxTfvXAL_OUHz...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1UzxXRhZIMNn0JV9pNGvHO_aV1hwZttCmgvxTfvXAL_OUHz...https://secure-web.cisco.com/1qnM2k2b5_kE14xF2VzShAuQvdPuo1_6rQiNhoqK9nCeUmXYIZobi4T6wuT4ULdRy_v9MOJtdAZ2xY_zt6MeFSBezbZmmqm0VID5lB942s87XtjvVn7xxDPTEhsspUvgutIroKGT18-6pW3rftEgpOg6peirDZrj621KwXtVUFAk-XUwNpQ-fdR5k9zERSyMeOHW0rlQpJlKIICvJEifjWq7qqI3Hf-xA1rAlySlTWO5S9tFMSLoaOMkw2JuSNveeb8o3r1gMGEe8WrssSNVh-mCRxKXpPbt0CMXOefrFyCG1zmptL14yEcC4w5445D-mcQLziIb4gp8_PnYqsrv8Kw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/14yrN6r1oA2FqBCz-M6nPNUxoQjDo2xbfqtjNsYESWxy59e...https://secure-web.cisco.com/1RrZZNZSHOqKb-I76B5irKr5mOg2T-VN9nx5_eF6Tt-BQkMCCCAbKs08-YYyeZZhIHxLTpWArEjD_d5cWtmI6W1RzVzgQUabgtq2NU0xKHu_SN461QC5xIj-zxkRkRvSZTUKFSgs7GSyYGWxH-UUPCKr0s9ovZk6pUABEWti9HpOpR0ONw9vcQblo6pChNgEpWG7SeKZgC2LmPgoPoesaGmXS6AI4U0wfIKZn7KuC_5qHAuLR2qYnxNuZyiWXmIX3zZ6TNQJTjzXcgze_olqLAK9Zxb7coxQXDUN9m7uNyu0Byd3Q2gMtuv5bmJuNN6NRKu_oA-Hy5mh9Y0P7HtxuUg/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/14yrN6r1oA2FqBCz-M6nPNUxoQjDo2xbfqtjNsYESWxy59e...https://secure-web.cisco.com/1vkxHr26woqi5XZKIrhFf8VTP6An-8MS4M2PXkm9p7m60HxTAcgiCHdllgq1IOiVee5W9RwpX6Q0ANmvZrJwcpS1zbW_PZ5flz2aqpOdtXlwV3H809fvpIVZiq1u09-H2ypTFSBIXQNlYt96m0RFgIrD4BLpeniMdTyjTH48nVW7IAH3vlPMxrc2ew3b7HZ9M9rnH99K9T5PntNXXz7wFpjgGlfGS10dpF6JLznBNBcP1TXJU075UQuot2ucsJWOVOHazvkTHJylgdBJBEk3QLfiFQsvBy4Z6rZW9Gg1UPwSXIjQRuZXJDmbOoQyjuOUYTHBg8fD6N0daju02lEb1sA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/14yrN6r1oA2FqBCz-M6nPNUxoQjDo2xbfqtjNsYESWxy59e...
freesurfer@nmr.mgh.harvard.edu