SDDCS - abbreviation for ner-entities SYMPTOMS, DISEASES, DRUGS, CITIES, SUBWAY STATIONS (additionall it is able to predict GENDER and AGE entities)
This is a fine-tuned Named Entity Recognition (NER) model based on the google-bert/bert-base-multilingual-uncased model, designed to detect russian medical entities like diseases, drugs, symptoms, and more.
Model Details
Model Name: med_ner_SDDCS
Base Model: Babelscape/wikineural-multilingual-ner
SUBWAY (e.g., Шоссе Энтузиастов, Проспект Мира, ...)
DRUG (e.g., кардиомагнил, ципралекс)
AGE (e.g., ребенок, пожилой)
Model Performance
The fine-tuned model has achieved the following performance metrics:
precision recall f1-score support
AGE 0.99 1.00 0.99 706
CITY 0.99 1.00 1.00 2370
DISEASE 0.99 1.00 0.99 4841
DRUG 0.99 1.00 0.99 4546
GENDER 0.99 1.00 1.00 476
SPECIALITY 0.98 0.96 0.97 3673
SUBWAY 1.00 1.00 1.00 658
SYMPTOM 0.99 0.99 0.99 8022
micro avg 0.99 0.99 0.99 25292
macro avg 0.99 0.99 0.99 25292
weighted avg 0.99 0.99 0.99 25292
How to Use
You can use this model with the transformers library to perform Named Entity Recognition (NER) tasks in the russian medical domain, mainly for patient queries. Here's how to load and use the model:
Load the tokenizer and model
from transformers import pipeline
pipe = pipeline(task="ner", model='Mykes/med_ner_SDDCS', tokenizer='Mykes/med_ner_SDDCS', aggregation_strategy="max")
# I made the misspelled words on purpose
query = "У ребенка треога и норушения сна, потеря сознания, раньше ставили паническое расстройство. Подскажи хорошего психотервта в районе метро Октбрьской."
pipe(query.lower())