---
title: "Discussion on \"I developed an API and Machine learning model for tea grades classification\" | Hashnode"
description: "Discussion on \"I developed an API and Machine learning model for tea grades classification\". Tea is a beloved beverage enjoyed worldwide, with countless varieties boasting unique flavors and aromas. However, grading tea leaves plays a crucial role in determining their quality and market value. Traditionally, this process relies on the expert..."
url: "https://hashnode.com/posts/i-developed-an-api-and-machine-learning-model-for-tea-grades-classification/6617ada5e84c4f901f5695b3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I developed an API and Machine learning model for tea grades classification](https://sumalsurendra.hashnode.dev/i-developed-an-api-and-machine-learning-model-for-tea-grades-classification?utm_source=hashnode&utm_medium=feed)

Tea is a beloved beverage enjoyed worldwide, with countless varieties boasting unique flavors and aromas. However, grading tea leaves plays a crucial role in determining their quality and market value. Traditionally, this process relies on the expert...

Apr 11, 2024 · 5 min read · sumalsurendra.hashnode.dev  
Read the article

-   [#fastapi](https://hashnode.com/tag/fastapi)
-   [#yolov8](https://hashnode.com/tag/yolov8)
-   [#python3](https://hashnode.com/tag/python3)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#data-science](https://hashnode.com/tag/data-science)

## Written by

[Sumal Surendra](https://hashnode.com/@sssurendra99)

@sssurendra99 · Colombo, Sri Lanka

  
[View profile](https://hashnode.com/@sssurendra99)

Learning DevOp & SRE from Scratch. Mastering what I've learned. One Hack at a Time.

I'm Sumal Surendra, an Information Systems undergrad from Sabaragamuwa University of Sri Lanka on a mission to decode the mysteries of the digital world. Think code whisperer, data detective, and all-around tech enthusiast!

## Responses 4

Markdown supported · ⌘↵ to post

[Finfly Markets](https://hashnode.com/@finflymarket)

[Sep 24, 2025](https://hashnode.com/posts/i-developed-an-api-and-machine-learning-model-for-tea-grades-classification/6617ada5e84c4f901f5695b3/comment/68d3c32d4a2b8494651f9eac)

Great work, Sumal! 👏 I really enjoyed how you built the API + machine learning pipeline for tea grades classification — the step-by-step breakdown from dataset creation to deployment is very educational.

One thought: for further improving the model’s robustness, you might experiment with data augmentation across lighting conditions or domain adaptation techniques (to handle images from different tea gardens). Also, integrating attention modules or transformer-based encoders could help focus more on leaf texture features.

By the way, for those interested in exploring trading tech and algorithmic models, you might also check out FinFly Markets ([finflymarkets.com](https://finflymarkets.com/) ) — they have interesting insights on building scalable model infrastructures and backends in production environments.

Thanks for sharing your code, insights, and learnings — enjoyed reading it!

[Isuranga Senavirathne](https://hashnode.com/@Isuranga)

[Jan 19, 2025](https://hashnode.com/posts/i-developed-an-api-and-machine-learning-model-for-tea-grades-classification/6617ada5e84c4f901f5695b3/comment/678cf7e6fcebf07e0e8aaa82)

This is great work. How about the accuracy values you got ?

[Binudi Nuhansi Bandara](https://hashnode.com/@BinudiBandara)

[Apr 13, 2024](https://hashnode.com/posts/i-developed-an-api-and-machine-learning-model-for-tea-grades-classification/6617ada5e84c4f901f5695b3/comment/661a85c3199937b01e08e4e8)

That's great work ❤️

[Qyrus AI](https://hashnode.com/@QyrusAI)

[Apr 12, 2024](https://hashnode.com/posts/i-developed-an-api-and-machine-learning-model-for-tea-grades-classification/6617ada5e84c4f901f5695b3/comment/66194397bc58bca335d1fa27)

This is a really cool, innovative project! I'm huge fan of tea AND AI/ML. It's a marriage between some of my favorite things. Great work, great read!

[Sumal Surendra](https://hashnode.com/@sssurendra99)

[Apr 13, 2024](https://hashnode.com/posts/i-developed-an-api-and-machine-learning-model-for-tea-grades-classification/6617ada5e84c4f901f5695b3/comment/66194397bc58bca335d1fa27#reply-661a8340c3e7c516e887f15b)

Thank you so much for your feedback.
