Behavior Analysis of Confined Microsocieties in a Programmed Environment.