Identify bird species with bird feeder camera

Run one NABirds model on the AI HAT+ so that Frigate NVR names each bird at a feeder camera and publishes one MQTT topic per species.

Works with

AI HAT+Product overviewonRaspberry Pi 5

How it works

Frigate NVR (network video recorder software) reads the camera stream over RTSP. The NPU on the AI HAT+ runs one detector model, nabirds-new-model.dxnn, on each frame; the Raspberry Pi 5 CPU runs Frigate’s video decoding, tracking and the MQTT topics. Each of the model’s 555 classes is a North American bird species or a variant of one (age, sex or plumage), so the detection label is the species name, such as “Red-bellied Woodpecker”.

  1. The camera stream reaches Frigate over RTSP.
  2. Frigate prepares each frame for the model’s 640 × 640 input and sends it to the NPU.
  3. The model returns boxes and class scores, and Frigate’s DEEPX detector decodes them.
  4. The class name becomes the object label. Frigate publishes one MQTT topic per species label to your broker, such as frigate/birdfeeder/Red-bellied Woodpecker.

Read the results on the MQTT topics, or in Frigate’s web interface at https://[PI_IP]:8971, where the box on the bird carries the species label. Everything runs in a container on your Raspberry Pi 5, on your own network, with no subscription; Frigate is open-source software.

Requirements

Finish these pages first, in order: the AI HAT+ quickstart, set up Frigate with the DEEPX NPU, then add an RTSP camera and MQTT broker.

Required

Hardware

  • Raspberry Pi 5Runs Frigate and the install script. The test used the 8 GB model.
  • AI HAT+ (DEEPX DX-M1M)Sixfab AI HAT+ for Raspberry Pi 5, the variant the test used. See the AI HAT+ specifications.
  • RTSP camera or streamAny RTSP source Frigate can read. The test used a bird video served over RTSP, detected at 1280 × 720; no live camera, mounting position or enclosure was tested.
  • MQTT brokerAny broker, such as Mosquitto, for the Verify step.

Software

  • Frigate with the DEEPX detectorAlready running, as set up in Frigate NVR on Raspberry Pi 5 with the DEEPX NPU.
  • git, curl and sha256sumFor the download and the checksum.
  • Docker, python3 with PyYAML, and ffprobeCalled by the install script; ffprobe is part of ffmpeg. The manual species list also needs PyYAML.
  • mosquitto_subFrom the Mosquitto clients, for the Verify step.
  • Model filesnabirds-new-model.dxnn from the project’s GitHub release; nabirds-labelmap.txt in the project’s model folder.

DEEPX support is not in a stable Frigate release

