Emotions and Perceived Productivity of Software Developers at the Workplace

Emotions are known to impact cognitive skills, thus influencing job performance. This is also true for software development, which requires creativity and problem-solving abilities. In this paper, we report the results of a field study involving professional developers from five different companies. We provide empirical evidence that a link exists between emotions and perceived productivity at the workplace. Furthermore, we present a taxonomy of triggers for developers’ positive and negative emotions, based on the qualitative analysis of participants’ self-reported answers collected through daily experience sampling. Finally, we experiment with a minimal set of non-invasive biometric sensors that we use as input for emotion detection. We found that positive emotional valence, neutral arousal, and high dominance are prevalent. We also found a positive correlation between emotional valence and perceived productivity, with a stronger correlation in the afternoon. Both social and individual breaks emerge as useful for restoring a positive mood. Furthermore, we found that a minimum set of non-invasive biometric sensors can be used as a predictor for emotions, provided that training is performed on an individual basis. While promising, our classifier performance is not yet robust enough for practical usage. Further data collection is required to strengthen the classifier, by also implementing individual fine-tuning of emotion models.

[1]  Pekka Abrahamsson,et al.  On the Unhappiness of Software Developers , 2017, EASE.

[2]  Hugo Silva,et al.  Multimodal biosignal sensor data handling for emotion recognition , 2011, 2011 IEEE SENSORS Proceedings.

[3]  Pekka Abrahamsson,et al.  Software Developers, Moods, Emotions, and Performance , 2014, IEEE Software.

[4]  Nicole Novielli,et al.  Towards Recognizing the Emotions of Developers Using Biometrics: The Design of a Field Study , 2019, 2019 IEEE/ACM 4th International Workshop on Emotion Awareness in Software Engineering (SEmotion).

[5]  Chris Parnin,et al.  Characterizing and Predicting Mental Fatigue during Programming Tasks , 2017, 2017 IEEE/ACM 2nd International Workshop on Emotion Awareness in Software Engineering (SEmotion).

[6]  Andrea Gaggioli,et al.  Virtual reality and mobile phones in the treatment of generalized anxiety disorders: a phase-2 clinical trial , 2011, Personal and Ubiquitous Computing.

[7]  Chris Parnin,et al.  Exploring Causes of Frustration for Software Developers , 2015, 2015 IEEE/ACM 8th International Workshop on Cooperative and Human Aspects of Software Engineering.

[8]  Jennifer Healey,et al.  Digital processing of affective signals , 1998, Proceedings of the 1998 IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP '98 (Cat. No.98CH36181).

[9]  D. Kahneman,et al.  A population approach to the study of emotion: diurnal rhythms of a working day examined with the Day Reconstruction Method. , 2006, Emotion.

[10]  Esperanza Marcos,et al.  Applying Emotional Team Coaching to Software Development , 2021, IEEE Software.

[11]  Shane McIntosh,et al.  The Impact of Automated Parameter Optimization on Defect Prediction Models , 2018, IEEE Transactions on Software Engineering.

[12]  A. Kramer,et al.  Physiological metrics of mental workload: A review of recent progress , 1990, Multiple-task performance.

[13]  Michaela Riediger,et al.  Experience Sampling , 2009, SAGE Research Methods Foundations.

[14]  Pekka Abrahamsson,et al.  What happens when software developers are (un)happy , 2017, J. Syst. Softw..

[15]  Bonita Sharif,et al.  Emotional Awareness in Software Development: Theory and Measurement , 2017, 2017 IEEE/ACM 2nd International Workshop on Emotion Awareness in Software Engineering (SEmotion).

[16]  Thomas Fritz,et al.  Sensing Interruptibility in the Office: A Field Study on the Use of Biometric and Computer Interaction Sensors , 2018, CHI.

[17]  Kai Petersen,et al.  Time pressure: a controlled experiment of test case development and requirements review , 2014, ICSE.

[18]  B. Turner,et al.  Grounded Theory and Organizational Research , 1986 .

[19]  Max Kuhn,et al.  The caret Package , 2007 .

[20]  Pekka Abrahamsson,et al.  Happy software developers solve problems better: psychological measurements in empirical software engineering , 2014, PeerJ.

[21]  J. Krystal,et al.  Move over ANOVA: progress in analyzing repeated-measures data and its reflection in papers published in the Archives of General Psychiatry. , 2004, Archives of general psychiatry.

[22]  Thomas Zimmermann,et al.  Supplementary Material For The Paper "Design Recommendations For Self-Monitoring In The Workplace: Studies In Software Development" , 2017 .

[23]  Mohammad Soleymani,et al.  Analysis of EEG Signals and Facial Expressions for Continuous Emotion Detection , 2016, IEEE Transactions on Affective Computing.

[24]  M. Bradley,et al.  Measuring emotion: the Self-Assessment Manikin and the Semantic Differential. , 1994, Journal of behavior therapy and experimental psychiatry.

[25]  Robert Amor,et al.  Reflection in Agile Retrospectives , 2017, XP.

[26]  Nicole Novielli,et al.  Emotion detection using noninvasive low cost sensors , 2017, 2017 Seventh International Conference on Affective Computing and Intelligent Interaction (ACII).

[27]  Mark Meerum Terwogt,et al.  Awareness and regulation of emotion in typical and atypical development , 2007 .

