In this study, we propose the use of a convolutional neural network (CNN) (2+1) D-based model for the non-invasive detection of iron deficiency anemia using smartphones, addressing the need for accessible and efficient diagnostic methods. We have collected fingertip images from 909 young people, creating a robust dataset to train and validate the model through machine learning (ML), providing us with both spatial and temporal information. Our approach stands out for its simplicity and potential to be implemented in diverse contexts, which facilitates early and accurate diagnosis of anemia. The results show remarkable performance indices in the validation set: an accuracy of 0.9840, a precision of 0.9830, a sensitivity (recall) of 0.9840, an F1-Score of 0.9835, and an AUC ROC of 0.9878, demonstrating the model's high ability to effectively classify anemic states. These findings validate the efficacy of the model to significantly improve the detection of iron deficiency anemia, promoting the use of mobile technologies and machine learning for more accessible and efficient diagnosis globally. This breakthrough marks a significant step towards improving access and efficiency in health diagnostics through smartphone technology and machine learning, opening new avenues for the effective management of anemia and other health conditions.