teeth-detection-api / knowledge_base /clinical_rules.json
mahmoudelsheemy's picture
Deploy FastAPI teeth detection API
3a1ed33
{
"diseases": {
"Calculus": {
"base_info": {
"severity": "moderate",
"urgency": "medium",
"requires_dentist": true,
"category": "mineral_deposit"
},
"treatment_options": {
"primary": [
"Professional scaling and polishing",
"Deep cleaning procedure"
],
"alternative": ["Antibacterial mouthwash", "Professional prophylaxis"],
"contraindications": ["Bleeding disorders", "Recent oral surgery"]
},
"home_advice": {
"essential": [
"Brush twice daily with tartar-control toothpaste",
"Floss daily to prevent buildup between teeth",
"Use electric toothbrush for better plaque removal"
],
"recommended": [
"Use water flosser for hard-to-reach areas",
"Salt water rinses twice weekly"
],
"avoid": [
"Tobacco products",
"Excessive coffee/tea (can stain calculus)"
]
},
"build_up_recommendation": {
"applicable": false,
"reason": "Calculus requires removal, not build-up",
"alternative": "Professional cleaning"
},
"follow_up": "Professional cleaning every 6 months or sooner if prone to buildup"
},
"Dental Caries": {
"base_info": {
"severity": "high",
"urgency": "high",
"requires_dentist": true,
"category": "tooth_decay"
},
"treatment_options": {
"primary": ["Dental filling", "Root canal if advanced"],
"alternative": [
"Silver diamine fluoride",
"Hall technique (for children)"
],
"contraindications": ["Severe pulpitis", "Vertical root fracture"]
},
"home_advice": {
"essential": [
"Avoid sugary foods and drinks between meals",
"Use fluoride toothpaste with 1350-1500ppm fluoride",
"Brush for 2 minutes twice daily"
],
"recommended": [
"Use fluoride mouthwash before bed",
"Chew sugar-free gum after meals"
],
"avoid": [
"Sticky candies and dried fruits",
"Carbonated drinks",
"Frequent snacking"
]
},
"build_up_recommendation": {
"applicable": true,
"conditions": {
"early_caries": {
"confidence_threshold": 0.3,
"materials": ["Composite resin", "Glass ionomer"],
"reason": "Early caries can be treated with conservative build-up"
},
"immature_tooth": {
"confidence_threshold": 0.2,
"materials": ["Composite resin", "Component"],
"reason": "Immature teeth benefit from build-up to protect pulp"
},
"erupting_tooth": {
"confidence_threshold": 0.15,
"materials": ["Glass ionomer", "Composite"],
"reason": "Erupting teeth require build-up to guide proper development"
}
},
"contraindications": ["Deep caries near pulp", "Active infection"]
},
"follow_up": "Return in 6 months or sooner if pain develops"
},
"Hypodontia": {
"base_info": {
"severity": "structural",
"urgency": "medium",
"requires_dentist": true,
"category": "developmental"
},
"treatment_options": {
"primary": [
"Orthodontic evaluation",
"Space management",
"Build-up restoration for developing teeth"
],
"alternative": [
"Dental implants (adults)",
"Resin-bonded bridge",
"Removable partial denture"
],
"multidisciplinary": ["Orthodontist", "Pedodontist", "Prosthodontist"]
},
"home_advice": {
"essential": [
"Maintain excellent oral hygiene around missing areas",
"Regular dental checkups every 6 months",
"Keep adjacent teeth clean to prevent shifting"
],
"recommended": [
"Consider orthodontic consultation",
"Use fluoridated toothpaste for remaining teeth"
],
"age_specific": {
"child_6_12": [
"Space maintainers may be needed",
"Monitor eruption of permanent teeth",
"Avoid hard foods on adjacent teeth"
],
"teen_13_18": [
"Discuss orthodontic options",
"Consider temporary build-up",
"Plan for future implants"
],
"adult_19_plus": [
"Evaluate for implants or bridges",
"Consider bone grafting if implant planned",
"Regular assessment of adjacent teeth"
]
}
},
"build_up_recommendation": {
"applicable": true,
"priority": "high_for_developing",
"age_ranges": [
{
"min": 6,
"max": 12,
"priority": "essential",
"reason": "Primary/transitional dentition needs build-up for space maintenance",
"materials": ["Composite build-up", "Space maintainer"]
},
{
"min": 13,
"max": 18,
"priority": "recommended",
"reason": "Build-up recommended until growth complete",
"materials": ["Composite", "Temporary build-up"]
},
{
"min": 19,
"max": 100,
"priority": "consider",
"reason": "Build-up temporary solution, fixed restoration preferred",
"materials": ["Composite", "Temporary until definitive treatment"]
}
],
"clinical_notes": "For erupting/developing teeth, build-up is ALWAYS preferred over fixed restoration"
},
"follow_up": "Every 6 months with radiographic monitoring of adjacent teeth"
},
"Gingivitis": {
"base_info": {
"severity": "mild",
"urgency": "low",
"requires_dentist": false,
"category": "inflammatory"
},
"treatment_options": {
"primary": [
"Improved oral hygiene",
"Professional cleaning if persistent"
],
"alternative": [
"Antiseptic mouthwash",
"Chlorhexidine gel (short term)"
],
"contraindications": ["Allergy to mouthwash ingredients"]
},
"home_advice": {
"essential": [
"Brush twice daily with soft-bristled toothbrush",
"Floss daily - this is crucial for gum health",
"Use gentle circular motions, not aggressive scrubbing"
],
"recommended": [
"Use antiseptic mouthwash (alcohol-free preferred)",
"Salt water rinses (1 tsp salt in warm water) twice daily"
],
"avoid": [
"Hard toothbrushes",
"Aggressive brushing that causes bleeding",
"Tobacco products"
]
},
"build_up_recommendation": {
"applicable": false,
"reason": "Gingivitis affects gums, not tooth structure"
},
"follow_up": "Improvement expected in 2 weeks; see dentist if persists"
},
"Tooth Discoloration": {
"base_info": {
"severity": "mild",
"urgency": "low",
"requires_dentist": false,
"category": "aesthetic"
},
"treatment_options": {
"primary": ["Professional cleaning", "Whitening treatments"],
"alternative": [
"Composite veneers",
"Porcelain veneers",
"Microabrasion"
],
"contraindications": ["Pregnancy", "Severe sensitivity", "Caries"]
},
"home_advice": {
"essential": [
"Reduce consumption of staining foods (coffee, tea, red wine)",
"Rinse with water after consuming staining substances",
"Use whitening toothpaste with mild abrasives"
],
"recommended": [
"Consider professional whitening for better results",
"Maintain excellent oral hygiene"
],
"avoid": [
"Smoking and tobacco products",
"Excessive acidic foods that erode enamel",
"Overuse of whitening products"
]
},
"build_up_recommendation": {
"applicable": true,
"conditions": {
"severe_discoloration": {
"confidence_threshold": 0.6,
"materials": ["Composite veneer", "Porcelain veneer"],
"reason": "Severe discoloration may require build-up/veneer"
},
"structural_damage": {
"confidence_threshold": 0.4,
"materials": ["Composite build-up"],
"reason": "Build-up can restore both structure and color"
}
}
},
"follow_up": "As desired for cosmetic improvement"
},
"Mouth Ulcer": {
"base_info": {
"severity": "mild",
"urgency": "low",
"requires_dentist": false,
"category": "soft_tissue"
},
"treatment_options": {
"primary": ["Topical analgesics", "Avoid irritants"],
"alternative": [
"Prescription mouthwash",
"Corticosteroid gel (severe)"
],
"contraindications": ["Immunosuppression", "Infection"]
},
"home_advice": {
"essential": [
"Salt water rinses (1 tsp salt in warm water) 3-4 times daily",
"Avoid spicy, acidic, or rough foods",
"Use soft toothbrush carefully around ulcer"
],
"recommended": [
"Apply topical gel for pain",
"Rinse with alcohol-free mouthwash"
],
"avoid": [
"Hot foods and beverages",
"Citrus fruits and juices",
"Crunchy foods (chips, nuts)"
]
},
"build_up_recommendation": {
"applicable": false,
"reason": "Ulcers are soft tissue condition"
},
"follow_up": "Should heal within 7-14 days; see dentist if persists beyond 3 weeks"
}
},
"general_rules": {
"confidence_weighting": {
"high": 0.8,
"medium": 0.5,
"low": 0.2
},
"treatment_urgency": {
"high": "See dentist within 24-48 hours",
"medium": "Schedule appointment within 2 weeks",
"low": "Monitor and schedule routine checkup"
},
"build_up_indications": [
"Developing dentition (age < 18)",
"Partially erupted teeth",
"Minimal to moderate tooth structure loss",
"Temporary restoration needed",
"Economic considerations"
],
"fixed_indications": [
"Fully developed dentition (age ≥ 18)",
"Extensive tooth structure loss",
"Complete root formation",
"Long-term definitive solution needed",
"Aesthetic demands in anterior teeth"
]
}
}