Teaching Lab is a context-aware classroom, with essential ethical safeguards in mind that respect protagonists’ privacy as a prerequisite for the physical, technological and theoretical development of these spaces. The class smartness is exploited in two directions. On the one hand, it authorizes the basic collection of educational data (in particular the distribution of attention between teacher, students and learning materials), and their processing by machine learning techniques. On the other hand, it subordinates them to an ethical framework that respects the protagonists, following the safeguards for privacy and data protection in ambient intelligence. To do so, we use advanced machine learning techniques to shed light on global features while obfuscating local ones.