SlideShare a Scribd company logo
Recognizing Developers' Emotions:
Advances and Open Challenges
@NicoleNovielli nicole.novielli@uniba.it
QUATIC - September 13, 2022
Nicole Novielli


University of Bari, Italy


Collaborative Development Group
Faculty

• Filippo Lanubile


• Nicole Novielli


• Fabio Calefato


Visiting Professors


and Researchers
COLLAB - Collaborative Development Group
Research topics
PhD Students

• Luigi Quaranta


• Daniela Grassi


• Giuseppe Colavito


• Serena Versino


Final-year undergrad students
My research
• Human Aspects in Software
Engineering


• Affective Computing


• Natural Language Processing
Recognizing developers’ emotions
BrainLink
EEG monitors the electrical
activity of the brain
Emotions in Software Development
Software Engineering involves social interaction


• Programmers cooperate, directly or indirectly


• Massive adoption of social media and rise of the ‘social programmer’ (Storey, ‘12) and
the surrounding ecosystem


• Computer-mediated interaction became prevalent during the pandemic!
Studying Emotions in Software Engineering
Studying Emotions in Software Engineering
Studying Emotions in Software Engineering
Collaborative software development and knowledge-sharing


– Correlation of emotions with issue-fixing time (Ortu et al., MSR 2015)


– Early burnout discovery (Mantyla et al. MSR 2015)


– Anger detection (Gachechiladze et al., ICSE-NIER 2017)


– Empirically-driven guidelines for question writings (Calefato et al., IST 2018)


– Confusion in code reviews (Ebert et al., SANER 2019)


– Negative sentiment in SADT (Fucci et al., MSR 2021)


Recommender systems


– Pattern-based mining of opinions in Q&A websites (Lin et al., ICSE 2019)


– Opinion search and summarization for APIs (Uddin and Khomh, ASE 2017)


Requirements engineering


– User feedback (Guzman and Maalej, RE’14; van Oordt and Guzman, RE ’21, Kurtanovic and Maalej, 2020)


– App improvement (Panichella et al., ICSME ‘14)
Actionable insights for
Emotions and Wellbeing at the Workplace
Developers’ emotions, productivity and wellbeing
Developers’ emotions, productivity and wellbeing
Developers’ emotions, productivity and wellbeing
Developers’ emotions, productivity and wellbeing
Our vision
Biometrics
Acknowledgements
Filippo Lanubile


University of Bari
Davide Fucci


BTH
Alexander Serebrenik


TU/e
Daniela Girardi


University of Bari
Daniela Grassi


University of Bari
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
Electroencephalography (EEG)
• Electrical activity of the brain


• Cerebral waves categorized based on their frequency


• Delta (<4 Hz): recorded during sleep


• Theta (4-7,5 Hz): decrease of vigilance level


• Alpha (4-12,5 Hz): relax


• Beta (13-30 Hz): mental process


• Gamma (>30 Hz): anxiety
Galvanic skin response (GSR)
• Electrical activity of the skin


• Changes due to the variation in body sweating


• Electrical changes in the skin could be due to variation in emotions
Empatica E4
Empirical studies: overview
Circumplex Model of Affect
J. A. Russell, A circumplex model of affect, Journal of Personality and Social Psychology 1980, Vol 39, no. 6
Lab studies
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
Controlled experiment
Can we use noninvasive, low cost sensors for reliable emotion
recognition?
VS.
https://www.eecs.qmul.ac.uk/mmv/datasets/deap/
Controlled experiment


Machine learning - performance comparable with the state of the art
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
What is the minimal set of non-invasive
biometric sensors to recognize
developers’ emotions?
Previous studies
Instrumentation
BrainLink
EEG monitors the electrical
activity of the brain
Instrumentation
• 23 participants


• Java development tasks


• Gold standard: self report and
arousal
Self-report of emotions and progress
Bradley, M. M., & Lang, P. J. (1994). Measuring emotion: the self-assessment manikin and the semantic differential. Journal of behavior therapy and experimental psychiatry, 25(1), 49-59.
Valence (Un)Pleasantness of the
emotion stimulus


Arousal Level of activation of the
emotion stimulus
Gold standard based on self report
Valence Arousal
Posi
ti
ve Nega
ti
ve High Low
44 (32%) 94 (68%) 85 (62%) 53 (38%)
Machine Learning
Preprocessing
signals’ noise
removal
Feature extraction
statistical measures of
signals
Classification
Hold out -90-10 and
Leave-one-subject-out
(LOSO) setting
https://
fi
gshare.com/articles/_/9206474
Machine Learning
Sensor-based emotion detection
Minimal set of sensors
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
Field study
Research questions
RQ1. What is the range of developers’ emotions at the workplace?
RQ2. To what extent are developers emotions related to self-assessed
productivity during the workday?
RQ3. What are the triggers for developers’ emotions at the workplace?
RQ4. Can we predict developers’ emotions at the workplace using
lightweight biometric sensors?
Research questions
RQ1. What is the range of developers’ emotions at the workplace?
RQ2. To what extent are developers emotions related to self-assessed
productivity during the workday?
RQ3. What are the triggers for developers’ emotions at the workplace?
RQ4. Can we predict developers’ emotions at the workplace using
lightweight biometric sensors?
Biometrics
Link to full paper
IEEE Transactions on Software Engineering, 2021
Study protocol 2/3 weeks
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
Productivity
Self-assessed


