Update README.md
Browse files
README.md
CHANGED
|
@@ -1,199 +1,167 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
-
#
|
| 7 |
|
| 8 |
-
|
| 9 |
|
|
|
|
| 10 |
|
|
|
|
| 11 |
|
| 12 |
-
##
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
-
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
- **License:** [More Information Needed]
|
| 26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
|
| 28 |
-
###
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 39 |
-
|
| 40 |
-
### Direct Use
|
| 41 |
-
|
| 42 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 43 |
-
|
| 44 |
-
[More Information Needed]
|
| 45 |
-
|
| 46 |
-
### Downstream Use [optional]
|
| 47 |
-
|
| 48 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 49 |
-
|
| 50 |
-
[More Information Needed]
|
| 51 |
-
|
| 52 |
-
### Out-of-Scope Use
|
| 53 |
-
|
| 54 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 55 |
-
|
| 56 |
-
[More Information Needed]
|
| 57 |
-
|
| 58 |
-
## Bias, Risks, and Limitations
|
| 59 |
-
|
| 60 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 61 |
-
|
| 62 |
-
[More Information Needed]
|
| 63 |
-
|
| 64 |
-
### Recommendations
|
| 65 |
-
|
| 66 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 67 |
-
|
| 68 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 69 |
-
|
| 70 |
-
## How to Get Started with the Model
|
| 71 |
-
|
| 72 |
-
Use the code below to get started with the model.
|
| 73 |
-
|
| 74 |
-
[More Information Needed]
|
| 75 |
|
| 76 |
## Training Details
|
| 77 |
|
| 78 |
### Training Data
|
| 79 |
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
### Training Procedure
|
| 85 |
-
|
| 86 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 87 |
-
|
| 88 |
-
#### Preprocessing [optional]
|
| 89 |
-
|
| 90 |
-
[More Information Needed]
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
#### Training Hyperparameters
|
| 94 |
-
|
| 95 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 96 |
-
|
| 97 |
-
#### Speeds, Sizes, Times [optional]
|
| 98 |
-
|
| 99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
-
|
| 101 |
-
[More Information Needed]
|
| 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 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
-
|
| 113 |
-
[More Information Needed]
|
| 114 |
-
|
| 115 |
-
#### Factors
|
| 116 |
-
|
| 117 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 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 |
-
[More Information Needed]
|
| 126 |
-
|
| 127 |
-
### Results
|
| 128 |
-
|
| 129 |
-
[More Information Needed]
|
| 130 |
-
|
| 131 |
-
#### Summary
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
## Model Examination [optional]
|
| 136 |
-
|
| 137 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
-
|
| 139 |
-
[More Information Needed]
|
| 140 |
-
|
| 141 |
-
## Environmental Impact
|
| 142 |
-
|
| 143 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 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 |
-
|
| 148 |
-
- **Hours used:** [More Information Needed]
|
| 149 |
-
- **Cloud Provider:** [More Information Needed]
|
| 150 |
-
- **Compute Region:** [More Information Needed]
|
| 151 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
|
| 153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
|
| 155 |
-
###
|
| 156 |
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
|
| 159 |
-
###
|
| 160 |
|
| 161 |
-
|
|
|
|
| 162 |
|
| 163 |
-
##
|
| 164 |
|
| 165 |
-
|
|
|
|
| 166 |
|
| 167 |
-
#
|
|
|
|
|
|
|
| 168 |
|
| 169 |
-
|
|
|
|
| 170 |
|
| 171 |
-
#
|
|
|
|
|
|
|
| 172 |
|
| 173 |
-
|
|
|
|
|
|
|
| 174 |
|
| 175 |
-
|
| 176 |
|
| 177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
|
| 179 |
-
|
| 180 |
|
| 181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
|
| 183 |
-
##
|
| 184 |
|
| 185 |
-
|
|
|
|
|
|
|
|
|
|
| 186 |
|
| 187 |
-
|
| 188 |
|
| 189 |
-
|
|
|
|
|
|
|
| 190 |
|
| 191 |
-
|
| 192 |
|
| 193 |
-
|
| 194 |
|
| 195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
-
##
|
| 198 |
|
| 199 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- custom
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
metrics:
|
| 8 |
+
- f1
|
| 9 |
+
- precision
|
| 10 |
+
- recall
|
| 11 |
+
base_model: batteryonline/batterybert-cased
|
| 12 |
+
pipeline_tag: token-classification
|
| 13 |
+
tags:
|
| 14 |
+
- ner
|
| 15 |
+
- electrocatalyst
|
| 16 |
+
- materials-science
|
| 17 |
+
- chemistry
|
| 18 |
+
- battery
|
| 19 |
+
- fuel-cell
|
| 20 |
+
- durability
|
| 21 |
---
|
| 22 |
|
| 23 |
+
# BatteryBERT Electrocatalyst NER v4
|
| 24 |
|
| 25 |
+
Fine-tuned Named Entity Recognition model for extracting durability-related entities from electrocatalyst research literature.
|
| 26 |
|
| 27 |
+
## Model Description
|
| 28 |
|
| 29 |
+
This model is fine-tuned from [BatteryBERT](https://huggingface.co/batteryonline/batterybert-cased) for domain-specific NER in electrocatalyst and fuel cell research. It identifies key experimental parameters related to catalyst durability, degradation, and electrochemical performance.
|
| 30 |
|
| 31 |
+
### Supported Entity Types
|
| 32 |
|
| 33 |
+
| Entity | Description | Example |
|
| 34 |
+
|--------|-------------|---------|
|
| 35 |
+
| **MATERIAL** | Catalyst materials and compounds | IrO₂, Pt/C, NiFe-LDH |
|
| 36 |
+
| **CONDITION** | Experimental conditions (voltage, temperature) | 1.6 V vs RHE, 80°C |
|
| 37 |
+
| **METRIC** | Performance measurements | 10 mA/cm², 45 mV/dec |
|
| 38 |
+
| **PROCESS** | Experimental techniques | electrodeposition, annealing, CV |
|
| 39 |
+
| **ELECTROLYTE** | Electrolyte solutions | 0.5 M H₂SO₄, 1 M KOH |
|
| 40 |
+
| **DURATION** | Time periods | 100 h, 5000 cycles |
|
| 41 |
|
| 42 |
+
## Performance
|
| 43 |
|
| 44 |
+
### Overall Metrics
|
| 45 |
|
| 46 |
+
| Metric | Score |
|
| 47 |
+
|--------|-------|
|
| 48 |
+
| **F1** | **83.5%** |
|
| 49 |
+
| Precision | 78.7% |
|
| 50 |
+
| Recall | 88.9% |
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
### Per-Entity Performance
|
| 53 |
|
| 54 |
+
| Entity | Precision | Recall | F1 | Support |
|
| 55 |
+
|--------|-----------|--------|-----|---------|
|
| 56 |
+
| CONDITION | 0.75 | 0.91 | 0.82 | 175 |
|
| 57 |
+
| DURATION | 0.79 | 0.89 | 0.84 | 133 |
|
| 58 |
+
| ELECTROLYTE | 0.79 | 0.94 | 0.86 | 94 |
|
| 59 |
+
| MATERIAL | 0.83 | 0.80 | 0.81 | 90 |
|
| 60 |
+
| METRIC | 0.75 | 0.87 | 0.81 | 135 |
|
| 61 |
+
| PROCESS | 0.86 | 0.90 | 0.88 | 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
## Training Details
|
| 64 |
|
| 65 |
### Training Data
|
| 66 |
|
| 67 |
+
- **Sentences**: 4,985
|
| 68 |
+
- **Total Entities**: 8,381
|
| 69 |
+
- **Source**: 245 open-access electrocatalyst research papers from MDPI, Nature Communications, Frontiers, and PubMed Central
|
| 70 |
+
- **Focus**: Catalyst durability, degradation mechanisms, accelerated stress testing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
+
### Entity Distribution in Training Data
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
+
| Entity | Count | Percentage |
|
| 75 |
+
|--------|-------|------------|
|
| 76 |
+
| CONDITION | 1,848 | 22.0% |
|
| 77 |
+
| METRIC | 1,480 | 17.7% |
|
| 78 |
+
| PROCESS | 1,405 | 16.8% |
|
| 79 |
+
| DURATION | 1,193 | 14.2% |
|
| 80 |
+
| ELECTROLYTE | 1,127 | 13.4% |
|
| 81 |
+
| MATERIAL | 895 | 10.7% |
|
| 82 |
|
| 83 |
+
### Training Hyperparameters
|
| 84 |
|
| 85 |
+
- **Base Model**: batteryonline/batterybert-cased
|
| 86 |
+
- **Learning Rate**: 2e-5
|
| 87 |
+
- **Batch Size**: 16
|
| 88 |
+
- **Epochs**: 3
|
| 89 |
+
- **Max Sequence Length**: 128
|
| 90 |
+
- **Optimizer**: AdamW
|
| 91 |
+
- **Training Regime**: fp16 mixed precision
|
| 92 |
|
| 93 |
+
### Training Infrastructure
|
| 94 |
|
| 95 |
+
- **Hardware**: NVIDIA T4 GPU (Google Colab)
|
| 96 |
+
- **Training Time**: ~15 minutes
|
| 97 |
|
| 98 |
+
## Usage
|
| 99 |
|
| 100 |
+
```python
|
| 101 |
+
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
|
| 102 |
|
| 103 |
+
# Load model
|
| 104 |
+
tokenizer = AutoTokenizer.from_pretrained("Dmjdxb/batterybert-electrocatalyst-ner-v4")
|
| 105 |
+
model = AutoModelForTokenClassification.from_pretrained("Dmjdxb/batterybert-electrocatalyst-ner-v4")
|
| 106 |
|
| 107 |
+
# Create pipeline
|
| 108 |
+
ner_pipeline = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")
|
| 109 |
|
| 110 |
+
# Extract entities
|
| 111 |
+
text = "IrO2 showed 10 mA/cm² at 1.6 V vs RHE in 0.5 M H2SO4 after 100 h."
|
| 112 |
+
entities = ner_pipeline(text)
|
| 113 |
|
| 114 |
+
for entity in entities:
|
| 115 |
+
print(f"{entity['entity_group']}: {entity['word']} ({entity['score']:.2%})")
|
| 116 |
+
```
|
| 117 |
|
| 118 |
+
### Expected Output
|
| 119 |
|
| 120 |
+
```
|
| 121 |
+
MATERIAL: IrO2 (98%)
|
| 122 |
+
METRIC: 10 mA/cm² (98%)
|
| 123 |
+
METRIC: 1.6 V vs RHE (99%)
|
| 124 |
+
ELECTROLYTE: 0.5 M H2SO4 (99%)
|
| 125 |
+
DURATION: 100 h (87%)
|
| 126 |
+
```
|
| 127 |
|
| 128 |
+
## Version History
|
| 129 |
|
| 130 |
+
| Version | F1 Score | Training Data | Notes |
|
| 131 |
+
|---------|----------|---------------|-------|
|
| 132 |
+
| v2 | 41% | ~500 sentences | Initial fine-tuning |
|
| 133 |
+
| v3 | 68% | 1,824 sentences | Improved training data |
|
| 134 |
+
| **v4** | **83.5%** | 4,985 sentences | Expanded corpus, cleaned labels |
|
| 135 |
|
| 136 |
+
## Intended Use
|
| 137 |
|
| 138 |
+
This model is designed for:
|
| 139 |
+
- Extracting experimental parameters from electrocatalyst research papers
|
| 140 |
+
- Building structured databases of catalyst durability data
|
| 141 |
+
- Automating literature review for materials science research
|
| 142 |
|
| 143 |
+
## Limitations
|
| 144 |
|
| 145 |
+
- Trained primarily on English-language academic papers
|
| 146 |
+
- May not generalize well to patents or informal text
|
| 147 |
+
- SUPPORT and FAILURE_MODE entities have limited training examples
|
| 148 |
|
| 149 |
+
## Citation
|
| 150 |
|
| 151 |
+
If you use this model, please cite:
|
| 152 |
|
| 153 |
+
```bibtex
|
| 154 |
+
@misc{batterybert-electrocatalyst-ner-v4,
|
| 155 |
+
author = {DurabilityGraph-AI},
|
| 156 |
+
title = {BatteryBERT Electrocatalyst NER v4},
|
| 157 |
+
year = {2025},
|
| 158 |
+
publisher = {Hugging Face},
|
| 159 |
+
url = {https://huggingface.co/Dmjdxb/batterybert-electrocatalyst-ner-v4}
|
| 160 |
+
}
|
| 161 |
+
```
|
| 162 |
|
| 163 |
+
## Acknowledgments
|
| 164 |
|
| 165 |
+
- Base model: [BatteryBERT](https://huggingface.co/batteryonline/batterybert-cased) by Battery Online
|
| 166 |
+
- Training data sourced from open-access publications
|
| 167 |
+
|