File size: 2,482 Bytes
bfe8627 5fa4907 bfe8627 5fa4907 bfe8627 5fa4907 0254fe9 5fa4907 |
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
---
language: en
tags:
- token-classification
- pii-detection
license: apache-2.0
datasets:
- custom_dataset
---
# Model Name
PII Detection Model Based on DistilBERT
## Model description
This model is a token classification model trained for detecting personally identifiable information (PII) entities such as names, addresses, dates of birth, credit card numbers, etc. The model is based on the DistilBERT architecture and has been fine-tuned on a custom dataset for PII detection.
## Intended use
The model is intended to be used for automatically identifying and extracting PII entities from text data. It can be incorporated into data processing pipelines for tasks such as data anonymization, redaction, compliance with privacy regulations, etc.
## Evaluation results
The model's performance was evaluated on a held-out validation set using the following metrics:
- Precision: 0.93
- Recall: 0.94
- F1 Score: 0.94
- Accuracy: 0.97
## Limitations and bias
- The model's performance may vary depending on the quality and diversity of the input data.
- It may exhibit biases present in the training data, such as overrepresentation or underrepresentation of certain demographic groups or types of PII.
- The model may struggle with detecting PII entities in noisy or poorly formatted text.
## Ethical considerations
- Care should be taken when deploying the model in production to ensure that it does not inadvertently expose sensitive information or violate individuals' privacy rights.
- Data used to train and evaluate the model should be handled with caution to avoid the risk of exposing PII.
- Regular monitoring and auditing of the model's predictions may be necessary to identify and mitigate any potential biases or errors.
## Training results
| Epoch | Training Loss | Validation Loss | Precision | Recall | F1 Score | Accuracy |
|-------|---------------|-----------------|-----------|--------|----------|----------|
| 1 | 0.093200 | 0.071345 | 0.905912 | 0.933906 | 0.919696 | 0.968861 |
| 2 | 0.067100 | 0.069066 | 0.912207 | 0.936481 | 0.924185 | 0.969175 |
| 3 | 0.060000 | 0.063845 | 0.930860 | 0.947639 | 0.939175 | 0.970566 |
| 4 | 0.043600 | 0.086811 | 0.925738 | 0.941631 | 0.933617 | 0.965496 |
| 5 | 0.025400 | 0.118688 | 0.931181 | 0.940773 | 0.935952 | 0.965092 |
| 6 | 0.012400 | 0.154431 | 0.931181 | 0.940773 | 0.935952 | 0.971463 |
|