CoolFace
Modelpublic

XiaojingEllen/bert-finetuned-claim-detection

sourceHugging Faceapache-2.0updated 1h agoView on Hugging Face
2likes49downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

bert-finetuned-claim-detection

This model is a fine-tuned version of `bert-base-uncased` on the Claim Detection dataset (Nithiwat/claim-detection).

The goal of this model is to classify whether a given sentence is a check-worthy claim or not. It is trained as a binary text classification task using the Hugging Face Trainer API.

It achieves the following results on the evaluation set:

  • —Loss: 0.2241
  • —Accuracy: 0.9135
  • —F1: 0.9138

Intended uses & limitations

This model is designed for text-level claim detection, with potential applications in:

  • —✅ Insurance claim screening
  • —✅ Fraud detection and compliance document filtering
  • —✅ Fact-checking or misinformation detection
  • —✅ News or policy statement classification

Limitations

  • —Trained only on English-language data
  • —Detects checkworthiness, not truthfulness — the model identifies statements that can be fact-checked, not whether they are true
  • —May require fine-tuning for domain-specific text (e.g., legal, financial)

Training and evaluation data

Training and evaluation were conducted using the Hugging Face Trainer class with custom metric computation (Accuracy and F1-score). The model was fine-tuned on 11,000 training samples and evaluated on the full test split.

Example Usage

python
from transformers import pipeline

pipe = pipeline("text-classification", model="EllenLiu/bert-finetuned-claim-detection")

text = "The new policy will save the government $20 billion annually."
print(pipe(text))
# Output: [{'label': 'LABEL_1', 'score': 0.987}]

Interpretation:

  • —LABEL_1: Claim (check-worthy statement)
  • —LABEL_0: Non-claim (non-factual or subjective statement)

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 16
  • —evalbatchsize: 16
  • —seed: 42
  • —optimizer: Use OptimizerNames.ADAMWTORCHFUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_steps: 400
  • —num_epochs: 2

Training results

Training LossEpochStepValidation LossAccuracyF1
0.71930.0727500.66180.53660.6830
0.58190.14531000.44770.83600.8298
0.43760.21801500.36580.86950.8642
0.38470.29072000.31590.87900.8826
0.29570.36342500.30770.88000.8719
0.29320.43603000.26540.89470.8948
0.25770.50873500.29170.89360.8879
0.32730.58144000.26630.89360.8925
0.23560.65414500.24630.90120.9038
0.28330.72675000.26190.88960.8951
0.28530.79945500.22920.90670.9074
0.23860.87216000.23700.90690.9063
0.24110.94486500.24030.90940.9087
0.23771.01747000.22640.90750.9076
0.17731.09017500.22800.90730.9057
0.18271.16288000.22330.90570.9084
0.2051.23558500.21530.90870.9109
0.16421.30819000.23550.91090.9099
0.14461.38089500.23080.90750.9084
0.15881.453510000.21530.91150.9113
0.14131.526210500.22430.91270.9129
0.1721.598811000.22740.90820.9102
0.14191.671511500.22270.91120.9123
0.16691.744212000.22440.91410.9140
0.1381.816912500.22420.91450.9143
0.15181.889513000.22410.91340.9139
0.12461.962213500.22410.91350.9138

Framework versions

  • —Transformers 4.57.1
  • —Pytorch 2.8.0+cu126
  • —Datasets 4.0.0
  • —Tokenizers 0.22.1

Author

  • —💼 Focus: AI model fine-tuning, deployment, and financial systems integration
  • —🔗 LinkedIn | GitHub

Citation

bibtex
@misc{liu2025_claim_detection,
  title={BERT-base Uncased Fine-tuned for Claim Detection},
  author={Xiaojing Liu},
  year={2025},
  howpublished={\url{https://huggingface.co/XiaojingEllen/bert-finetuned-claim-detection}},
  note={Version 1.0}
}