ai-cfia / nachet-frontend

Frontend application for seed classification of images acquired from digital microscopes
MIT License
2 stars 2 forks source link

Feature Update: Displaying Top 5 Classification Results per Seed in Nachet Frontend #100

Closed CFIALeronB closed 1 month ago

CFIALeronB commented 2 months ago

Summary

Enhance the Nachet Frontend to display the top 5 classification results for each seed, based on the new topResult attribute being passed from the Nachet Backend. This feature aims to allow users to view alternative classifications for each detected seed, aiding in identifying misclassifications and improving AI model training.

Background

The current classification functionality in Nachet Frontend visualizes seeds within images using rectangle boxes, with the backend providing details such as the box dimensions, top label prediction, confidence score, and overlap information. The introduction of a topResult attribute by the backend will now include the top 5 classification results for each seed.

Proposed Functionality

To effectively leverage the topResult data, we propose introducing an interactive component that displays the top 5 classification results for a selected seed. Two design approaches are under consideration:

  1. Seed Selection Pop-up: Clicking on a specific seed box triggers a pop-up to display the top 5 classification results.
  2. Results Table Interaction: Clicking on an entry in the seed classification results table opens a pop-up with the top 5 results for the selected seed.

Both methods aim to provide detailed insight into the classification process, offering users the ability to flag misclassifications directly. For more details on the design aspect, refer to the discussion with Maxence here.

Changes to Configuration

Possible Extension

Consider the feasibility of allowing users to directly escalate issues from the classification pop-up, possibly automating the creation of a GitHub issue for further investigation.

Implementation Considerations

Test Cases Checklist

rngadam commented 2 months ago

I'm just not sure of the property name "topResult". surely there's a more suitable data science terminology.

candidates?

at least topResults pluralized? or top5? to make it shorter.

MaxenceGui commented 2 months ago

The plural is good, I also like candidates. From what I understand from the discussion with Amir and Noureddine, a model could eventually send back n results and not just 1 or 5. So I would avoid top5 to keep flexibility for the property.

We can also use topN as used in this article comparing top1 vs topN accuracy score: https://medium.com/nanonets/evaluating-models-using-the-top-n-accuracy-metrics-c0355b36f91b

rngadam commented 2 months ago

topN seems good.

"Top N accuracy — Top N accuracy is when you measure how often your predicted class falls in the top N values of your softmax distribution."