Ellie5757575757 commited on
Commit
0c96a6d
·
verified ·
1 Parent(s): 85d56c8

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +71 -63
config.json CHANGED
@@ -1,63 +1,71 @@
1
- ---
2
- title: Aphasia Classifier
3
- emoji: 🧠
4
- colorFrom: blue
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: "4.44.0"
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- short_description: AI-powered aphasia severity classification using fine-tuned BioBERT
12
- tags:
13
- - medical
14
- - nlp
15
- - aphasia
16
- - biobert
17
- - classification
18
- - speech-therapy
19
- - healthcare
20
- models:
21
- - dmis-lab/biobert-base-cased-v1.1
22
- ---
23
-
24
- # Aphasia Classifier 🧠
25
-
26
- An AI-powered application for classifying aphasia severity levels using a fine-tuned BioBERT model.
27
-
28
- ## Features
29
-
30
- - **Speech Analysis Pipeline**: Text → CHA Format → JSON → BioBERT Classification
31
- - **Severity Classification**: Normal, Mild, Moderate, Severe aphasia levels
32
- - **Confidence Scoring**: Detailed probability distributions for each class
33
- - **Professional Interface**: Medical-grade UI with multiple output views
34
- - **Real-time Processing**: Complete analysis in seconds
35
-
36
- ## How to Use
37
-
38
- 1. Enter a speech sample in the text area
39
- 2. Click "Analyze Speech" to process through the pipeline
40
- 3. View results across multiple tabs:
41
- - **Results**: Formatted analysis with confidence scores
42
- - **CHA Format**: Clinical CHAT format output
43
- - **JSON Data**: Structured data representation
44
- - **Raw Classification**: Complete model output
45
-
46
- ## Model Information
47
-
48
- - **Base Model**: BioBERT (dmis-lab/biobert-base-cased-v1.1)
49
- - **Fine-tuning**: Specialized for aphasia severity classification
50
- - **Input**: Natural language speech samples
51
- - **Output**: 4-class severity classification with confidence scores
52
-
53
- ## Disclaimer
54
-
55
- ⚠️ This tool is for research and educational purposes only. It should not be used as a substitute for professional medical diagnosis or treatment. Always consult with qualified healthcare professionals for medical advice.
56
-
57
- ## Technical Pipeline
58
-
59
- ```
60
- Text Input → CHA Formatting → JSON Structure → BioBERT Model → Classification Results
61
- ```
62
-
63
- Built with Gradio and Transformers library.
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "transformers_version": "4.30.0",
21
+ "type_vocab_size": 2,
22
+ "use_cache": true,
23
+ "vocab_size": 28996,
24
+ "torch_dtype": "float32",
25
+ "id2label": {
26
+ "0": "Normal",
27
+ "1": "Mild Aphasia",
28
+ "2": "Moderate Aphasia",
29
+ "3": "Severe Aphasia"
30
+ },
31
+ "label2id": {
32
+ "Normal": 0,
33
+ "Mild Aphasia": 1,
34
+ "Moderate Aphasia": 2,
35
+ "Severe Aphasia": 3
36
+ },
37
+ "num_labels": 4,
38
+ "problem_type": "single_label_classification",
39
+ "finetuning_task": "aphasia_classification",
40
+ "_name_or_path": "dmis-lab/biobert-base-cased-v1.1",
41
+ "base_model": "dmis-lab/biobert-base-cased-v1.1",
42
+ "task_specific_params": {
43
+ "aphasia_classification": {
44
+ "max_length": 512,
45
+ "do_lower_case": false,
46
+ "early_stopping": true,
47
+ "num_beams": 1
48
+ }
49
+ },
50
+ "custom_config": {
51
+ "model_version": "1.0",
52
+ "training_data": "aphasia_corpus",
53
+ "evaluation_metrics": {
54
+ "accuracy": 0.85,
55
+ "f1_score": 0.83,
56
+ "precision": 0.84,
57
+ "recall": 0.82
58
+ },
59
+ "feature_extraction": {
60
+ "linguistic_features": true,
61
+ "syntactic_complexity": true,
62
+ "semantic_coherence": true,
63
+ "discourse_markers": true
64
+ },
65
+ "preprocessing": {
66
+ "cha_format": true,
67
+ "json_structured": true,
68
+ "text_normalization": true
69
+ }
70
+ }
71
+ }