Values ranging from very low to
very high
Triggers for self-reported emotions
.
coding


bug
fi
xing


testing


design


meeting


email, helping


networking


learning


administrative task


documentation


just arrived


other


Based on Meyer et al. (TSE, 2019)
Participants
Five companies


Dutch software development companies, including


- One startup (1 founder and 2 employees)


- Two SMEs (between 20 and 200 employees)


- Two large companies (> 20.000 employees)


21 professional developers


- 18 men, 3 women


- Average age: 33 years


± 7.2, ranging from 23 to 50


- Average experience in software development: 8 years


± 6.2, ranging from 1 to 25
Emotions and Productivity
Emotions and Productivity
RQ1. What is the range of developers’ emotions at the workplace?
RQ2. To what extent are developers emotions related to self-assessed
productivity during the workday?
Developer’s emotion at the workplace
Developer’s emotion at the workplace
Valence is positively correlated with perceived
productivity, with stronger correlation in the
afternoon.


Interaction between valence and time (day vs.
afternoon)
Emotions and self-assessed productivity
Valence is positively correlated with perceived
productivity


Stronger correlation in the afternoon.


Conversely, the correlation between dominance
and productivity is stronger in the morning.


This could be due to fatigue, which is known to
impair emotion regulation.


Emotions and self-assessed productivity
Emotion Triggers
Emotion Triggers
RQ3. What are the triggers for developers’ emotions at the workplace?
48
pos: 18 neg: 19
RQ3: triggers of emotions
Triggers for positive and negative emotions
Triggers for positive and negative emotions
Triggers for positive and negative emotions
Sensor-based Emotion Recognition
Can we predict developers’ emotions at the workplace
using lightweight biometric sensors?
Minimal sensor setting for emotion recognition while programming
Machine
Learning
Sensor-based Emotion Recognition
Empatica E4
Machine Learning
Sensor-based emotion recognition
Good: Our classi
fi
ers outperform the baseline
Sensor-based emotion recognition
Good: The performance is comparable to the on in the lab
Sensor-based emotion recognition
Expected: Hold-out scores are higher than leave-one-subject out
Variability between participants
Variability between participants


Also observed in the lab study (Girardi et al., ICSE 2020)
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges
• Individual training/
fi
ne-tuning of emo
ti
on classi
fi
ers


• Further valida
ti
on with larger/more diverse pool of par
ti
cipants
from di
ff
erent companies


• Self-disclosure of nega
ti
ve emo
ti
ons


• Analysis of GSR peaks as proxy of stress
Open challenges and future studies
• Individual training/
fi
ne-tuning of emo
ti
on classi
fi
ers


• Further valida
ti
on with larger/more diverse pool of par
ti
cipants
from di
ff
erent companies


• Self-disclosure of nega
ti
ve emo
ti
ons


• Analysis of GSR peaks as proxy of stress
Open challenges and future studies
• Individual training/
fi
ne-tuning of emo
ti
on classi
fi
ers


• Further valida
ti
on with larger/more diverse pool of par
ti
cipants
from di
ff
erent companies


• Self-disclosure of nega
ti
ve emo
ti
ons


• Analysis of GSR peaks as proxy of stress
Open challenges and future studies
• Individual training/
fi
ne-tuning of emo
ti
on classi
fi
ers


• Further valida
ti
on with larger/more diverse pool of par
ti
cipants
from di
ff
erent companies


• Self-disclosure of nega
ti
ve emo
ti
ons


• Analysis of GSR peaks as proxy of stress
Open challenges and future studies
Preprint available
• Individual training/
fi
ne-tuning of emo
ti
on classi
fi
ers


• Further valida
ti
on with larger/more diverse pool of par
ti
cipants
from di
ff
erent companies


• Self-disclosure of nega
ti
ve emo
ti
ons


• Analysis of GSR peaks as proxy of stress
Open challenges and future studies
Emotions as a proxy for engagement in users’ interviews
Wed Sept 2 2020
@NicoleNovielli
nicole.novielli@uniba.it
http://collab.di.uniba.it/nicole/
Thanks!
Q&A

More Related Content

