Machine Learning Zoomcamp: Free ML Engineering course. Register here!

DataTalks.Club

A Summary Of The Kaggle Kitchenware Classification Competition: Find Out Who Won!

A deep dive into the Kaggle Competition on Kitchenware Classification, focusing on the winning approach.

21 Feb 2023 by Angelica Lo Duca

An overview of the Kitchenware Classification competition on Kaggle

The Kaggle competition with the theme: Kitchenware Classification has just ended. Below is a summary of how it unfolded, some statistics, and the approach followed by the winners.

What we’ll cover

  • Overview of the competition
  • How the dataset was built
  • The starter notebooks
  • The solution of the winner
  • Making the solutions production-ready

Overview of the Kitchenware Classification Competition

A Kaggle competition is an online competition where teams compete to develop the most accurate model based on certain data. Teams usually comprise data scientists, statisticians, and machine learning engineers who work together to develop a model that can accurately predict and classify data. The team with the best model wins the competition.

The Kaggle competition on Kitchenware Classification started on December 5th, 2022, and ended on February 1st, 2023. Participants were tasked with correctly identifying the type of kitchenware in a given image. There were six categories: cups, glasses, plates, spoons, forks, and knives.

How the dataset was built

The dataset contains 9337 images. The following figure shows some sample images:

Some sample images were extracted from the dataset provided by the competition.

The dataset was generated using Toloka, a scalable AI and Machine Learning development platform. Toloka covers the entire Machine Learning life cycle, starting from data collection and ending with model monitoring.

Toloka’s offerings include a crowdsourcing platform that enables companies to collect and label data using human insight. The annotators, called Tolokers,will complete simple tasks for money, such as labeling images or transcribing audio.

The Kitchenware dataset defined the following rules for image collection in Toloka:

  • The picture should be yours. It’s best to use your phone and take pictures of your own kitchenware.
  • It’s strictly not allowed to download pictures from the internet. It cannot be images from websites like Ikea or similar.
  • There should be only one item on the picture, not multiple
  • The item should be placed in the center of the picture
  • The item should be visible
  • If you have a set with many similar items (e.g., 6 forks, 6 spoons, etc.), don’t take pictures of all six. Just take a picture of one spoon, fork, and so on.
  • Don’t upload duplicates of your previous pictures. Each picture you submit should be unique
  • Don’t upload multiple pictures of the same item. One is enough
  • Screenshots are not allowed. It has to be your picture

Checkthe related documentation and workshop for more details on how the dataset was collected.

The Starter Notebooks

The competition provided the competitors with two basic notebooks. The first notebook trains an xception model, and the second, developed by Harpreet Sahota, uses SuperGradients. Competitors were asked to start from one of these two notebooks and then improve it to achieve a higher score.

Both notebooks are available in Saturn Cloud, an enterprise-level cloud computing platform enabling users to manage workloads, process data, and run applications in the cloud. Check this repo for instructions on running the notebooks in Saturn Cloud.

Statistics

The following table resumes some statistics on the Kitchenware Competition:

Statistic Value
Number of participants 115 teams
Average number of people per team Most people did the competition individually
Lowest score 0.05445
Highest score 0.99145

The Prize

The winner of the Kitchenware Competition won the NVIDIA GeForce RTX 3080 Ti shown below:

The NVIDIA GeForce RTX 3080 Ti given as a prize to the winner.

The competition also gave other prizes, including $3000 in AWS credits.

The Winner

The competition’s winner is Olufemi Victor Tolulope with the Kitchenware Classification 3rd Place Notebook. Olufemi Victor improved the solution proposed by MIWOJC, who used the fastai Python library to train the model.

The MIWOJC’s Solution

MIWOJC executed the following steps to solve the kitchenware classification problem:

  1. Import load data as ImageDataLoaders

  2. Create the learner model. Use the vision_learner() function provided by fastai. This line of code creates a vision learner object using fastai. MIWOJC used a convnext_nano model, which is an efficient and accurate model.

  3. Use the lr_find() method to find the best learning rate

  4. Use the fine_tune() method to fine-tune the model. The method takes two arguments: the number of training epochs and the learning rate.

The Winner’s Solution

Olufemi Victor Tolulope started from the MIWOJC’s solution and improved it by modifying the following elements:

  1. Augment the dataset size using the albumentations library. This library provides you with various augmentations, including geometrical transformations, color adjustments, and various other augmentations.

  2. Use the convnext_xlarge_384_in22ft1k model instead of convnext_nano. While the first model is an advanced convolutional neural network designed for larger image datasets, the second one is designed for small datasets. The convnext_xlarge_384_in22ft1k model is, therefore more powerful but requires more resources and computing power, while the convnext_nano model is lightweight and quick to train.

  3. Set the training floating point precision to 16 through the to_fp16() method. This setting provides a more accurate result by allowing the model to make calculations with higher precision. This is especially important when dealing with large datasets or complex models with many layers, as it can help to reduce numerical errors and improve the overall accuracy of the results.

  4. Use test time augmentation (TTA) to improve the model accuracy through the tta() method.

The winner also provided a solution ready for production by saving the export() method.

Making it Production-Ready

Building a well-performing model is only the first step of a project life cycle. When the model is ready, you should move it to production, that is, making the model usable for predictions in a real environment. To make the competitors aware of this challenge, the Kitchenware Competition did not conclude with building a model. There was a second part of the competition, named make it production ready, which invited the competitors to build a GitHub repository for the project and, optionally, a blog post.

Evaluation

A jury composed of two experts decided on the winner in the following categories:

  • The most production-ready ML solution (the overall winner of the contest).
  • The best GitHub repo with a solution.
  • The smallest model size (measured by the size of the models used in the final solution).

The Winners

The proposed solutions included some modern practices and frameworks for production: Docker containerization, serverless inference, optimized inference engines, package managers, and additional UI like Streamlit and Telegram.

The winning solution was proposed by Martin Uribe, who also got the nomination for “The best GitHub repo with a solution”. Martin’s solution: https://github.com/clamytoe/kitchenware_classifier.

Bhaskar Sarma won the prize for the smallest model size. Bhaskar’s solution: https://github.com/bhasarma/kitchenware-classification-project.

Acknowledgments

We thank our sponsors, Toloka, SaturnCloud, and NVIDIA. We couldn’t have done it without their support, and we’re grateful for their help in making education more accessible and fun for our community.

We also want to thank Rustem Feyzkhanov for donating $2000 in AWS Credits.

And, most importantly, we thank our amazing community of participants. This competition would not have been the same without you. Your passion and dedication are truly inspiring.

Thank you all for making this competition a success!

Summary

The Kaggle Competition on Kitchenware Classification was a great learning experience for many data scientists and computer vision enthusiasts. It provided an opportunity to apply the latest state-of-the-art algorithms, learn from others’ approaches and gain valuable insights into kitchenware classification problems.

Congratulations are due to all participants who worked hard throughout the competition and congratulations in particular to the winner of this amazing event!

Subscribe to our weekly newsletter and join our Slack.
We'll keep you informed about our events, articles, courses, and everything else happening in the Club.


DataTalks.Club. Hosted on GitHub Pages. We use cookies.