The mattress achieves this by inflating and deflating the pockets of air that make up the mattress, in a regulating pattern.