AP6621 commited on
Commit
c4562ef
·
verified ·
1 Parent(s): d4a2de0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +59 -3
README.md CHANGED
@@ -1,3 +1,59 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+ Got it. I’ll prepare a README file for the `teeth_alignment_detection_modal` Keras model hosted on Hugging Face. This README will include details such as model architecture, purpose, usage instructions, input/output formats, and licensing if available.
5
+
6
+ I’ll let you know as soon as it’s ready.
7
+
8
+ # Teeth Alignment Detection Model
9
+
10
+ **Model Overview:** This Keras model is designed to analyze dental images and classify teeth alignment (e.g., whether teeth are properly aligned or not). It can assist in dental diagnostics and orthodontic assessments by flagging alignment issues from intraoral photographs or X-rays. Clinical tooth photographs are essential for orthodontic diagnosis and treatment planning ([Application of deep learning artificial intelligence technique to the classification of clinical orthodontic photos | BMC Oral Health | Full Text](https://bmcoralhealth.biomedcentral.com/articles/10.1186/s12903-022-02466-x#:~:text=Taking%20facial%20and%20intraoral%20clinical,photos%20according%20to%20their%20orientations)), and convolutional neural networks (CNNs) like this one have been successfully applied to similar orthodontic imaging tasks ([Application of deep learning artificial intelligence technique to the classification of clinical orthodontic photos | BMC Oral Health | Full Text](https://bmcoralhealth.biomedcentral.com/articles/10.1186/s12903-022-02466-x#:~:text=Taking%20facial%20and%20intraoral%20clinical,photos%20according%20to%20their%20orientations)). In practice, this model could be used as a screening tool in orthodontics or general dentistry to quickly flag cases of malocclusion or crowding for further evaluation by a specialist.
11
+
12
+ **Model Architecture:** The exact layer details are not documented, but the model is implemented as a convolutional neural network (CNN) in Keras. Such dental image classifiers typically consist of multiple convolutional layers (often with large initial filters, e.g. 7×7, followed by smaller filters), pooling or subsampling layers, and residual connections ([
13
+ Artificial Intelligence for Classifying and Archiving Orthodontic Images - PMC
14
+ ](https://pmc.ncbi.nlm.nih.gov/articles/PMC8813223/#:~:text=Our%20framework%20is%20composed%20of,features%20were%20obtained%20based%20on)). The network likely ends with one or more fully connected (dense) layers producing the alignment classification. (For example, CNN architectures for orthodontic image tasks use stacks of Conv2D + ReLU + pooling layers, sometimes with residual shortcuts, as seen in related work ([
15
+ Artificial Intelligence for Classifying and Archiving Orthodontic Images - PMC
16
+ ](https://pmc.ncbi.nlm.nih.gov/articles/PMC8813223/#:~:text=Our%20framework%20is%20composed%20of,features%20were%20obtained%20based%20on)).) The expected input shape is an image tensor (e.g., height × width × 3 for RGB photos). Inference would take a preprocessed image of the patient’s teeth (resized to the model’s input size, e.g. 224×224 or similar) and output a probability or class label indicating “aligned” vs “misaligned” teeth.
17
+
18
+ **Training Data:** No public dataset details are provided. In general, a teeth alignment classifier would require a collection of labeled dental images (such as intraoral photos or panoramic X-rays) annotated for alignment. For example, intraoral photos are routinely used in orthodontic diagnosis and have been labeled by experts for CNN training in research ([Application of deep learning artificial intelligence technique to the classification of clinical orthodontic photos | BMC Oral Health | Full Text](https://bmcoralhealth.biomedcentral.com/articles/10.1186/s12903-022-02466-x#:~:text=Taking%20facial%20and%20intraoral%20clinical,photos%20according%20to%20their%20orientations)). We assume this model was trained on a dataset of dental images (photos or scans) with labels for proper vs. improper alignment. (If using this model, ensure that your input images are similar in style and quality to its training data.)
19
+
20
+ **Usage Instructions:** Below is a Python example showing how to load and use the model for inference. You will need the `tensorflow` and `huggingface_hub` libraries.
21
+
22
+ ```python
23
+ from tensorflow import keras
24
+ from huggingface_hub import hf_hub_download
25
+
26
+ # Download the model file from Hugging Face Hub
27
+ model_path = hf_hub_download(repo_id="AP6621/teeth_alignment_detection_modal", filename="final_teeth_model.keras")
28
+ model = keras.models.load_model(model_path)
29
+
30
+ # Load and preprocess an image of teeth
31
+ img = keras.preprocessing.image.load_img("path/to/teeth_image.jpg", target_size=(224, 224))
32
+ x = keras.preprocessing.image.img_to_array(img) / 255.0 # normalize pixel values
33
+ x = x.reshape((1,) + x.shape) # add batch dimension
34
+
35
+ # Run the model on the image
36
+ preds = model.predict(x)
37
+ print("Raw model output:", preds)
38
+ # For a binary classifier, you might interpret preds[0][0] > 0.5 as "misaligned", for example.
39
+ ```
40
+
41
+ *Expected input:* a color image of teeth (e.g. JPG or PNG), resized to the model’s input resolution (the original training size, e.g. 224×224). Preprocessing may include scaling pixel values (as shown).
42
+ *Output:* A 1D array of probabilities or logits. For a two-class model, `preds[0]` might contain two values (e.g. `[p_aligned, p_misaligned]`). Interpret the higher probability as the predicted class (for example, `preds[0].argmax()` yields the predicted label).
43
+
44
+ **Performance and Evaluation:** No official accuracy or F1 metrics are provided for this specific model. For context, CNN-based models in orthodontic imaging tasks often achieve very high accuracy. For example, a published CNN classifier of orthodontic clinical photos achieved about 98% accuracy on its test set ([Application of deep learning artificial intelligence technique to the classification of clinical orthodontic photos | BMC Oral Health | Full Text](https://bmcoralhealth.biomedcentral.com/articles/10.1186/s12903-022-02466-x#:~:text=Results)). However, real-world performance can vary: model accuracy depends on the similarity of new images to the training set. Users should validate this model’s performance on their own data before relying on its predictions in practice.
45
+
46
+ **Limitations:** As with any AI model, this should be used as a supplementary tool, not a definitive diagnostic. The model’s performance will depend on the quality and representativeness of its training data. In one study, models trained only on specialist-reviewed orthodontic images did not generalize well to different datasets ([
47
+ Artificial Intelligence for Classifying and Archiving Orthodontic Images - PMC
48
+ ](https://pmc.ncbi.nlm.nih.gov/articles/PMC8813223/#:~:text=Nevertheless%2C%20our%20study%20presents%20several,of%20the%20lack%20of%20dentists)). Similarly, if the training images lack diversity (age, demographics, imaging conditions), the model may perform poorly on out-of-distribution cases. Manual labeling by dental experts was required in related work ([
49
+ Artificial Intelligence for Classifying and Archiving Orthodontic Images - PMC
50
+ ](https://pmc.ncbi.nlm.nih.gov/articles/PMC8813223/#:~:text=Nevertheless%2C%20our%20study%20presents%20several,of%20the%20lack%20of%20dentists)), so if the training set has noisy or biased labels, predictions may be unreliable. In summary, only use this model on similar types of dental images to those it was trained on, and always review its output with expert judgment. This model is *not* a replacement for a professional dental evaluation and has not been clinically validated.
51
+
52
+ **License:** This model is released under the **MIT License** ([AP6621/teeth_alignment_detection_modal · Hugging Face](https://huggingface.co/AP6621/teeth_alignment_detection_modal#:~:text=Keras)), meaning it is open source and free to use under the terms of the MIT license.
53
+
54
+ **References:** While this model’s own documentation is sparse, related orthodontic imaging studies provide context: intraoral clinical photos are key to diagnosis ([Application of deep learning artificial intelligence technique to the classification of clinical orthodontic photos | BMC Oral Health | Full Text](https://bmcoralhealth.biomedcentral.com/articles/10.1186/s12903-022-02466-x#:~:text=Taking%20facial%20and%20intraoral%20clinical,photos%20according%20to%20their%20orientations)), and CNNs with convolutional and residual layers are commonly used for tooth image analysis ([
55
+ Artificial Intelligence for Classifying and Archiving Orthodontic Images - PMC
56
+ ](https://pmc.ncbi.nlm.nih.gov/articles/PMC8813223/#:~:text=Our%20framework%20is%20composed%20of,features%20were%20obtained%20based%20on)) ([
57
+ Artificial Intelligence for Classifying and Archiving Orthodontic Images - PMC
58
+ ](https://pmc.ncbi.nlm.nih.gov/articles/PMC8813223/#:~:text=Nevertheless%2C%20our%20study%20presents%20several,of%20the%20lack%20of%20dentists)). For example, one CNN-based study reported ~98% accuracy classifying orthodontic photographs ([Application of deep learning artificial intelligence technique to the classification of clinical orthodontic photos | BMC Oral Health | Full Text](https://bmcoralhealth.biomedcentral.com/articles/10.1186/s12903-022-02466-x#:~:text=Results)).
59
+