PDF
Towards Supporting Emotion Awareness of Software Developers
PPTX
Emotion Detection Using Noninvasive Low-cost Sensors
PPTX
The Challenges of Affect Detection in the Social Programmer Ecosystem
PDF
A Journey Into the Emotions of Software Developers
PDF
Augmenting Speech-Language Rehabilitation with Brain Computer Interfaces: An ...
PPT
The Science Behind Neuromarketing
PDF
Empathic Computing and Collaborative Immersive Analytics
PDF
Mobile and Wearable Applications at UWF iTenWired2015
Towards Supporting Emotion Awareness of Software Developers
Emotion Detection Using Noninvasive Low-cost Sensors
The Challenges of Affect Detection in the Social Programmer Ecosystem
A Journey Into the Emotions of Software Developers
Augmenting Speech-Language Rehabilitation with Brain Computer Interfaces: An ...
The Science Behind Neuromarketing
Empathic Computing and Collaborative Immersive Analytics
Mobile and Wearable Applications at UWF iTenWired2015

Similar to Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges (20)

PDF
A Controlled Experiment to Evaluate the Effects of Mindfulness in Software En...
PPTX
To Label or Not? Advances and Open Challenges in SE-specific Sentiment Analysis
PPTX
Sela uni
PPTX
Sela University
PDF
Emotional Intelligence via Wearables
PDF
NeuroscienceLaboratory__03_2016C
PDF
IRJET- BDI using NLP for Efficient Depression Identification
PDF
Empirical Methods in Software Engineering - an Overview
PPTX
Neural Correlates of Technological Ambivalence: A Research Proposal
PDF
Applying AI to software engineering problems: Do not forget the human!
PDF
Geek physical workshops
PDF
User experience design portfolio, Harry Brenton
PDF
MindfulTech - QS Discussion
PDF
SCiL Poster
PDF
Emotion Detection and Depression Analysis in Chat Application
PDF
asjadpresentation
PDF
IRJET- Deep Neural Network based Mechanism to Compute Depression in Socia...
PPTX
Emotiv EPOC EEG Headset
PDF
Scil poster 2017
PPTX
Emotion Analysis in Software Ecosystems
A Controlled Experiment to Evaluate the Effects of Mindfulness in Software En...
To Label or Not? Advances and Open Challenges in SE-specific Sentiment Analysis
Sela uni
Sela University
Emotional Intelligence via Wearables
NeuroscienceLaboratory__03_2016C
IRJET- BDI using NLP for Efficient Depression Identification
Empirical Methods in Software Engineering - an Overview
Neural Correlates of Technological Ambivalence: A Research Proposal
Applying AI to software engineering problems: Do not forget the human!
Geek physical workshops
User experience design portfolio, Harry Brenton
MindfulTech - QS Discussion
SCiL Poster
Emotion Detection and Depression Analysis in Chat Application
asjadpresentation
IRJET- Deep Neural Network based Mechanism to Compute Depression in Socia...
Emotiv EPOC EEG Headset
Scil poster 2017
Emotion Analysis in Software Ecosystems
Ad

More from Nicole Novielli (7)

PPTX
Evalita2018 iListen - itaLIan Speech acT labEliNg
PPTX
A Benchmark Study on Sentiment Analysis for Software Engineering Research
PPTX
Deep Tweets: from Entity Linking to Sentiment Analysis
PDF
UNIBA at EVALITA 2014-SENTIPOLC Task: Predicting tweet sentiment polarity com...
PPT
Towards Discovering the Role of Emotions in Stack Overflow
PPT
A Preliminary Investigation of the Effect of Social Media on Affective Trust ...
PPT
Social Network Analysis for Global Software Engineering: Exploring relationsh...
Evalita2018 iListen - itaLIan Speech acT labEliNg
A Benchmark Study on Sentiment Analysis for Software Engineering Research
Deep Tweets: from Entity Linking to Sentiment Analysis
UNIBA at EVALITA 2014-SENTIPOLC Task: Predicting tweet sentiment polarity com...
Towards Discovering the Role of Emotions in Stack Overflow
A Preliminary Investigation of the Effect of Social Media on Affective Trust ...
Social Network Analysis for Global Software Engineering: Exploring relationsh...
Ad

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Cloud computing and distributed systems.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Electronic commerce courselecture one. Pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
cuic standard and advanced reporting.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Weekly Chronicles - August'25 Week I
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Big Data Technologies - Introduction.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Cloud computing and distributed systems.
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Electronic commerce courselecture one. Pdf
Review of recent advances in non-invasive hemoglobin estimation
cuic standard and advanced reporting.pdf
Spectral efficient network and resource selection model in 5G networks
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm

Keynote@QUATIC - Recognizing Developer's Emotions: Advances and Open Challenges