shivamjadhav commited on
Commit
0fe35b7
Β·
1 Parent(s): 7b41c88

created Bug Priority model and hugging face deployment read project

Browse files
Files changed (1) hide show
  1. README.md +6 -128
README.md CHANGED
@@ -1,133 +1,11 @@
1
  ---
2
  title: Bug Priority Multiclass
3
- emoji: πŸ“š
4
- colorFrom: green
5
- colorTo: purple
6
  sdk: docker
7
  pinned: false
8
- short_description: This model fine-tunes `roberta-base` using a labeled dataset
9
-
10
- tags:
11
- - text-classification
12
- - accessibility
13
- - bug-triage
14
- - transformers
15
- - roberta
16
- - pytorch-lightning
17
- license: apache-2.0
18
- datasets:
19
- - custom
20
- language:
21
- - en
22
-
23
- # RoBERTa Base Model for Accessibility Bug Priority Classification
24
-
25
- This model fine-tunes `roberta-base` using a labeled dataset of accessibility-related bug descriptions to automatically classify their **priority level**. It helps automate the triage of bugs affecting users of screen readers and other assistive technologies.
26
-
27
-
28
- ## 🧠 Problem Statement
29
-
30
- Modern applications often suffer from accessibility issues that impact users with disabilities, such as content not being read properly by screen readers like **VoiceOver**, **NVDA**, or **JAWS**. These bugs are often reported via issue trackers or user forums in the form of short text summaries.
31
-
32
- Due to the unstructured and domain-specific nature of these reports, manual triage is:
33
- - Time-consuming
34
- - Inconsistent
35
- - Often delayed in resolution
36
-
37
- There is a critical need to **prioritize accessibility bugs quickly and accurately** to ensure inclusive user experiences.
38
-
39
-
40
- ## 🎯 Research Objective
41
-
42
- This research project builds a machine learning model that can **automatically assign a priority level** to an accessibility bug report. The goal is to:
43
-
44
- - Streamline accessibility QA workflows
45
- - Accelerate high-impact fixes
46
- - Empower developers and testers with ML-assisted tooling
47
-
48
- ## πŸ“Š Dataset Statistics
49
-
50
- The dataset used for training consists of real-world accessibility bug reports, each labeled with one of four priority levels. The distribution of labels is imbalanced, and label-aware preprocessing steps were taken to improve model performance.
51
-
52
- | Label | Priority Level | Count |
53
- |-------|----------------|-------|
54
- | 1 | Medium | 2035 |
55
- | 2 | High | 1465 |
56
- | 0 | Low | 804 |
57
- | 3 | Critical | 756 |
58
-
59
- **Total Samples**: 5,060
60
-
61
- ### 🧹 Preprocessing
62
-
63
- - Text normalization and cleanup
64
- - Length filtering based on token count
65
- - Label frequency normalization for class-weighted loss
66
-
67
- To address class imbalance, class weights were computed as inverse label frequency and used in the cross-entropy loss during training.
68
-
69
- ## πŸ§ͺ Dataset Description
70
-
71
- The dataset consists of short bug report texts labeled with one of four priority levels:
72
-
73
- | Label | Meaning |
74
- |-------|-------------|
75
- | 0 | Low |
76
- | 1 | Medium |
77
- | 2 | High |
78
- | 3 | Critical |
79
-
80
- ### ✏️ Sample Entries:
81
-
82
- ```csv
83
- Text,Label
84
- "mac voiceover screen reader",3
85
- "Firefox crashes when interacting with some MathML content using Voiceover on Mac",0
86
- "VoiceOver skips over text in paragraphs which contain <strong> or <em> tags",2
87
- ```
88
-
89
-
90
- ## πŸ“Š Model Comparison
91
-
92
- We fine-tuned and evaluated three transformer models under identical training conditions using PyTorch Lightning (multi-GPU, mixed precision, and weighted loss). The validation accuracy and F1 scores are as follows:
93
-
94
- | Model | Base Architecture | Validation Accuracy | Weighted F1 Score |
95
- |-----------------|----------------------------|---------------------|-------------------|
96
- | DeBERTa-v3 Base | microsoft/deberta-v3-base | **69%** | **0.69** |
97
- | ALBERT Base | albert-base-v2 | 68% | 0.68 |
98
- | RoBERTa Base | roberta-base | 66% | 0.67 |
99
-
100
- ### πŸ“ Observations
101
-
102
- - **DeBERTa** delivered the best performance, likely due to its *disentangled attention* and *enhanced positional encoding*.
103
- - **ALBERT** performed surprisingly well despite having fewer parameters, showcasing its efficiency.
104
- - **RoBERTa** provided stable and reliable results but slightly underperformed compared to the others.
105
-
106
-
107
- # RoBERTa Base Model for Accessibility Priority Classification
108
-
109
- This model fine-tunes `roberta-base` using a 4-class custom dataset to classify accessibility issues by priority. It was trained using PyTorch Lightning and optimized with mixed precision on multiple GPUs.
110
-
111
- ## Details
112
-
113
- - **Model**: roberta-base
114
- - **Framework**: PyTorch Lightning
115
- - **Labels**: 0 (Low), 1 (Medium), 2 (High), 3 (Critical)
116
- - **Validation F1**: 0.71 (weighted)
117
-
118
- ## Usage
119
-
120
- ```python
121
- from transformers import RobertaTokenizer, RobertaForSequenceClassification
122
- import torch
123
-
124
- model = RobertaForSequenceClassification.from_pretrained("your-username/roberta-priority-multiclass")
125
- tokenizer = RobertaTokenizer.from_pretrained("your-username/roberta-priority-multiclass")
126
-
127
- inputs = tokenizer("VoiceOver skips over text with <strong> tags", return_tensors="pt")
128
- outputs = model(**inputs)
129
- prediction = torch.argmax(outputs.logits, dim=1).item()
130
-
131
- print("Predicted Priority:", prediction)
132
- ```
133
  ---
 
 
 
1
  ---
2
  title: Bug Priority Multiclass
3
+ emoji: πŸ’»
4
+ colorFrom: red
5
+ colorTo: gray
6
  sdk: docker
7
  pinned: false
8
+ short_description: This is a Multiclass Bug Priority Model
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  ---
10
+
11
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference