
Figure analysis shows ∆L(t) stabilizing after
3,000 steps, suggesting training can stop to minimize
overtraining and optimize generalization. Using the
elbow method, training stops at t
∗
when the average
loss change over the last k steps is below ε (32).
1
k
k−1
∑
j=0
|∆L(t − j)| < ε (32)
Loss charts and evaluation metrics indicate that ε
is reached around 3000-4000 steps, suggesting min-
imal gains from further training. Using the elbow
method and metrics like Precision, Recall, and F1-
Score, the optimal stopping point was identified, en-
suring sufficient accuracy and stability.
4.1 Adaptivity of Intelligent Routing
Algorithm
Training consists of 30 episodes, each with 2,000
steps, where input data is randomly assigned, and
routing paths are refined using rewards based on con-
nection quality.
Routing performance is tested in 50 experiments
across 4 scenarios, each lasting 2,000 steps with ran-
dom topologies. Results are averaged to evaluate
routing and classification performance.
5 CONCLUSIONS AND FUTURE
WORK
The proposed model achieved 98.75% accuracy in
Alzheimer’s classification. Future work will focus on
incorporating attention mechanisms and testing on di-
verse datasets to improve generalization and robust-
ness.
REFERENCES
Abhishek, K., Jain, A., and Hamarneh, G. (2024).
Investigating the quality of dermamnist and fitz-
patrick17k dermatological image datasets. arXiv
preprint arXiv:2401.14497.
Afshar, P., Heidarian, S., Naderkhani, F., Oikonomou,
A., Plataniotis, K. N., and Mohammadi, A. (2020).
Covid-caps: A capsule network-based framework for
identification of covid-19 cases from x-ray images.
Pattern Recognition Letters.
Afshar, P., Mohammadi, A., and Plataniotis, K. N. (2018).
Brain tumor type classification via capsule networks.
In 2018 25th IEEE International Conference on Image
Processing (ICIP).
Bai, J., Sun, J., Wang, Z., Zhao, X., Wen, A., Zhang, C.,
and Zhang, J. (2024). An adaptive intelligent rout-
ing algorithm based on deep reinforcement learning.
Computer Communications, 216:195–208.
Bengio, E., Bacon, P.-L., Pineau, J., and Precup, D. (2015).
Conditional computation in neural networks for faster
models. arXiv preprint arXiv:1511.06297.
Bushara, A. R., Kumar, R. V., and Kumar, S. S. (2024).
Classification of benign and malignancy in lung can-
cer using capsule networks with dynamic routing al-
gorithm on computed tomography images. Journal of
Artificial Intelligence and Technology, 4(1):40–48.
He, K., Gkioxari, G., Doll
´
ar, P., and Girshick, R. (2017).
Mask r-cnn. In Proceedings of the IEEE International
Conference on Computer Vision, pages 2961–2969.
Jia, X., Li, J., Zhao, B., Guo, Y., and Huang, Y. (2022). Res-
capsnet: Residual capsule network for data classifica-
tion. Neural Processing Letters, 54(5):4229–4245.
Jiao, Z. and et al. (2019). Dynamic routing capsule net-
works for mild cognitive impairment diagnosis. In
Medical Image Computing and Computer Assisted In-
tervention – MICCAI 2019, volume 11767 of Lecture
Notes in Computer Science, pages 620–628. Springer,
Cham.
Leszek, J. (2012). Choroba alzheimera: obecny stan
wiedzy, perspektywy terapeutyczne. Polski Przeglad
Neurologiczny, 8(3):101–106.
Madhu, G., Govardhan, A., Srinivas, B. S., Sahoo, K. S.,
Jhanjhi, N. Z., Vardhan, K. S., and Rohit, B. (2021).
Imperative dynamic routing between capsules net-
work for malaria classification. CMC-Computers Ma-
terials & Continua, 68(1):903–919.
Pawan, S. J., Sharma, R., Reddy, H., Vani, M., and Rajan,
J. (2023). Widecaps: A wide attention-based capsule
network for image classification. Machine Vision and
Applications, 34(4):52.
Sabour, S., Frosst, N., and Hinton, G. E. (2017). Dynamic
routing between capsules. arXiv:1710.09829.
Sadeghnezhad, E. and Salem, S. (2024). Inceptioncapsule:
Inception-resnet and capsulenet with self-attention
for medical image classification. arXiv preprint
arXiv:2402.02274.
Valadarsky, A., Schapira, M., Shahaf, D., and Tamar, A.
(2017). A machine learning approach to routing.
arXiv preprint arXiv:1708.03074.
Xi, Y., Li, M., Zhou, F., Tang, X., Li, Z., and Tian, J. (2023).
Se-inception-resnet model with focal loss for trans-
mission line fault classification under class imbalance.
IEEE Transactions on Instrumentation and Measure-
ment.
Yadav, S. and Dhage, S. (2024). Te-capsnet: Time effi-
cient capsule network for automatic disease classifi-
cation from medical images. Multimedia Tools and
Applications, 83:49389–49418.
Leveraging Deep Q-Network Agents with Dynamic Routing Mechanisms in Convolutional Neural Networks for Enhanced and Reliable
Classification of Alzheimer’s Disease from MRI Scans
1179