Mindket

Rabbit Pain Identifier

Newversion 1 · updated

Overview

Screens a single rabbit photo for signs of pain by measuring 23 facial landmarks and labelling it Relaxed or Pain with a probability. A research prototype for rabbit owners, vets and students, not a diagnosis.

Rabbit Pain Identifier is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python 3.12 and pip
  • The packages listed in requirements.txt
  • The system packages listed in packages.txt, installed with apt-get
Runs in
  • A web browser, on the Space's page at Hugging Face with nothing to install
  • A local copy on Windows, macOS or Linux, which needs Python 3.12
Start with
pip install -U huggingface_hub
hf download sheildo/Rabbit-Pain-Identifier-Model --repo-type space --local-dir Rabbit-Pain-Identifier-Model
cd Rabbit-Pain-Identifier-Model

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

This Space looks at one photo of a rabbit and estimates whether the animal seems relaxed or in pain. It finds 23 landmarks on the face, corrects for head tilt, measures facial geometry and passes the numbers to a classifier. The result is a label with a probability score.

Who it suits

Rabbit owners, veterinary students and researchers who want to see how photo-based pain screening works.

IndustryWho uses itHow they use itExample
Veterinary researchAnimal welfare researchersStudy facial geometry as a pain signalRun a photo and read the probability score
Veterinary educationStudentsLearn how a screening model is builtOpen the sample photos and compare the labels
Pet careRabbit ownersGet a first, informal look at a photoUpload a clear front-facing photo of their rabbit
SoftwareML developersStudy a small landmark and KNN pipelineRead app.py next to the saved model files

If you need a diagnosis, ask a vet. The page says it is a research prototype and not a diagnosis.

Where to use it

It runs in two places.

  • A web browser, on the Space's page at Hugging Face with nothing to install
  • A local copy on Windows, macOS or Linux, which needs Python 3.12
Use caseWhoWhat they get back
Screen one photoOwners and vetsA Relaxed or Pain label with a probability
Try the samplesStudentsResults for the lop ear, pain and relaxed sample photos
Study the pipelineDevelopersThe model files and the app code in one repository

How to set it up

Using it online needs nothing. A local copy needs a few things.

  • Python 3.12 and pip
  • The packages listed in requirements.txt
  • The system packages listed in packages.txt, installed with apt-get
  1. Install the Hugging Face tools.
  2. Download the Space into a folder.
  3. Move into that folder.
  4. Install Gradio and the packages from requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download sheildo/Rabbit-Pain-Identifier-Model --repo-type space --local-dir Rabbit-Pain-Identifier-Model
cd Rabbit-Pain-Identifier-Model
pip install gradio==5.49.0
pip install -r requirements.txt
python app.py

How to use it

Open the page and add a single photo of a rabbit. The page returns a Relaxed or Pain label and the raw probability. For screening, where you want to catch every possible pain case, use a threshold of 0.4. For triage, where you want fewer false alarms, use 0.5.

Example

You upload a clear photo of a rabbit with upright ears. The page marks the facial landmarks and reports a label with a probability, which you compare against the 0.4 or 0.5 threshold that suits your goal.

For newcomers and experts

Start with one of the sample photos in the repository to see how a result looks. Remember that a photo is a rough guide and a clinician has the final say.

The pipeline uses a YOLOv8n-pose model to find 23 landmarks. It turns the landmarks around the point between the eyes until the eyes sit level, and it scales every measurement by how far apart the eyes are. For floppy-eared rabbits, an ear drop check turns off the ear features. A KNN classifier then predicts the label.

  1. YOLOv8n-pose finds 23 facial landmarks
  2. Landmarks are rotated to level the eyes
  3. Features are scaled by the eye distance
  4. A KNN classifier scores Relaxed or Pain

Good to know

The model was trained on one curated set of 620 images, and the author says outside validation is still pending.

Accuracy of the classifier on its checks
Test set0.895 accuracy
Validation set0.871 accuracy
5-fold cross-validation0.820 accuracy
Majority baseline0.659 accuracy
  • Each photo takes about 2 to 6 seconds on the free CPU tier
  • Results come from a research prototype and are not a veterinary diagnosis
  • License: MIT
  • Cost to run: none named
  • Data it reaches: the photos you upload
  • Not for: veterinary diagnosis, which belongs with a clinician and the Rabbit Grimace Scale

README and files

README

Rabbit Pain Identifier

Screens a single rabbit photo for signs of pain by measuring 23 facial landmarks and labelling it Relaxed or Pain with a probability. A research prototype for rabbit owners, vets and students, not a diagnosis.

