As published in Science Signalling, May 2017. Algorithm is described in the supplementary materials.
The colors of the larva paths used in the debug image come from wikipedia's distinguishable colors from the Colour Alphabet Project which resemble Kelly's 22 color set [pdf].