Skip to main content

Deploying Deep Learning Models Using Serverless Computing for Diabetic Retinopathy Detection

  • Conference paper
  • First Online:
Computational Science and Its Applications – ICCSA 2023 Workshops (ICCSA 2023)

Abstract

The incidence of diabetes is increasing at an alarming rate across the world. As a result, cases of diabetic retinopathy (DR) are on the rise, a complication of diabetes that in its most severe form can lead to blindness. The lack of specialized labor for diagnosis, essential for the successful treatment of the disease, brings the need to study alternatives for diagnosis via computational means. Recent research on the use of Deep Learning for the detection of DR proves to be an important alternative to improve the use of specialized labor, by prioritizing the most serious cases. From this context, the work objective is to evaluate the performance and financial cost of alternatives based on serverless computing for the deployment of Deep Learning models for DR classification. Using the Amazon Sagemaker serverless inference service, optimizations and different configuration alternatives were considered, obtaining up to \(9.4\%\) of financial cost reduction and up to \(2.35{\times }\) performance boost. Finally, concepts such as containerization and infrastructure as code were used during the solution implementation, to allow the reproduction of deployment and experiments performed.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Link to GitHub: https://github.com/MatheusWoeffel/dr-detection-deploy.

  2. 2.

    Link to ECR: https://gallery.ecr.aws/g1e7s9u4/dr-detection-deploy.

References

  1. Baldini, I., et al.: Serverless computing: current trends and open problems. In: Chaudhary, S., Somani, G., Buyya, R. (eds.) Research Advances in Cloud Computing, pp. 1–20. Springer, Singapore (2017). https://doi.org/10.1007/978-981-10-5026-8_1

    Chapter  Google Scholar 

  2. Bhat, S.: Understanding the dockerfile. In: Bhat, S. (ed.) Practical Docker with Python: Build, Release, and Distribute Your Python App with Docker, pp. 61–103. Springer, Cham (2022). https://doi.org/10.1007/978-1-4842-7815-4_4

    Chapter  Google Scholar 

  3. Bidari, I., Chickerur, S., Kulkarni, A., Mahajan, A., Nikkam, A., Abhishek, T.: Deploying machine learning inference on diabetic retinopathy in binary and multi-class classification. In: 2021 International Conference on Industrial Electronics Research and Applications (ICIERA), pp. 1–6. IEEE (2021)

    Google Scholar 

  4. Dai, L., et al.: A deep learning system for detecting diabetic retinopathy across the disease spectrum. Nat. Commun. 12(1), 1–11 (2021)

    Article  Google Scholar 

  5. International Diabetes Federation: IDF Diabetes Atlas. International Diabetes Federation, Brussels, Belgium (2021)

    Google Scholar 

  6. Gardner, J.: The web server gateway interface (WSGI). In: The Definitive Guide to Pylons, pp. 369–388 (2009)

    Google Scholar 

  7. Ishakian, V., Muthusamy, V., Slominski, A.: Serving deep learning models in a serverless platform. In: 2018 IEEE International Conference on Cloud Engineering (IC2E), pp. 257–262. IEEE (2018)

    Google Scholar 

  8. Janardhanan, P.: Project repositories for machine learning with TensorFlow. Procedia Comput. Sci. 171, 188–196 (2020)

    Article  Google Scholar 

  9. Jegannathan, A.P., Saha, R., Addya, S.K.: A time series forecasting approach to minimize cold start time in cloud-serverless platform. In: 2022 IEEE International Black Sea Conference on Communications and Networking (BlackSeaCom), pp. 325–330. IEEE (2022)

    Google Scholar 

  10. Karthik, Maggie, Sohier Dane: Aptos 2019 blindness detection (2019). https://kaggle.com/competitions/aptos2019-blindness-detection

  11. Lathkar, M.: Getting started with FastAPI. In: Lathkar, M. (ed.) High-Performance Web Apps with FastAPI: The Asynchronous Web Framework Based on Modern Python, pp. 29–64. Springer, Cham (2023). https://doi.org/10.1007/978-1-4842-9178-8_2

    Chapter  Google Scholar 

  12. Liberty, E., et al.: Elastic machine learning algorithms in amazon SageMaker. In: Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data, pp. 731–737 (2020)

    Google Scholar 

  13. Liew, G., Michaelides, M., Bunce, C.: A comparison of the causes of blindness certifications in England and wales in working age adults (16–64 years), 1999–2000 with 2009–2010. BMJ Open 4(2), e004015 (2014)

    Article  Google Scholar 

  14. Moreira, F., Schaan, B., Schneiders, J., Reis, M., Serpa, M., Navaux, P.: Impacto da resolução na detecção de retinopatia diabética com uso de deep learning. In: Anais do XX Simpósio Brasileiro de Computação Aplicada à Saúde, Porto Alegre, RS, Brasil, pp. 494–499. SBC (2020). https://doi.org/10.5753/sbcas.2020.11546. https://sol.sbc.org.br/index.php/sbcas/article/view/11546

  15. Nedelcu, C.: Nginx HTTP Server. Packt Publishing (2013)

    Google Scholar 

  16. Pavate, A., Mistry, J., Palve, R., Gami, N.: Diabetic retinopathy detection-MobileNet binary classifier. Acta Sci. Med. Sci. 4(12), 86–91 (2020)

    Google Scholar 

  17. Pretty, D., Blackwell, B., et al.: H1DS: a new web-based data access system. Fusion Eng. Des. 89(5), 731–735 (2014)

    Article  Google Scholar 

  18. Shafiei, H., Khonsari, A., Mousavi, P.: Serverless computing: a survey of opportunities, challenges, and applications. ACM Comput. Surv. 54(11s), 1–32 (2022)

    Article  Google Scholar 

  19. Tu, Z., Li, M., Lin, J.: Pay-per-request deployment of neural network models using serverless architectures. In: Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Demonstrations, pp. 6–10 (2018)

    Google Scholar 

Download references

Acknowledgment

This study was partially supported by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior – Brasil (CAPES) – Finance Code 001, by Petrobras grant n.\(^\circ \) 2020/00182-5, by CNPq/MCTI/FNDCT - Universal 18/2021 under grants 406182/2021-3, by CIARS RITEs/FAPERGS project and by CI-IA FAPESP-MCTIC-CGI-BR project.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Matheus W. Camargo .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Camargo, M.W., Künas, C.A., Navaux, P.O.A. (2023). Deploying Deep Learning Models Using Serverless Computing for Diabetic Retinopathy Detection. In: Gervasi, O., et al. Computational Science and Its Applications – ICCSA 2023 Workshops. ICCSA 2023. Lecture Notes in Computer Science, vol 14109. Springer, Cham. https://doi.org/10.1007/978-3-031-37120-2_18

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-37120-2_18

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-37119-6

  • Online ISBN: 978-3-031-37120-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics