# Anomaly Detection Annotator

**URL:** <https://www.rubin.community/t/anomaly-detection-annotator/11025>\
**Category:** Lasair\
**Created:** [September 29, 2025, 4:38pm UTC](https://www.rubin.community/t/anomaly-detection-annotator/11025 "2025-09-29T16:38:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![roy](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/roy/32/1254_2.png) [@roy](https://www.rubin.community/u/roy)\
**Post date:** [September 30, 2025, 10:11am UTC](https://www.rubin.community/t/anomaly-detection-annotator/11025/2 "2025-09-30T10:11:04Z")

</div>

Hi Rithwik  
The annotation pattern is sketched below. You might want to start first with [Lasair-ZTF](https://lasair-ztf.lsst.ac.uk/), since there will be no LSST alerts for a few more weeks.

- Make a pre-filter using the Lasair features, see [here](https://lasair-lsst.readthedocs.io/en/develop/core_functions/make_filter.html) and [here](http://www.rubin.community/t/how-to-make-a-lasair-filter/10631). It could be based on host galaxy, your own watchlist, or any of the Lasair schema, see [here](https://lasair-lsst.lsst.ac.uk/schema/).
- Make your filter _active_, so that it runs in real time, not just when you click on it. It will then have a Kafka output stream. Your filter description will say something like " The filter is streamed via kafka with the topic name `lasair_123blahbla`
- Use the topic name to build a code that receives the alerts, see [here](https://lasair-lsst.readthedocs.io/en/develop/core_functions/alert-streams.html) and [here](http://www.rubin.community/t/machine-readable-output-from-lasair/10797). Your code can fetch the full lightcurve using the API, then build its annotation.
- Ask the Lasair team to make you an annotator, see [here](https://lasair-lsst.readthedocs.io/en/develop/core_functions/make_annotator.html).
- Run your code whenever you like to pull the latest alerts and analyse them.  
Cheers  
Roy

---

_[View the full topic](https://www.rubin.community/t/anomaly-detection-annotator/11025)._
