Apparatus and methods are provided for use with a subject who is undergoing respiration. A motion sensor senses motion of a subject. A breathing pattern analysis unit analyzes components of the sensed motion that result from the subjects respiration. The breathing pattern analysis unit includes double-movement-respiration-cycle-pattern-identification functionality that designates respiration cycles as being double-movement-respiration-cycles (DMRCs) by determining that the cycles define two subcycles. Double-movement-respiration-cycle-event-identification functionality of the breathing pattern analysis unit identifies a DMRC event by detecting that the subject has undergone a plurality of DMRCs. An output is generated that is indicative of the subject having used accessory muscles in breathing, in response to identification of the double-movement-respiration-cycle event. Other embodiments are also described.