# Image Classification

<figure><img src="/files/VyvF93yZDdsktomYj514" alt=""><figcaption><p><a href="https://platform.raga.ai/">Try the RagaAI Platform!</a></p></figcaption></figure>

The Image Classification Project on the sample workspace is an example of how the RagaAI Testing Platform can help with the following tasks -&#x20;

* Data Quality Checks before training a new model
* Model Quality Checks to identify performance gaps and perform regression analysis

The RagaAI Testing Platform is designed to add science to the art of detection AI issues, performing root cause analysis and providing actionable recommendations. This is done as an automated suite of tests on the platform.&#x20;

An overview of all tests for the sample project is available here -&#x20;

1\. **Failure Mode Analysis**

<figure><img src="/files/rkYIs2ovzxgJNQVL6tY8" alt=""><figcaption><p>Automatic identification of edge cases where the model performs poorly</p></figcaption></figure>

**Goal** - Identify specific image scenarios where the Image Classification model underperforms, despite overall acceptable performance metrics.

**Methodology** - RagaAI automatically detections scenarios within the dataset and brings any model vulnerabilities on such scenarios to the fore

**Insight** - In this case, we see that the model struggles with specific types of images in a cluster. Analysing the images within the failing cluster can reveal common characteristics that lead to misclassification. This helps understand the model's limitations and potential biases.

**Impact -** Early identification of failure modes allows for targeted interventions, such as collecting more data for the under-represented cluster to improve model training or fine-tuning the model with specific emphasis on the failing cluster.

For more details, please refer to the detailed [Failure Mode analysis documentation.](/ragaai-prism/test-inventory/image-classification/failure-mode-analysis.md)

2. **Labelling Quality Test**

<figure><img src="/files/A3u0BszZU2CqlsNVCHVc" alt=""><figcaption><p>Automatic detection of inconsistent labelling</p></figcaption></figure>

**Goal** - Identify mislabelled images within the dataset to ensure high-quality training data for our image classification model.

**Methodology** - RagaAI analyses each labelled image and calculates a "Mistake Score" based on various factors and sets a threshold on the user-defined parameters.

**Insight** - In this case, we see that by analysing the flagged images, you can discover specific inconsistencies in the labelling, such as misidentified objects or missing labels

**Impact** - This would allow us to reduce the risk of model bias based on inconsistent or inaccurate labelling and save time and resources by identifying and correcting labelling errors before deploying the model.

\
For more details, please refer to the detailed [Labelling Quality Test documentation.](/ragaai-prism/test-inventory/image-classification/labelling-quality-test.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.raga.ai/ragaai-prism/sandbox-guide/image-classification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
