margretmeng1020/regulatory-capacity-classifier
08
Regulatory Capacity Classifier
A BERT-based multi-label classifier for analyzing regulatory capacities in collaborative learning dialogues.
Model Description
Model Performance
Overall Metrics (Validation Set, Threshold=0.5)
Per-Class Performance
Cross-Validation Results (5-Fold)
Intended Use
This model is designed for analyzing collaborative learning dialogues to identify regulatory capacity categories:
Label Taxonomy
Training Data
Label Distribution (Session 1)
Usage
from transformers import BertTokenizer, BertForSequenceClassification
import torch
# Load model and tokenizer
model_name = "your-username/regulatory-capacity-classifier"
tokenizer = BertTokenizer.from_pretrained(model_name)
model = BertForSequenceClassification.from_pretrained(model_name)
# Define labels
labels = [
'Cog-Evaluate', 'Cog-Explain', 'Cog-Reason',
'Meta-Monitor', 'Meta-Orient', 'Meta-Plan', 'Meta-Reflect',
'SE-Express', 'SE-Regulate',
'TE-Act', 'TE-Report'
]
# Inference function
def predict(text, threshold=0.5):
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
outputs = model(**inputs)
probs = torch.sigmoid(outputs.logits)
predictions = (probs > threshold).int()
predicted_labels = [labels[i] for i in range(len(labels)) if predictions[0][i] == 1]
confidence = {labels[i]: float(probs[0][i]) for i in range(len(labels))}
return predicted_labels, confidence
# Example usage
text = "I think we should evaluate our approach before moving forward."
predicted, confidence = predict(text)
print(f"Predicted labels: {predicted}")
print(f"Confidence scores: {confidence}")Training Procedure
Hyperparameters
Class Weights (Computed)
Weights computed using formula: pos_weight = (total_samples - positive_samples) / positive_samples
Hardware
- Device: Apple Silicon (MPS) / CUDA GPU
- Training Time: ~10-15 minutes per epoch
- Total FLOPs: 6.82 × 10^14
Limitations
- Domain Specificity: Trained on collaborative learning dialogues; may not generalize to other dialogue types
- Class Imbalance: Rare labels (Meta-Reflect, TE-Act) have lower prediction accuracy
- Language: English only
- Context Length: Maximum 128 tokens; longer texts are truncated
- Session Shift: Performance may vary across different learning sessions due to distribution shift
Known Confusion Patterns
Ethical Considerations
- This model is intended for educational research purposes
- Should not be used as the sole basis for evaluating student performance
- Human review is recommended for high-stakes applications
Citation
@misc{regulatory-classifier-2026,
title={Regulatory Capacity Classifier for Collaborative Learning Dialogues},
author={Anonymous},
year={2026},
publisher={Hugging Face},
url={https://huggingface.co/your-username/regulatory-capacity-classifier},
note={Multi-label BERT classifier trained on 2,702 annotated utterances}
}Model Card Authors
Generated on 2026-01-24
