Flies are adapted for aerial movement and typically have short and streamlined bodies. The first
tagma of the fly, the head, bears the eyes, the
antennae, and the
mouthparts (the labrum, labium, mandible, and maxilla make up the mouthparts). The second tagma, the
thorax, bears the wings and contains the flight muscles on the second segment, which is greatly enlarged; the first and third segments have been reduced to collar-like structures, and the third segment bears the
halteres, which help to balance the insect during flight. The third tagma is the
abdomen consisting of 11 segments, some of which may be fused, and with the three hindmost segments modified for reproduction. showing large
compound eyes and stout piercing
mouthparts Flies have a mobile head with a pair of large
compound eyes on the sides of the head, and in most species, three small
ocelli on the top. The compound eyes may be close together or widely separated, and in some instances are divided into a dorsal region and a ventral region, perhaps to assist in swarming behaviour. The antennae are well-developed but variable, being thread-like, feathery or comb-like in the different families. The mouthparts are adapted for piercing and sucking, as in the black flies, mosquitoes and robber flies, and for lapping and sucking as in many other groups. A subset of these neurons is thought to be involved in using the optic flow to estimate the parameters of self-motion, such as yaw, roll, and sideward translation. Other neurons are thought to be involved in analyzing the content of the visual scene itself, such as separating figures from the ground using motion parallax. The
H1 neuron is responsible for detecting horizontal motion across the entire visual field of the fly, allowing the fly to generate and guide stabilizing motor corrections midflight with respect to yaw. The ocelli are concerned in the detection of changes in light intensity, enabling the fly to react swiftly to the approach of an object. Like other insects, flies have
chemoreceptors that detect smell and taste, and
mechanoreceptors that respond to touch. The third segments of the antennae and the maxillary palps bear the main olfactory receptors, while the gustatory receptors are in the labium, pharynx, feet, wing margins and female genitalia, enabling flies to taste their food by walking on it. The taste receptors in females at the tip of the abdomen receive information on the suitability of a site for ovipositing. Some tachinid flies (Ormiinae) which are parasitoids of
bush crickets, have sound receptors to help them locate their singing hosts. , showing the hind wings reduced to drumstick-shaped
halteres Diptera have one pair of fore
wings on the
mesothorax and a pair of
halteres, or reduced hind wings, on the
metathorax. A further adaptation for flight is the reduction in number of the neural
ganglia, and concentration of nerve tissue in the thorax, a feature that is most extreme in the highly derived Muscomorpha infraorder. Some flies such as the ectoparasitic
Nycteribiidae and
Streblidae are exceptional in having lost their wings and become flightless. The only other order of insects bearing a single pair of true, functional wings, in addition to any form of halteres, are the
Strepsiptera. In contrast to the flies, the Strepsiptera bear their halteres on the mesothorax and their flight wings on the metathorax. Each of the fly's six
legs has a typical insect structure of coxa, trochanter, femur, tibia and tarsus, with the tarsus in most instances being subdivided into five
tarsomeres. The abdomen shows considerable variability among members of the order. It consists of eleven segments in primitive groups and ten segments in more derived groups, the tenth and eleventh segments having fused. The last two or three segments are adapted for reproduction. Each segment is made up of a dorsal and a ventral
sclerite, connected by an elastic membrane. In some females, the sclerites are rolled into a flexible, telescopic
ovipositor. The wings of the fly are attached to two kinds of muscles, those used to power it and another set used for fine control. Flies tend to fly in a straight line then make a rapid change in direction before continuing on a different straight path. The directional changes are called
saccades and typically involve an angle of 90°, being achieved in 50 milliseconds. They are initiated by visual stimuli as the fly observes an object, nerves then activate steering muscles in the thorax that cause a small change in wing stroke which generate sufficient torque to turn. Detecting this within four or five wingbeats, the halteres trigger a counter-turn and the fly heads off in a new direction. Flies have rapid reflexes that aid their escape from predators but their sustained flight speeds are low.
Dolichopodid flies in the genus
Condylostylus respond in less than five milliseconds to camera flashes by taking flight. In the past, the deer bot fly,
Cephenemyia, was claimed to be one of the fastest insects on the basis of an estimate made visually by
Charles Townsend in 1927. This claim, of speeds of 600 to 800 miles per hour, was regularly repeated until it was shown to be physically impossible as well as incorrect by Irving Langmuir. Langmuir suggested an estimated speed of 25 miles per hour. Although most flies live and fly close to the ground, a few are known to fly at heights and a few like
Oscinella (Chloropidae) are known to be dispersed by winds at altitudes of up to 2,000 ft and over long distances. Some hover flies like
Metasyrphus corollae have been known to undertake long flights in response to aphid population spurts. Males of fly species such as
Cuterebra,
Fannia, many hover flies, bee flies (Bombyliidae) and fruit flies (Tephritidae) maintain territories within which they engage in aerial pursuit to drive away intruding males and other species. While these territories may be held by individual males, some species, such as
A. freeborni, form
leks with many males aggregating in displays. == Life cycle and development ==