DEEPX support was merged into Frigate’s dev branch on September 21, 2026 (PR #24336). The latest stable release is v0.18.0 (September 12, 2026). This project uses the ghcr.io/blakeblackshear/frigate:af0ba19-standard-arm64 image, built from commit af0ba19 of the dev branch. Sixfab develops and maintains DEEPX support in Frigate; see Frigate’s DEEPX NPU detector docs.

Install

Both methods put the model and the labelmap in Frigate’s model cache, merge the model entry and the camera into your Frigate config.yaml and restart Frigate.

Verify

  1. Watch species topics

    Subscribe to the camera’s topics; replace birdfeeder if you named the camera differently:

    mosquitto_sub -h [BROKER_HOST] -t "frigate/birdfeeder/+" -v
    frigate/birdfeeder/Cattle Egret 0
    frigate/birdfeeder/all 2
    frigate/birdfeeder/Golden-fronted Woodpecker 0
    frigate/birdfeeder/all 1
    frigate/birdfeeder/Golden-fronted Woodpecker 1
    frigate/birdfeeder/all 2

    Each line is the topic, then the payload: the number of birds of that species in view now. Golden-fronted Woodpecker 1 means one, 0 means none, and frigate/birdfeeder/all counts all birds together. The names above come from the looped test video and are not correct identifications: see Labels for birds outside 555 classes.

  2. Check that Frigate answers

    The installer uses this call to confirm that Frigate is up:

    docker exec frigate curl -s http://localhost:5000/api/stats

    Frigate answers with its stats as JSON. The command runs inside the container: Frigate runs with host networking, so port 5000 is also reachable on the Raspberry Pi 5, with no Docker -p flag to withhold it.

  3. Check label in Debug view

    Open https://[PI_IP]:8971, choose the birdfeeder camera, open the Debug view and turn on Bounding Boxes. In the test, the box showed a Yellow Warbler label while the looped video played.

    Result: the box around the bird carries a species label.

Results

Tested on October 6, 2026: Raspberry Pi 5 (8 GB), Raspberry Pi OS Trixie, AI HAT+ (DEEPX DX-M1M), DX-RT v3.4.2 on the Raspberry Pi 5 and v3.4.0 in Frigate’s DEEPX detector, nabirds-new-model.dxnn, a recorded bird video looped over RTSP, and the MQTT broker on a separate host.

MetricValueHow it was measured
engine.run time per frame114.3 ms mean250 frames, one run. Nothing else on the NPU, Frigate’s cameras off, DX-RT v3.4.2
Model input and output640 × 640 in, raw 559 × 8400 outThe model’s shapes
Frigate at a 5 fps cameraFrigate skipped framesFrigate stats, same Raspberry Pi 5; the skipped share was not recorded
Top class score per frame0.56 average on a section with a yellow bird (labeled Yellow Warbler at 0.89); 0.13 on other sectionsThe looped test video
Accuracy, power, CPU loadNot measurednone

engine.run is the DX-RT (DEEPX runtime) call that runs the model once, so 114.3 ms is the model alone, not Frigate end to end. It is one reading, not a benchmark. For accelerator comparisons, see the Raspberry Pi 5 NPU benchmark on the Sixfab blog.

The score row shows that confidence depends on the scene; a score is not an accuracy rate. No accuracy figure was measured: the test video shows tropical birds, not a North American set, so it cannot show whether a label is right.

Details

Model

YOLO is a family of object detectors that read a frame once and return boxes with class labels; this model is built on Ultralytics YOLOv8. NABirds is the North American bird class list the model’s names come from. Frigate’s DEEPX detector decodes the model’s raw output, shaped (1, 559, 8400), with model_type: yolo-generic.

Species labels

Each species label is one line of the labelmap, the file that lists the model’s class names in the model’s class order. The project ships it as nabirds-labelmap.txt with 555 unique names. 288 of them carry a variant in parentheses, such as an age, sex or plumage, and each variant is its own class, so one species can appear under several labels.

Two edits were made to the original names. A / became - in 86 names, because / separates the levels of an MQTT topic: Female/juvenile becomes Female-juvenile. Three doubled spaces were collapsed.

Labels for birds outside 555 classes

A bird outside the 555 classes gets the closest class the model knows. The label is the nearest match, not a statement that the bird is that species. In the test video, which holds tropical birds, the model called green parrotlets “Tennessee Warbler”.

Detection rate

The camera block sets detect.fps: 3. The model’s time per frame alone would allow about 8.7 fps, but Frigate skipped frames with the camera at 5 fps; what limits Frigate was not measured. The figures are in Results.

Limitations

  • The model names only its 555 North American classes: see Labels for birds outside 555 classes.
  • The decode of the model’s raw output was tested only on the Frigate image named in Requirements, not on ghcr.io/blakeblackshear/frigate:stable.
  • Not tested: a live outdoor camera, other cameras, Home Assistant output, Home Assistant OS and the Frigate add-on. The setup ran Frigate in Docker.
  • Frigate chooses the DX-RT version its DEEPX detector uses. The tested build pins DX-RT v3.4.0; this project cannot change it.
  • If the DX-RT daemon restarts, restart the Frigate container too.

Privacy

An outdoor camera can record people and neighboring property, and local recording rules apply. Aim the camera at the feeder.

Detection runs on the Raspberry Pi 5. Frigate sends events, including species names, to your MQTT broker, so keep the broker on a network you control. Frigate can also publish snapshot images over MQTT if you turn that on. The example camera block turns recording off.

Frigate downloads the DX-RT Python bindings at first start, and again when a release pins a new version, so the first start needs internet access. Sixfab did not audit the outbound network connections.

Troubleshooting

Frigate publishes a species topic only while the birdfeeder camera is on and a bird is in view. Check the stream:

ffprobe rtsp://[STREAM_HOST]:8554/[STREAM_PATH]

If ffprobe cannot read the stream, fix the feed first. If it reads, watch the topics:

mosquitto_sub -h [BROKER_HOST] -t "frigate/birdfeeder/+" -v

If frigate/birdfeeder/all stays at 0, no bird is in view.

Frigate did not keep up with a 5 fps camera in the test: see Detection rate. Keep detect.fps: 3 in the camera block, then restart Frigate:

docker restart frigate

The names in objects.track must match the labelmap line for line. A name typed by hand can differ in small ways: the labelmap holds Swainson's Hawk (Dark morph ), with a space before the closing parenthesis. Generate the list with the snippet in step 6 of Manual install, or copy the lines from nabirds-labelmap.txt.

The model knows only 555 North American classes, and a bird outside them gets the closest class. See Labels for birds outside 555 classes.

The installer could not find your container. Pass its name with --container [CONTAINER_NAME], or the config folder with --config-dir [CONFIG_DIR].

The installer checks the stream with ffprobe before it changes anything. Check the address and that the stream is running, then run the installer again.

Next steps

License and credits

The code is licensed under the MIT License. nabirds-new-model.dxnn is built on an Ultralytics YOLOv8 base and is licensed under AGPL-3.0. It was trained on NABirds data, which carries a non-commercial restriction. The model’s details are in the bird-species-id-v1.0.0 release notes.

Credits: Frigate NVR and NABirds.