Skip to content

Real or false: a classifier and the dipole test ​

Summary ​

On 11 Pan-STARRS1 sets of IASC campaigns with 100 synthetic asteroids added to each, a logistic regression trained to tell real tracklets from false ones, validated on whole sets it had not seen, did no better than the search's own filters: 534 real tracklets kept and 67 false ones let through, against 540 and 89. Its weights pointed at one measurement the filters did not use, a negative beside the detection in the difference image. Added as a test at the detection threshold, it took the tracklets that are neither synthetic nor catalogued from 89 to 19; 511 of the 516 synthetic asteroids found before were still found, and all 25 catalogued ones. Run again once the synthetic asteroids were placed through the search's own astrometric fit (some had been up to 1″ off): from 80 to 12, with 583 of 589 still found and 24 catalogued in each search. On 12 sets kept aside, 532 of 533.

1. Method ​

Labels. No set of tracklets labelled by eye is large enough, so the labels come from known truth. inject_movers adds synthetic asteroids to a set; a search with the tests that decide what is real relaxed (no flux-ratio, bright-background or detector-artifact test, a straight-line residual of up to 3 px) lets false tracklets through. A tracklet is real if injection_recovery matches it to a synthetic asteroid or analyze_set identifies it as a catalogued one, false otherwise.

Features. Ten per tracklet, read from the frames' normalized differences (stack_difference): the number of points, the significance at each (minimum and median), the ratio of the largest to the smallest flux, the straight-line residual, the rate, the fraction of masked pixels, two measures of shape, and the deepest negative pixel within 4 px of a point.

Classifier. Logistic regression on the standardized features, with a ridge penalty. One whole set is left out at a time, so nothing from its field is seen in training. The threshold keeps, on the training sets, as many real tracklets as the search's filters keep there.

The dipole test. A moving object is absent from the sequence's median, so in a frame's difference it is only a positive source. A star that a frame's misalignment or seeing subtracts badly leaves a positive and a negative lobe side by side. run_pipeline's max_negative drops a detection with an unmasked pixel that many σ below zero within 4 px.

2. Data ​

Declared before running, in examples/real_bogus_dataset.jl, examples/real_bogus_train.jl and examples/dipole_test.jl:

Setsthe 13 local Pan-STARRS1 sets of IASC campaigns; the two analyze_set marks unreliable left out
Synthetic asteroids100 per set, V 20.0–23.0, 5–100″/h, other seeds than How faint's
Searchesframe by frame, no stacking, observatory F51, the MPC's orbits
Dipole testmax_negative at 8 and at 6, the detection threshold, against the search without it

Two things were changed before any result was seen and one after, all three in the dataset script's header: relaxing detection as well made linking run for half an hour on one set without finishing; the relaxed search through analyze_set stalled asking the catalogue services about hundreds of tracklets; and matching a relaxed tracklet to a catalogued asteroid by a single point labelled 36 tracklets as catalogued on a set with 4, so 3 points within 1″ are required.

3. Results ​

The classifier ​

4,022 tracklets: 566 real (542 synthetic, 24 catalogued) and 3,456 false, 3,362 of the false on the three crowded fields.

Set left outRealFalseFilters: real keptfalse passedClassifier: real keptfalse passed
XY15_p013120301250
XY25_p10822,29676497929
XY26_p01623295512587
XY42_p116373762205910
XY45_p01464460461
XY45_p10494480490
XY45_p115112501504
XY54_p10536511522
XY72_p015412522451
XY72_p113222311307
XY73_p014314392416
All5663,4565408953467

On the three crowded fields the classifier passed 46 false tracklets against the filters' 81 and kept 196 real ones against 193; on the other eight it passed 21 against 8 and kept 338 against 347. Fitted on every set, the largest weights were the deepest negative (+2.51 per standard deviation), the straight-line residual (−2.45) and the number of points (+2.12); the others were between −0.66 and +0.38.

The dipole test ​

The same sets and synthetic asteroids, searched with the filters as they were and with the test added:

