Adhithpasu commited on
Commit
a352395
Β·
verified Β·
1 Parent(s): 583ec1c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +123 -4
README.md CHANGED
@@ -1,8 +1,127 @@
1
  ---
2
- license: mit
3
  language:
4
  - en
5
- pipeline_tag: image-classification
6
  tags:
7
- - code
8
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  language:
3
  - en
4
+ license: apache-2.0
5
  tags:
6
+ - image-classification
7
+ - computer-vision
8
+ - digit-recognition
9
+ - mnist
10
+ - tensorflow
11
+ - keras
12
+ pipeline_tag: image-classification
13
+ metrics:
14
+ - accuracy
15
+ ---
16
+
17
+ # Digit Recognition Model
18
+
19
+ ## Model Summary
20
+
21
+ A convolutional neural network (CNN) trained to classify handwritten digits (0–9) from image input. Trained on the MNIST dataset, this model serves as a foundational computer vision project demonstrating image classification with deep learning.
22
+
23
+ ---
24
+
25
+ ## Model Details
26
+
27
+ - **Developed by:** Chandrasekar Adhithya Pasumarthi ([@Adhithpasu](https://github.com/Adhithpasu))
28
+ - **Affiliation:** Frisco ISD, TX | AI Club Leader | Class of 2027
29
+ - **Model type:** Convolutional Neural Network (CNN)
30
+ - **Framework:** TensorFlow / Keras
31
+ - **License:** Apache 2.0
32
+ - **Related work:** Part of a broader ML/CV portfolio including research on Vision Transformers vs CNNs β€” *JCSTS Vol. 8(2), January 2026*
33
+
34
+ ---
35
+
36
+ ## Intended Uses
37
+
38
+ **Direct use:**
39
+ - Handwritten digit classification (0–9)
40
+ - Educational demonstrations of CNNs and image classification pipelines
41
+ - Baseline model for comparing against more advanced architectures (ViT, ResNet, etc.)
42
+
43
+ **Out-of-scope use:**
44
+ - Multi-character or multi-digit recognition (e.g., full number strings)
45
+ - Non-MNIST-style digit distributions without fine-tuning
46
+
47
+ ---
48
+
49
+ ## Training Data
50
+
51
+ Trained on the **MNIST dataset** β€” 60,000 training images and 10,000 test images of 28Γ—28 grayscale handwritten digits.
52
+
53
+ ---
54
+
55
+ ## Evaluation
56
+
57
+ | Metric | Value |
58
+ |----------|-------|
59
+ | Accuracy | TBD |
60
+ | Loss | TBD |
61
+
62
+ *(Fill in with your actual test set results)*
63
+
64
+ ---
65
+
66
+ ## How to Use
67
+
68
+ ```python
69
+ import tensorflow as tf
70
+ import numpy as np
71
+ from PIL import Image
72
+
73
+ # Load model
74
+ model = tf.keras.models.load_model("digit_recognition_model")
75
+
76
+ # Load and preprocess a 28x28 grayscale image
77
+ img = Image.open("digit.png").convert("L").resize((28, 28))
78
+ img_array = np.array(img) / 255.0
79
+ img_array = img_array.reshape(1, 28, 28, 1)
80
+
81
+ # Predict
82
+ prediction = model.predict(img_array)
83
+ print(f"Predicted digit: {np.argmax(prediction)}")
84
+ ```
85
+
86
+ ---
87
+
88
+ ## Model Architecture
89
+
90
+ ```
91
+ Input (28x28x1)
92
+ β†’ Conv2D(32, 3x3, relu) β†’ MaxPooling2D
93
+ β†’ Conv2D(64, 3x3, relu) β†’ MaxPooling2D
94
+ β†’ Flatten
95
+ β†’ Dense(128, relu) β†’ Dropout(0.5)
96
+ β†’ Dense(10, softmax)
97
+ ```
98
+
99
+ *(Update to match your actual architecture)*
100
+
101
+ ---
102
+
103
+ ## Limitations & Bias
104
+
105
+ - Performs best on MNIST-style centered, normalized digits
106
+ - May degrade on real-world handwriting without preprocessing or fine-tuning
107
+ - Limited to single digit classification
108
+
109
+ ---
110
+
111
+ ## Citation
112
+
113
+ ```bibtex
114
+ @misc{pasumarthi2026digitrecognition,
115
+ author = {Chandrasekar Adhithya Pasumarthi},
116
+ title = {Digit Recognition Model},
117
+ year = {2026},
118
+ publisher = {Hugging Face},
119
+ url = {https://huggingface.co/Chandrasekar123/DigitRecognition}
120
+ }
121
+ ```
122
+
123
+ ---
124
+
125
+ ## Contact
126
+
127
+ - GitHub: [@Adhithpasu](https://github.com/Adhithpasu)