Made by sheildo on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: This Space looks at one photo of a rabbit and estimates whether the animal seems relaxed or in pain. It finds 23 landmarks on the face, corrects for head tilt, measures facial geometry and passes the numbers to a classifier. The result is a label with a probability score.

Who it suits: Rabbit owners, veterinary students and researchers who want to see how photo-based pain screening works.

Industry | Who uses it | How they use it | Example
Veterinary research | Animal welfare researchers | Study facial geometry as a pain signal | Run a photo and read the probability score
Veterinary education | Students | Learn how a screening model is built | Open the sample photos and compare the labels
Pet care | Rabbit owners | Get a first, informal look at a photo | Upload a clear front-facing photo of their rabbit
Software | ML developers | Study a small landmark and KNN pipeline | Read app.py next to the saved model files

If you need a diagnosis, ask a vet. The page says it is a research prototype and not a diagnosis.

Where to use it: It runs in two places.

  • A web browser, on the Space's page at Hugging Face with nothing to install
  • A local copy on Windows, macOS or Linux, which needs Python 3.12
Use case | Who | What they get back
Screen one photo | Owners and vets | A Relaxed or Pain label with a probability
Try the samples | Students | Results for the lop ear, pain and relaxed sample photos
Study the pipeline | Developers | The model files and the app code in one repository

How to set it up: Using it online needs nothing. A local copy needs a few things.

  • Python 3.12 and pip
  • The packages listed in requirements.txt
  • The system packages listed in packages.txt, installed with apt-get
  1. Install the Hugging Face tools.
  2. Download the Space into a folder.
  3. Move into that folder.
  4. Install Gradio and the packages from requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download sheildo/Rabbit-Pain-Identifier-Model --repo-type space --local-dir Rabbit-Pain-Identifier-Model
cd Rabbit-Pain-Identifier-Model
pip install gradio==5.49.0
pip install -r requirements.txt
python app.py

How to use it: Open the page and add a single photo of a rabbit. The page returns a Relaxed or Pain label and the raw probability. For screening, where you want to catch every possible pain case, use a threshold of 0.4. For triage, where you want fewer false alarms, use 0.5.

Example: You upload a clear photo of a rabbit with upright ears. The page marks the facial landmarks and reports a label with a probability, which you compare against the 0.4 or 0.5 threshold that suits your goal.

For newcomers and experts: Start with one of the sample photos in the repository to see how a result looks. Remember that a photo is a rough guide and a clinician has the final say.

The pipeline uses a YOLOv8n-pose model to find 23 landmarks. It turns the landmarks around the point between the eyes until the eyes sit level, and it scales every measurement by how far apart the eyes are. For floppy-eared rabbits, an ear drop check turns off the ear features. A KNN classifier then predicts the label.

YOLOv8n-pose finds 23 facial landmarks
Landmarks are rotated to level the eyes
Features are scaled by the eye distance
A KNN classifier scores Relaxed or Pain

Good to know: The model was trained on one curated set of 620 images, and the author says outside validation is still pending.

Title: Accuracy of the classifier on its checks
Test set: 0.895 accuracy
Validation set: 0.871 accuracy
5-fold cross-validation: 0.820 accuracy
Majority baseline: 0.659 accuracy
  • Each photo takes about 2 to 6 seconds on the free CPU tier
  • Results come from a research prototype and are not a veterinary diagnosis
  • License: MIT
  • Cost to run: none named
  • Data it reaches: the photos you upload
  • Not for: veterinary diagnosis, which belongs with a clinician and the Rabbit Grimace Scale

On Hugging Face, 13 November 2026

  • Likes: 1
  • Built with: gradio
  • License: mit

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
Rabbit Pain Identifier This page1gradiomit
Open VLM LeaderboardShares gradio1,034gradioapache-2.0
Face SwapShares gradio808gradiocc-by-nc-sa-4.0
TTS Spaces ArenaShares gradio493gradiozlib
Depth Anything 3Shares gradio490gradiocc-by-nc-4.0
BLIPShares gradio431gradiobsd-3-clause
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

upscaler

uwg · Kit

Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…

New

Pixel Art XL

nerijs · Kit

A pixel art style add-on for Stable Diffusion XL that turns text prompts into pixel-style images, with an optional LCM LoRA for faster runs. For game makers, d…

New

VibeVoice-1.5B

microsoft · Kit

Turns written conversations into spoken audio with up to four speakers and about 90 minutes of speech, an open Microsoft text-to-speech model for research on p…

New

Similar in Research

See all in Research

EarthJev

dBenf · Kit

Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…

New

getting-over-it-rl-jax

zimmerk4 · Kit

Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…

New

ReFoCo

yuji-nozawa · Kit

Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…

New