Medical MNIST MLOPs
This project embodies a resilient pipeline harmonizing continuous training and deployment principles, guided by MLOps methodologies. Leveraging a Streamlit frontend, users seamlessly upload medical MN
Last updated
This project embodies a resilient pipeline harmonizing continuous training and deployment principles, guided by MLOps methodologies. Leveraging a Streamlit frontend, users seamlessly upload medical MN
Last updated
User Interaction:
The pipeline begins with a Streamlit frontend, providing users with an intuitive interface to upload medical MNIST images for classification.
Model Inference:
Upon image upload, the pipeline fetches the latest trained model from the MLFlow model registry. This model is then used to make predictions on the uploaded images.
Error Correction Mechanism:
In case the prediction is incorrect, users have the option to provide the correct class label. If provided, the image along with the corrected label is stored in AWS S3 for future reference.
Airflow DAG:
Scheduled to run weekly, an Airflow Directed Acyclic Graph (DAG) automates the process of fetching new data from AWS S3 and retrieving the latest model from the MLFlow model registry.
Model Retraining:
Once the new data and model are fetched, the pipeline initiates the process of retraining the model on the updated dataset. This ensures that the model remains up-to-date and capable of making accurate predictions.
Model Registry Update:
Upon successful retraining, the newly trained model is uploaded to the MLFlow model registry, replacing the previous version. This ensures that the latest model is readily available for inference in subsequent interactions with the Streamlit frontend.
Continuous Improvement:
The iterative nature of the pipeline ensures continuous improvement in model performance over time as it adapts to new data and updates.
Streamlit Frontend: Users can upload medical MNIST images for classification.
MLFlow Integration: Models are fetched from the MLFlow model registry to make predictions.
Correction Mechanism: If the prediction is incorrect, users can provide the correct class label, and the image with the corrected class label will be uploaded to AWS S3.
Airflow DAG: Scheduled to run weekly, Airflow DAG fetches new data from AWS and the latest model from the MLFlow model registry, retrains the model on new data, and uploads the new model to the MLFlow registry.
AWS S3 Integration: Images with corrected labels are stored in AWS S3 for future reference and analysis.