[28]  Christian Mühl,et al.  Valence, arousal and dominance in the EEG during game play , 2013, Int. J. Auton. Adapt. Commun. Syst..

[29]  Nicole Novielli,et al.  A Replication Study on Code Comprehension and Expertise using Lightweight Biometric Sensors , 2019, 2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC).

[30]  Akane Sano,et al.  Predicting students' happiness from physiology, phone, mobility, and behavioral data , 2015, 2015 International Conference on Affective Computing and Intelligent Interaction (ACII).

[31]  Thomas Fritz,et al.  Stuck and Frustrated or in Flow and Happy: Sensing Developers' Emotions and Progress , 2015, 2015 IEEE/ACM 37th IEEE International Conference on Software Engineering.

[32]  Eliano Pessa,et al.  The influence of emotional picture thematic content on exploratory eye movements , 2012 .

[33]  Filippo Lanubile,et al.  On Developers' Personality in Large-Scale Distributed Projects: The Case of the Apache Ecosystem , 2018, 2018 IEEE/ACM 13th International Conference on Global Software Engineering (ICGSE).

[34]  Bram Adams,et al.  Do developers feel emotions? an exploratory analysis of emotions in software artifacts , 2014, MSR 2014.

[35]  Nitesh V. Chawla,et al.  SMOTE: Synthetic Minority Over-sampling Technique , 2002, J. Artif. Intell. Res..

[36]  Thomas Fritz,et al.  Using (Bio)Metrics to Predict Code Quality Online , 2016, 2016 IEEE/ACM 38th International Conference on Software Engineering (ICSE).

[37]  Nicole Novielli,et al.  Recognizing Developers' Emotions while Programming , 2020, 2020 IEEE/ACM 42nd International Conference on Software Engineering (ICSE).

[38]  Christian Bird,et al.  Today Was a Good Day: The Daily Life of Software Developers , 2019, IEEE Transactions on Software Engineering.

[39]  Kasia Muldner,et al.  Investigating the Utility of Eye-Tracking Information on Affect and Reasoning for User Modeling , 2009, UMAP.

[40]  M. Bradley,et al.  Measuring emotion: Behavior, feeling, and physiology , 2000 .

[41]  Eugénio C. Oliveira,et al.  A Hybrid Approach at Emotional State Detection: Merging Theoretical Models of Emotion with Data-Driven Statistical Classifiers , 2013, 2013 IEEE/WIC/ACM International Joint Conferences on Web Intelligence (WI) and Intelligent Agent Technologies (IAT).

[42]  J. Russell Culture and the categorization of emotions. , 1991, Psychological bulletin.

[43]  Luca Citi,et al.  cvxEDA: A Convex Optimization Approach to Electrodermal Activity Processing , 2016, IEEE Transactions on Biomedical Engineering.

[44]  Pekka Abrahamsson,et al.  Are Happy Developers more Productive? The Correlation of Affective States of Software Developers and their self-assessed Productivity , 2013, PROFES.

[45]  Teresa M. Amabile,et al.  Affect and Creativity at Work , 2005 .

[46]  Pekka Abrahamsson,et al.  Understanding the affect of developers: theoretical background and guidelines for psychoempirical software engineering , 2015, SSE@SIGSOFT FSE.

[47]  J. Russell A circumplex model of affect. , 1980 .

[48]  Eirini Kalliamvakou,et al.  Towards a Theory of Software Developer Job Satisfaction and Perceived Productivity , 2019, IEEE Transactions on Software Engineering.

[49]  Mika Mäntylä,et al.  Mining Valence, Arousal, and Dominance - Possibilities for Detecting Burnout and Productivity? , 2016, 2016 IEEE/ACM 13th Working Conference on Mining Software Repositories (MSR).

[50]  Moritz Beller,et al.  Mind the Gap: On the Relationship Between Automatically Measured and Self-Reported Productivity , 2020, ArXiv.

[51]  Thierry Pun,et al.  DEAP: A Database for Emotion Analysis ;Using Physiological Signals , 2012, IEEE Transactions on Affective Computing.

[52]  Pekka Abrahamsson,et al.  Do feelings matter? On the correlation of affects and the self‐assessed productivity in software engineering , 2014, J. Softw. Evol. Process..

[53]  Orit Hazzan,et al.  The Agile Manifesto , 2014 .

[54]  Sebastian Raschka,et al.  Model Evaluation, Model Selection, and Algorithm Selection in Machine Learning , 2018, ArXiv.

[55]  Michal R. Wróbel,et al.  Emotions in the software development process , 2013, 2013 6th International Conference on Human System Interactions (HSI).

[56]  G. Jull,et al.  Exploring physiotherapists ’ emotion work in private practice , 2012 .

[57]  Andrew Begel,et al.  Affect Recognition in Code Review: An In-situ Biometric Study of Reviewer's Affect , 2020, J. Syst. Softw..

[58]  A. Marcel,et al.  Consciousness and the varieties of emotion experience: a theoretical framework. , 2002, Psychological review.

[59]  Monique Ernst,et al.  Mental fatigue impairs emotion regulation. , 2015, Emotion.

[60]  Winslow Burleson,et al.  Affective agents: Sustaining motivation to learn through failure and state of "stuck" , 2004 .