SetWithout: syntheticotherAt 8σ: syntheticotherAt 6σ: syntheticother
XY15_p01301301301
XY25_p1072497223705
XY26_p015412535521
XY42_p1160205916595
XY45_p01440440440
XY45_p10460460460
XY45_p11491491491
XY54_p10501501501
XY72_p01452452452
XY72_p11301301301
XY73_p01362362362
All516895145251119

"Other" is every tracklet neither synthetic nor catalogued. The 25 catalogued asteroids were identified in all three searches. The eight uncrowded fields did not change: 8 other tracklets in each search. pipeline_config now sets the test at 6σ.

Run again, the injection fixed. inject_movers had fitted each frame's astrometry on its own, up to 1″ from the search's joint fit on 5 frames of these sets, so some synthetic asteroids were placed where the search does not measure them, to be missed and counted as other tracklets (Sets kept aside). Run again with the same seeds, declared before running; the asteroids drawn differ, as each one's noise depends on its frame's zero point:

SetWithout: syntheticotherAt 8σ: syntheticotherAt 6σ: syntheticother
XY15_p01400400400
XY25_p1070466821663
XY26_p017711774752
XY42_p1163206315635
XY45_p01340340340
XY45_p10460460460
XY45_p11490490490
XY54_p10522522522
XY72_p01580580580
XY72_p11521520520
XY73_p01480480480
All589805874258312

The 24 catalogued asteroids were identified in all three searches. On the eight uncrowded fields, 3 other tracklets without the test and 2 with it, against 8 before, 6 of which were on the four of them with a frame placed off. The 6 synthetic asteroids fewer at 6σ are on XY25_p10 and XY26_p01.

With stacking, and the other validations ​

stack_search takes the same max_negative, for a track with such a pixel within 4 px in any frame, and analyze_set passes it the configuration's. The other validations on Pan-STARRS1 were then repeated with the test in both searches:

BeforeWith the test
digest2 and ITF, 19 campaign sets: catalogued asteroids identified26the same 26, with the same scores
unidentified tracklets4the same 4
How faint, 11 sets, 1,100 synthetic asteroids: found frame by frame299295
found with stacking358354
50% found at, frame by frame and with stackingV 21.68, 21.81V 21.67, 21.79
found at V 22.0–22.5 with stacking34 of 21434 of 214
stacked tracklets not synthetic65
Stacking, the 2 of its 4 fields run both ways, 160 synthetic asteroids: found frame by frame, then with stacking35, 4135, 41
Pan-STARRS1 sets: 260 synthetic asteroids on one set, found140140
9 good sets, frame by frame: catalogued asteroids identified1919
tracklets to look at9831
20 sets, frame by frame: catalogued asteroids identified2828
tracklets not identified7912

The 4 asteroids no longer found are between V 21.25 and 22.0, on two of the crowded fields. The stacked tracklet no longer added was the one on XY25_p10, at V 23.3 and barely visible.

4. Discussion ​

The classifier. With these features a linear model is no gain over the filters: fewer false tracklets on crowded fields, more on clean ones, and 6 fewer real ones overall. Its use here was to show which measurement the filters lacked.

The cost of the test. The 5 synthetic asteroids lost at 6σ, 1% of those found (6 of 589 in the second run), were all on the crowded fields, where a real object is more often within 4 px of a star's residual. An asteroid passing a star is lost in that frame with or without the test; with it, also when the star is merely close.

What wasn't measured. Real tracklets are almost all synthetic: 24 catalogued among 566. An uncatalogued real asteroid counts as false, or as "other"; the production search found 6 unidentified tracklets on 13 sets, so few. The 6σ and 8σ values were compared on the same 11 sets that suggested the test, all of one survey; no other telescope was tried. On the one other survey tried, ZTF field 451 (5 frames, 1.01″ pixels), analyze_set gave the same two catalogued asteroids and no other tracklet with the test as without it; no crowded field of another survey was tried.

5. Reproduce ​

bash
julia --project=. examples/real_bogus_dataset.jl
julia --project=. examples/real_bogus_train.jl
julia --project=. examples/dipole_test.jl