MIT researchers studied ecosystems of up to 48 species of bacteria and discovered how the communities shift from stable to unstable states.