Update README.md
Browse files
README.md
CHANGED
|
@@ -5,25 +5,32 @@ tags: []
|
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
| 7 |
|
| 8 |
-
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
## Model Details
|
| 13 |
|
| 14 |
### Model Description
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
|
| 18 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 19 |
|
| 20 |
-
- **Developed by:**
|
| 21 |
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
-
- **Model type:**
|
| 24 |
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
- **License:** [More Information Needed]
|
| 26 |
-
- **Finetuned from model [optional]:**
|
| 27 |
|
| 28 |
### Model Sources [optional]
|
| 29 |
|
|
@@ -39,55 +46,79 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
| 39 |
|
| 40 |
### Direct Use
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
### Downstream Use [optional]
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
### Out-of-Scope Use
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
| 57 |
|
| 58 |
## Bias, Risks, and Limitations
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
### Recommendations
|
| 65 |
|
| 66 |
-
|
|
|
|
|
|
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
## How to Get Started with the Model
|
| 71 |
|
| 72 |
Use the code below to get started with the model.
|
| 73 |
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
## Training Details
|
| 77 |
|
| 78 |
### Training Data
|
| 79 |
|
| 80 |
-
|
| 81 |
|
| 82 |
-
|
| 83 |
|
| 84 |
-
### Training Procedure
|
| 85 |
|
| 86 |
-
|
| 87 |
|
| 88 |
#### Preprocessing [optional]
|
|
|
|
| 89 |
|
| 90 |
-
|
| 91 |
|
| 92 |
|
| 93 |
#### Training Hyperparameters
|
|
@@ -102,27 +133,26 @@ Use the code below to get started with the model.
|
|
| 102 |
|
| 103 |
## Evaluation
|
| 104 |
|
| 105 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
-
|
| 107 |
### Testing Data, Factors & Metrics
|
| 108 |
|
| 109 |
#### Testing Data
|
| 110 |
|
| 111 |
-
|
| 112 |
|
| 113 |
-
[More Information Needed]
|
| 114 |
|
| 115 |
#### Factors
|
| 116 |
|
| 117 |
-
|
|
|
|
|
|
|
| 118 |
|
| 119 |
-
[More Information Needed]
|
| 120 |
|
| 121 |
#### Metrics
|
| 122 |
|
| 123 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
|
| 125 |
-
|
|
|
|
|
|
|
| 126 |
|
| 127 |
### Results
|
| 128 |
|
|
@@ -144,8 +174,8 @@ Use the code below to get started with the model.
|
|
| 144 |
|
| 145 |
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
|
| 147 |
-
- **Hardware Type:**
|
| 148 |
-
- **Hours used:**
|
| 149 |
- **Cloud Provider:** [More Information Needed]
|
| 150 |
- **Compute Region:** [More Information Needed]
|
| 151 |
- **Carbon Emitted:** [More Information Needed]
|
|
|
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
| 7 |
|
| 8 |
+
This model performs intelligent battery cell fault diagnosis using real-time voltage, temperature, and current inputs. It consists of a hybrid architecture:
|
| 9 |
|
| 10 |
+
A RandomForestClassifier predicts the cell fault status.
|
| 11 |
+
|
| 12 |
+
A GPT-2 model, fine-tuned on labeled diagnosis data, generates recommendations based on sensor readings.
|
| 13 |
+
|
| 14 |
+
The model is deployed with an TTS modules can be added to explain results via speech or video.
|
| 15 |
|
| 16 |
|
| 17 |
## Model Details
|
| 18 |
|
| 19 |
### Model Description
|
| 20 |
|
| 21 |
+
A RandomForestClassifier for predicting battery cell status based on voltage, temperature, and current.
|
| 22 |
+
|
| 23 |
+
A fine-tuned GPT-2 language model to generate recommendation text tailored to the predicted fault.
|
| 24 |
|
| 25 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 26 |
|
| 27 |
+
- **Developed by:** Bhoomika Patil (IEEE Member, AESS Vice Chair 2024, PES Chair 2025)
|
| 28 |
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
+
- **Model type:** Classification + Text Generation
|
| 31 |
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
- **License:** [More Information Needed]
|
| 33 |
+
- **Finetuned from model [optional]:** gpt2 by Hugging Face
|
| 34 |
|
| 35 |
### Model Sources [optional]
|
| 36 |
|
|
|
|
| 46 |
|
| 47 |
### Direct Use
|
| 48 |
|
| 49 |
+
This model is intended to be used in:
|
| 50 |
|
| 51 |
+
Embedded EV BMS fault diagnosis
|
| 52 |
+
|
| 53 |
+
Lab-scale battery monitoring systems
|
| 54 |
+
|
| 55 |
+
Educational/academic demonstration kits
|
| 56 |
|
| 57 |
### Downstream Use [optional]
|
| 58 |
|
| 59 |
+
Can be used for:
|
| 60 |
|
| 61 |
+
Real-time IoT fault detection dashboards
|
| 62 |
+
|
| 63 |
+
Voice-based battery recommendation bots
|
| 64 |
+
|
| 65 |
+
Integration into EV charging systems
|
| 66 |
|
| 67 |
### Out-of-Scope Use
|
| 68 |
|
| 69 |
+
Not suitable for grid-level battery systems without retraining
|
| 70 |
|
| 71 |
+
Not a substitute for hardware-based protections
|
| 72 |
|
| 73 |
## Bias, Risks, and Limitations
|
| 74 |
|
| 75 |
+
May give inaccurate predictions outside of the trained sensor range
|
| 76 |
|
| 77 |
+
GPT-2 recommendations may not always be technically feasible or safe
|
| 78 |
+
|
| 79 |
+
Does not consider time-series or historical trends
|
| 80 |
+
|
| 81 |
+
Limited robustness for deployment in production-grade EVs
|
| 82 |
|
| 83 |
### Recommendations
|
| 84 |
|
| 85 |
+
Validate GPT-generated text before acting
|
| 86 |
+
|
| 87 |
+
Add confidence thresholds for alerts
|
| 88 |
|
| 89 |
+
Complement with hardware-level fault detection
|
| 90 |
|
| 91 |
## How to Get Started with the Model
|
| 92 |
|
| 93 |
Use the code below to get started with the model.
|
| 94 |
|
| 95 |
+
from transformers import GPT2Tokenizer, GPT2LMHeadModel
|
| 96 |
+
|
| 97 |
+
tokenizer = GPT2Tokenizer.from_pretrained("your-username/gpt2-cell-diagnosis-system")
|
| 98 |
+
model = GPT2LMHeadModel.from_pretrained("your-username/gpt2-cell-diagnosis-system")
|
| 99 |
+
|
| 100 |
+
prompt = "Voltage: 3.2V, Temperature: 48C, Current: 0.7A, Status: Overheat\nRecommendation:"
|
| 101 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 102 |
+
outputs = model.generate(**inputs, max_length=60)
|
| 103 |
+
print(tokenizer.decode(outputs[0]))
|
| 104 |
+
|
| 105 |
+
|
| 106 |
|
| 107 |
## Training Details
|
| 108 |
|
| 109 |
### Training Data
|
| 110 |
|
| 111 |
+
Custom Excel dataset (CellDD.xlsx)
|
| 112 |
|
| 113 |
+
Includes labeled examples of Voltage, Temperature, Current, Status, and textual recommendations
|
| 114 |
|
|
|
|
| 115 |
|
| 116 |
+
### Training Procedure
|
| 117 |
|
| 118 |
#### Preprocessing [optional]
|
| 119 |
+
Numerical columns normalized
|
| 120 |
|
| 121 |
+
Text cleaned and used to create prompts for GPT-2
|
| 122 |
|
| 123 |
|
| 124 |
#### Training Hyperparameters
|
|
|
|
| 133 |
|
| 134 |
## Evaluation
|
| 135 |
|
|
|
|
|
|
|
| 136 |
### Testing Data, Factors & Metrics
|
| 137 |
|
| 138 |
#### Testing Data
|
| 139 |
|
| 140 |
+
20% split from original dataset (not public)
|
| 141 |
|
|
|
|
| 142 |
|
| 143 |
#### Factors
|
| 144 |
|
| 145 |
+
Classifier Accuracy: ~96%
|
| 146 |
+
|
| 147 |
+
Manual evaluation of GPT-2 text output
|
| 148 |
|
|
|
|
| 149 |
|
| 150 |
#### Metrics
|
| 151 |
|
|
|
|
| 152 |
|
| 153 |
+
Classifier Accuracy: ~96%
|
| 154 |
+
|
| 155 |
+
Manual evaluation of GPT-2 text output
|
| 156 |
|
| 157 |
### Results
|
| 158 |
|
|
|
|
| 174 |
|
| 175 |
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 176 |
|
| 177 |
+
- **Hardware Type:** Google Colab (1x T4 GPU)
|
| 178 |
+
- **Hours used:** ~25 minutes
|
| 179 |
- **Cloud Provider:** [More Information Needed]
|
| 180 |
- **Compute Region:** [More Information Needed]
|
| 181 |
- **Carbon Emitted:** [More Information Needed]
|