Changes in the strength of circadian rhythms, the average amount of activity during nighttime rest, and the amount of fragmented sleep a woman experienced during the later stages of pregnancy or following birth were strongly associated with increased risks of developing postpartum depression and anxiety.