Visual Wing Angle detection on the IR spectrum

on Monday, October 5th, 2026 8:23 | by Mia Fritzsche

During my ~4 week internship I try to find the best setup for an experiment, that is most prominently known to me as the ping-pong ball machine. It is an experiment that is used to examine which motor outputs a fly puts out when there is no visual stimulus in its field of view — and if those outputs possibly follow a certain pattern.
The fly is placed in a white ping-pong ball that is illuminated all around by white light where it can either turn to the left or to the right. A camera measures the angle of each wing at its highest point, by which the direction that the fly chose can be determined (e.g. a smaller angle on the left wing means the left wing has a higher amplitude, so the fly wants to fly to the right)

For the camera to pick up the angle, a high contrast between the fly and the background is necessary.
The program (strokelitude – an fview plugin ) adds a mask to the image with some panels fanned out, if one panel is way darker/lighter than the others, it (ideally) means that that is where the wing is. The imaging has previously been done in the visible spectrum but doing it in the IR spectrum instead seems promising, as the flies reflect light really well in the IR-wavelength. So instead of a black fly on white background you see a glowing white fly over black background.

This is my first time working with drosophila so I spent a good chunk of the first weeks figuring out how to glue the wire to the back of the flies and how to attach them to the ping-pong-ball machine without them flying away (that happened a lot). I attached an IR filter to the camera and soldered some IR lamps. The camera did not have too much wiggle room, it seemed best to me to keep it at around 40° from a ~15 cm distance, facing the upper back of the fly, which is the setup I saw in the literature, too. I kept the IR light on the middle axis and went around the fly on the sagittal plane. It was hard to get a high contrast with the light coming right from the top because the ball also reflects the light, so the image got muddy. There are IR absorbant paints on the market but they are all black. Some clear ones (some kinds of metall oxides) cost 150€ for a 25 g powder. In general, when the IR light was placed outside of the pingpong-ball, the light was reflected from the plastic ball, so that the camera picked up the (mostly) black unlit side of the fly. Putting the light directly opposite of the camera, in-line with the fly produced a really high contrast image but after a week of trying to get the program to pick up the wing-angle, I accepted that while the body of the fly may have looked great, the thin wings just are not prominent enough to cast a big enough shadow on the camera image.

I went back to making the light come from the top. We managed to reduce the dispersion of the light by adding a tape around the lightbulb (I call them tape-lasers). That helped a lot. Last week, I finally got to build a fixture that neither included paper nor my hands, which was truly an upgrade. As the light comes more from the side now I did try out the setup with two lights to keep the symmetry but it did not seem to me as if that changed a lot for the image. I will try around a bit more with two lights, though, because I feel like if placed correctly the lights may be able to make the wings on the opposing side more visible.

IR-light coming directly from the top, with full lightning scope of the bulb, a lot of dispersion
IR-light coming directly from the top, with a tape-laser, way better contrast
Two tape-lasers from both sides, no big difference to before

After some more playing around last week, this is my most recent setup and image:

fly illuminated by two tape-lasers, one from each side directly above:
strokelitude wing-tracking kind of working

I still have problems with getting good data from strokelitude, so I will be working on that this week, which will sadly also be my last week.

Category: Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.