|
| 1 | +--- |
| 2 | +title: Breast Cancer Mammogram Classification |
| 3 | +type: templates |
| 4 | +category: Community Contributions |
| 5 | +cat: community |
| 6 | +order: 1000 |
| 7 | +meta_title: Breast Cancer Mammogram Classification Data Labeling Template |
| 8 | +meta_description: Template for breast cancer mammogram classification with Label Studio |
| 9 | +community: true |
| 10 | +community_author: redeipirati |
| 11 | +community_contributors: carly-bartel |
| 12 | +community_repo: awesome-label-studio-config |
| 13 | +github_repo: humanSignal/awesome-label-studio-config |
| 14 | +repo_url: https://github.com/HumanSignal/awesome-label-studio-config/tree/main/label-configs/breast-cancer-mammogram-classification |
| 15 | +--- |
| 16 | + |
| 17 | + |
| 18 | +<img src="/images/templates/breast-cancer-mammogram-classification.gif" alt="" class="gif-border" width="552px" height="408px" /> |
| 19 | + |
| 20 | +This labeling config provides a comprehensive interface for breast cancer mammogram analysis using the BI-RADS classification system. It enables radiologists to classify mammograms, assess breast density, and document findings for both breasts. |
| 21 | + |
| 22 | +## Labeling Configuration |
| 23 | + |
| 24 | +```html |
| 25 | +<View> |
| 26 | + <!-- Header for context --> |
| 27 | + <Header value="Breast Cancer Mammogram Classification" /> |
| 28 | + |
| 29 | + <!-- Instructions --> |
| 30 | + <View style="margin-bottom: 20px;"> |
| 31 | + <Header value="Please review the standard mammographic views (CC and MLO) of both breasts. Compare corresponding views (e.g., L-CC with R-CC). Label each breast individually, and report any findings." /> |
| 32 | + <Text name="birads_legend" value="BI-RADS: 0 = Incomplete, 1 = Negative, 2 = Benign, 3 = Probably Benign, 4 = Suspicious, 5 = Highly Suggestive of Malignancy, 6 = Known Cancer" /> |
| 33 | + </View> |
| 34 | + |
| 35 | + <!-- CC Views --> |
| 36 | + <View style="margin-bottom: 10px; display: flex; gap: 20px; justify-content: center;"> |
| 37 | + <View style="text-align: center; width: 450px; height: 450px;"> |
| 38 | + <Header value="Left CC" /> |
| 39 | + <Image name="left_cc" value="$img1" style="width:100%; height:100%; object-fit: contain;" /> |
| 40 | + </View> |
| 41 | + <View style="text-align: center; width: 450px; height: 450px;"> |
| 42 | + <Header value="Right CC" /> |
| 43 | + <Image name="right_cc" value="$img3" style="width:100%; height:100%; object-fit: contain;" /> |
| 44 | + </View> |
| 45 | + </View> |
| 46 | + |
| 47 | + <!-- MLO Views --> |
| 48 | + <View style="margin-bottom: 20px; display: flex; gap: 20px; justify-content: center;"> |
| 49 | + <View style="text-align: center; width: 450px; height: 450px;"> |
| 50 | + <Header value="Left MLO" /> |
| 51 | + <Image name="left_mlo" value="$img2" style="width:100%; height:100%; object-fit: contain;" /> |
| 52 | + </View> |
| 53 | + <View style="text-align: center; width: 450px; height: 450px;"> |
| 54 | + <Header value="Right MLO" /> |
| 55 | + <Image name="right_mlo" value="$img4" style="width:100%; height:100%; object-fit: contain;" /> |
| 56 | + </View> |
| 57 | + </View> |
| 58 | + |
| 59 | + <!-- Left Breast --> |
| 60 | + <View style="margin-top: 20px;"> |
| 61 | + <Header value="Left Breast: BI-RADS Classification" /> |
| 62 | + <Choices name="birads_left" toName="left_cc,right_cc,left_mlo,right_mlo" choice="single" required="true"> |
| 63 | + <Choice value="0 - Incomplete" /> |
| 64 | + <Choice value="1 - Negative" /> |
| 65 | + <Choice value="2 - Benign" /> |
| 66 | + <Choice value="3 - Probably Benign" /> |
| 67 | + <Choice value="4 - Suspicious Abnormality" /> |
| 68 | + <Choice value="5 - Highly Suggestive of Malignancy" /> |
| 69 | + <Choice value="6 - Known Biopsy-Proven Malignancy" /> |
| 70 | + </Choices> |
| 71 | + |
| 72 | + <Header value="Left Breast: Density" /> |
| 73 | + <Choices name="density_left" toName="left_cc,right_cc,left_mlo,right_mlo" choice="single"> |
| 74 | + <Choice value="A - Almost entirely fatty" /> |
| 75 | + <Choice value="B - Scattered fibroglandular densities" /> |
| 76 | + <Choice value="C - Heterogeneously dense" /> |
| 77 | + <Choice value="D - Extremely dense" /> |
| 78 | + </Choices> |
| 79 | + |
| 80 | + <Header value="Left Breast: Findings (Optional)" /> |
| 81 | + <Choices name="findings_left" toName="left_cc,right_cc,left_mlo,right_mlo" choice="multiple"> |
| 82 | + <Choice value="Mass" /> |
| 83 | + <Choice value="Calcifications" /> |
| 84 | + <Choice value="Architectural Distortion" /> |
| 85 | + <Choice value="Asymmetry" /> |
| 86 | + <Choice value="Skin/Nipple Retraction" /> |
| 87 | + </Choices> |
| 88 | + </View> |
| 89 | + |
| 90 | + <!-- Right Breast --> |
| 91 | + <View style="margin-top: 30px;"> |
| 92 | + <Header value="Right Breast: BI-RADS Classification" /> |
| 93 | + <Choices name="birads_right" toName="left_cc,right_cc,left_mlo,right_mlo" choice="single" required="true"> |
| 94 | + <Choice value="0 - Incomplete" /> |
| 95 | + <Choice value="1 - Negative" /> |
| 96 | + <Choice value="2 - Benign" /> |
| 97 | + <Choice value="3 - Probably Benign" /> |
| 98 | + <Choice value="4 - Suspicious Abnormality" /> |
| 99 | + <Choice value="5 - Highly Suggestive of Malignancy" /> |
| 100 | + <Choice value="6 - Known Biopsy-Proven Malignancy" /> |
| 101 | + </Choices> |
| 102 | + |
| 103 | + <Header value="Right Breast: Density" /> |
| 104 | + <Choices name="density_right" toName="left_cc,right_cc,left_mlo,right_mlo" choice="single"> |
| 105 | + <Choice value="A - Almost entirely fatty" /> |
| 106 | + <Choice value="B - Scattered fibroglandular densities" /> |
| 107 | + <Choice value="C - Heterogeneously dense" /> |
| 108 | + <Choice value="D - Extremely dense" /> |
| 109 | + </Choices> |
| 110 | + |
| 111 | + <Header value="Right Breast: Findings (Optional)" /> |
| 112 | + <Choices name="findings_right" toName="left_cc,right_cc,left_mlo,right_mlo" choice="multiple"> |
| 113 | + <Choice value="Mass" /> |
| 114 | + <Choice value="Calcifications" /> |
| 115 | + <Choice value="Architectural Distortion" /> |
| 116 | + <Choice value="Asymmetry" /> |
| 117 | + <Choice value="Skin/Nipple Retraction" /> |
| 118 | + </Choices> |
| 119 | + </View> |
| 120 | + |
| 121 | + <!-- Free Text Observation --> |
| 122 | + <View style="margin-top: 30px;"> |
| 123 | + <Header value="Additional Observations / Notes (Optional)" /> |
| 124 | + <TextArea |
| 125 | + name="notes" |
| 126 | + toName="left_cc,right_cc,left_mlo,right_mlo" |
| 127 | + rows="5" |
| 128 | + placeholder="Describe any notable findings, technical issues, or comparison to prior exams." |
| 129 | + /> |
| 130 | + </View> |
| 131 | +</View> |
| 132 | +``` |
| 133 | + |
| 134 | +## About the labeling configuration |
| 135 | + |
| 136 | +All labeling configurations must be wrapped in [View](/tags/view.html) tags. |
| 137 | + |
| 138 | +This configuration uses the following tags: |
| 139 | + |
| 140 | +- [Image](/tags/image.html) |
| 141 | +- [Choices](/tags/choices.html) |
| 142 | +- [TextArea](/tags/textarea.html) |
| 143 | +- [View](/tags/view.html) |
| 144 | +- [Header](/tags/header.html) |
| 145 | + |
| 146 | +## Usage Instructions |
| 147 | + |
| 148 | +- **Image Display**: This config displays four mammogram views (Left CC, Left MLO, Right CC, Right MLO) in a grid layout. |
| 149 | +- **BI-RADS Classification**: Each breast can be classified using the standard BI-RADS categories (0-6). |
| 150 | +- **Density Assessment**: Breast density can be classified using the A-D scale. |
| 151 | +- **Findings Documentation**: Multiple choice options for common findings (Mass, Calcifications, etc.). |
| 152 | +- **Notes**: Free text area for additional observations and technical notes. |
| 153 | + |
0 commit comments