Expose a detection level for sequences and alerts
Maintainers usually reply within 7 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by reading the API's sequence and alert response definitions and the configuration for TEMPORAL_MODEL_THRESHOLD; the issue does not name their files. Then inspect how annotated sequences store is_wildfire and how model scores are recorded. Done means sequences and alerts return documented levels, thresholds are configurable, and their distribution is checked against annotated data; the alert aggregation and model version behavior still need decisions.
Written by the indexing model from the issue text.
Description
Context & Objective
Part of the epic pyronear/roadmap#28 (Alert analysis and follow-up). The API already exposes temporal_model_score per sequence. Users and tenders ask for something readable: how reliable is this alert? We want the API to translate the score into a few levels, so that every client shows the same thing.
What is done currently
- Each sequence has
temporal_model_scorewith its model versions. An alert groups the sequences that were triangulated together. - The score threshold used for validation lives in the API (
TEMPORAL_MODEL_THRESHOLD). Nothing translates the score into levels.
What has to be done
- Define three levels (high, medium, limited) from
temporal_model_score, with the thresholds in configuration. - Return the level with sequences and alerts. For an alert, derive it from its sequences.
- Handle sequences without a score (never scored, model unavailable, version change).
- Look at the distribution of annotated sequences (
is_wildfire) by score, to choose the thresholds: which share of each category falls in each level.
Open questions
- How is an alert level built from its sequences: highest, or a combination?
- What happens to stored levels when the model version changes?
- Do we need a quick analysis of the thresholds (for Mateo), or are the validation threshold and its study (pyronear/vision-rd#143, pyronear/vision-rd#156) enough?
Done when
- Sequences and alerts return a level, documented
- Thresholds are in configuration and checked on annotated data
- Dominant language
- Python
- Stars
- 31
- Forks
- 15
- Avg merge
- 7d 18h
- Merged PRs (30d)
- 17
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pyronear/pyro-api
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 7 days
-
endpoint: detections type: fix
Difficulty 4/5 1-2 days Newbie friendliness 68/100
Maintainers usually reply within 7 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 7 days
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 7 days
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
Maintainers usually reply within 7 days
All issues in pyronear/pyro-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day