SlideShare une entreprise Scribd logo
1  sur  27
Télécharger pour lire hors ligne
Data Science in #mHealth
@neal_lathia
@Cambridge_Uni
@emotionsense
Many data science applications
deal with some kind of behaviour.
Data science: making sense from
& putting big data sets of small
behaviours to use.
(e.g., ratings #recsys)
Many health settings relate to
one or more of our behaviours.
Improving health: changing our
small, momentary, cumulative
behaviours.
(e.g., one cigarette smoking cessation)
How can we capture our small,
momentary, cumulative
behaviours?
Accelerometer
Microphone
Camera
GPS
Compass
Gyroscope
Wi-Fi
Bluetooth
Proximity
NFC
Light
For the user, Emotion Sense is
about psychological wellbeing,
ref lection, momentary
assessment, and contextual
feedback.
What can we learn from the
data?
This talk: unsupervised Learning + viz, R + python
angry anxious lonely
relaxedenthusiasticcalm
@EmotionSense has multiple assessments for
mood and life satisfaction
Accelerometer
Microphone
Location
Wi-Fi
Call Logs
SMS Logs
* all anonymised, pre-
processed
Happiness Metric:
Many moments of positive
feelings, high satisfaction with life
Accelerometer Data
● 109,054,559 samples collected in f irst 12(ish)
months of public deployment from 14,810 users
● What 'emergent' behaviours exist in this data?
How does it characterise the users?
● How do these behaviours relate to external data
we have collected from the same users (i.e.,
mood)?
Accelerometer Samples Matrix
● Extract features from accelerometer samples
● Each sample has 3 axes (x, y, z)
● Each axis is a time series of data
● Various features can be extracted:
– Statistical
– Temporal
– Signal
from sklearn.cluster import KMeans
c = KMeans(init='k-means++', n_clusters=4)
c.fit(data)
result = method.labels_
plot(X, Y, col=grey(.5), type="l", axes=F, xlab="Time
of Day", ylab=ylab, main=title, ylim=c(0,1))
axis(1, labels=seq(from=0,to=24,by=1), at=seq(from=0,to=24,by=1))
axis(2)
box()
grid()
f <- rep(1/4, 4)
y_lag <- filter(Y, f, sides=2)
lines(X, y_lag, col="red", lwd=2)
Week day, k = 2
Visualising Centroids
Example (Non-f inal) Result
Week end, k = 2
Visualising by heat map
Example (Non-f inal) Result
Week day
Week end
Visualising by heat map (python)
plt.figure()
fig, ax = plt.subplots()
ax.set_xticks(np.arange(data.shape[1])+0.5, minor=False)
ax.set_xticklabels([i for i in xrange(0, 24)], minor=False)
ax.xaxis.set_tick_params(width=0)
ax.xaxis.tick_bottom()
ax.set_yticks([])
ax.set_yticklabels([])
plt.xlabel('Time of Day')
plt.title(p_title)
plt.grid(False)
ax.pcolormesh(data, cmap=plt.cm.hot)
savefig(filename+'.pdf')
Conclusions
● Tools
– Android, R, Python (multiprocessing), MongoDB
– https://github.com/nlathia/research-util
– https://github.com/xsenselabs
● What's haven't I talked about?
– Supervised learning (“what are you doing now?”)
– Other sensors
● Next Gen:
– Levels of behaviour that were never possible to
observe before; scale without wearables
– Potential to catch people “in the moment”
– Time to redesign behavioural interventions?
Conclusions
Data Science in #mHealth
@neal_lathia
@Cambridge_Uni
@emotionsense

Contenu connexe

En vedette

En vedette (7)

Analysing Daily Behaviours with Large-Scale Smartphone Data
Analysing Daily Behaviours with Large-Scale Smartphone DataAnalysing Daily Behaviours with Large-Scale Smartphone Data
Analysing Daily Behaviours with Large-Scale Smartphone Data
 
Tube Star: Crowd-Sourced Experiences on Public Transport
Tube Star: Crowd-Sourced Experiences on Public Transport Tube Star: Crowd-Sourced Experiences on Public Transport
Tube Star: Crowd-Sourced Experiences on Public Transport
 
Cambridge Quantified Self Meetup
Cambridge Quantified Self MeetupCambridge Quantified Self Meetup
Cambridge Quantified Self Meetup
 
Happier and Healthier with Smartphone Data
Happier and Healthier with Smartphone DataHappier and Healthier with Smartphone Data
Happier and Healthier with Smartphone Data
 
Mining Smartphone Data (with Python)
Mining Smartphone Data (with Python)Mining Smartphone Data (with Python)
Mining Smartphone Data (with Python)
 
Data science challenges in flight search
Data science challenges in flight searchData science challenges in flight search
Data science challenges in flight search
 
Data Science in Digital Health
Data Science in Digital HealthData Science in Digital Health
Data Science in Digital Health
 

Similaire à Data Science in #mHealth

Topic_6
Topic_6Topic_6
Topic_6
butest
 
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Simplilearn
 
Modeling Electronic Health Records with Recurrent Neural Networks
Modeling Electronic Health Records with Recurrent Neural NetworksModeling Electronic Health Records with Recurrent Neural Networks
Modeling Electronic Health Records with Recurrent Neural Networks
Josh Patterson
 
Predictive Modelling
Predictive ModellingPredictive Modelling
Predictive Modelling
Rajiv Advani
 
Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...
Simplilearn
 
Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401
butest
 

Similaire à Data Science in #mHealth (20)

know Machine Learning Basic Concepts.pdf
know Machine Learning Basic Concepts.pdfknow Machine Learning Basic Concepts.pdf
know Machine Learning Basic Concepts.pdf
 
Machine Learning ebook.pdf
Machine Learning ebook.pdfMachine Learning ebook.pdf
Machine Learning ebook.pdf
 
1_5_AI_edx_ml_51intro_240204_104838machine learning lecture 1
1_5_AI_edx_ml_51intro_240204_104838machine learning lecture 11_5_AI_edx_ml_51intro_240204_104838machine learning lecture 1
1_5_AI_edx_ml_51intro_240204_104838machine learning lecture 1
 
Human action recognition with kinect using a joint motion descriptor
Human action recognition with kinect using a joint motion descriptorHuman action recognition with kinect using a joint motion descriptor
Human action recognition with kinect using a joint motion descriptor
 
A Study of Wearable Accelerometers Layout for Human Activity Recognition(Asia...
A Study of Wearable Accelerometers Layout for Human Activity Recognition(Asia...A Study of Wearable Accelerometers Layout for Human Activity Recognition(Asia...
A Study of Wearable Accelerometers Layout for Human Activity Recognition(Asia...
 
Wearable Accelerometer Optimal Positions for Human Motion Recognition(LifeTec...
Wearable Accelerometer Optimal Positions for Human Motion Recognition(LifeTec...Wearable Accelerometer Optimal Positions for Human Motion Recognition(LifeTec...
Wearable Accelerometer Optimal Positions for Human Motion Recognition(LifeTec...
 
DSP.pdf
DSP.pdfDSP.pdf
DSP.pdf
 
Topic_6
Topic_6Topic_6
Topic_6
 
Final Thesis Presentation
Final Thesis PresentationFinal Thesis Presentation
Final Thesis Presentation
 
Sensor based Health Monitoring System
Sensor based Health Monitoring System Sensor based Health Monitoring System
Sensor based Health Monitoring System
 
Ml ppt at
Ml ppt atMl ppt at
Ml ppt at
 
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
 
Influence of time and length size feature selections for human activity seque...
Influence of time and length size feature selections for human activity seque...Influence of time and length size feature selections for human activity seque...
Influence of time and length size feature selections for human activity seque...
 
Modeling Electronic Health Records with Recurrent Neural Networks
Modeling Electronic Health Records with Recurrent Neural NetworksModeling Electronic Health Records with Recurrent Neural Networks
Modeling Electronic Health Records with Recurrent Neural Networks
 
AutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital DecisionsAutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital Decisions
 
Predictive Modelling
Predictive ModellingPredictive Modelling
Predictive Modelling
 
Week 1.pdf
Week 1.pdfWeek 1.pdf
Week 1.pdf
 
Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...
 
Amos Folarin - Big Data in Mental Health - 23rd July 2014
Amos Folarin - Big Data in Mental Health - 23rd July 2014Amos Folarin - Big Data in Mental Health - 23rd July 2014
Amos Folarin - Big Data in Mental Health - 23rd July 2014
 
Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401
 

Plus de Neal Lathia

Mobile "Context Awareness"
Mobile "Context Awareness"Mobile "Context Awareness"
Mobile "Context Awareness"
Neal Lathia
 

Plus de Neal Lathia (20)

Everything around the NLP (London.AI Feb 2021)
Everything around the NLP (London.AI Feb 2021)Everything around the NLP (London.AI Feb 2021)
Everything around the NLP (London.AI Feb 2021)
 
Using machine learning for customer service (Data Talks Club)
Using machine learning for customer service (Data Talks Club)Using machine learning for customer service (Data Talks Club)
Using machine learning for customer service (Data Talks Club)
 
Using language models to supercharge Monzo’s customer support
 Using language models to supercharge Monzo’s customer support Using language models to supercharge Monzo’s customer support
Using language models to supercharge Monzo’s customer support
 
Making Better Decisions Faster
Making Better Decisions FasterMaking Better Decisions Faster
Making Better Decisions Faster
 
Machine Learning, Faster
Machine Learning, FasterMachine Learning, Faster
Machine Learning, Faster
 
AI & Personalised Experiences
AI & Personalised ExperiencesAI & Personalised Experiences
AI & Personalised Experiences
 
Opportunities & Challenges in Personalised Travel
Opportunities & Challenges in Personalised TravelOpportunities & Challenges in Personalised Travel
Opportunities & Challenges in Personalised Travel
 
Bootstrapping a Destination Recommendation Engine
Bootstrapping a Destination Recommendation EngineBootstrapping a Destination Recommendation Engine
Bootstrapping a Destination Recommendation Engine
 
Machine Learning for Product Managers
Machine Learning for Product ManagersMachine Learning for Product Managers
Machine Learning for Product Managers
 
Opportunities and Challenges of Using Smartphones for Health Monitoring and I...
Opportunities and Challenges of Using Smartphones for Health Monitoring and I...Opportunities and Challenges of Using Smartphones for Health Monitoring and I...
Opportunities and Challenges of Using Smartphones for Health Monitoring and I...
 
The Ubhave Framework
The Ubhave FrameworkThe Ubhave Framework
The Ubhave Framework
 
Contextual Dissonance: Design Bias in Sensor-Based Experience Sampling Methods
Contextual Dissonance: Design Bias in Sensor-Based Experience Sampling MethodsContextual Dissonance: Design Bias in Sensor-Based Experience Sampling Methods
Contextual Dissonance: Design Bias in Sensor-Based Experience Sampling Methods
 
The Ubhave Project (Part 1/2)
The Ubhave Project (Part 1/2)The Ubhave Project (Part 1/2)
The Ubhave Project (Part 1/2)
 
Open Source Smartphone Libraries for Computational Social Science
Open Source Smartphone Libraries for Computational Social Science Open Source Smartphone Libraries for Computational Social Science
Open Source Smartphone Libraries for Computational Social Science
 
Building Systems to Capture, Measure, and Use Emotions and Personality
Building Systems to Capture, Measure, and Use Emotions and PersonalityBuilding Systems to Capture, Measure, and Use Emotions and Personality
Building Systems to Capture, Measure, and Use Emotions and Personality
 
Quantified by Smartphone
Quantified by SmartphoneQuantified by Smartphone
Quantified by Smartphone
 
Mobile Sensors in the City
Mobile Sensors in the CityMobile Sensors in the City
Mobile Sensors in the City
 
Mobile "Context Awareness"
Mobile "Context Awareness"Mobile "Context Awareness"
Mobile "Context Awareness"
 
London Shared Bicycles: Measuring Intervention Impact
London Shared Bicycles: Measuring Intervention ImpactLondon Shared Bicycles: Measuring Intervention Impact
London Shared Bicycles: Measuring Intervention Impact
 
Recommender Systems in 2012
Recommender Systems in 2012Recommender Systems in 2012
Recommender Systems in 2012
 

Dernier

Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
nirzagarg
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Bertram Ludäscher
 
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
HyderabadDolls
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
ranjankumarbehera14
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
nirzagarg
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
nirzagarg
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
gajnagarg
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
chadhar227
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 

Dernier (20)

Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbers
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
Kings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about themKings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about them
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 

Data Science in #mHealth

  • 1. Data Science in #mHealth @neal_lathia @Cambridge_Uni @emotionsense
  • 2. Many data science applications deal with some kind of behaviour.
  • 3. Data science: making sense from & putting big data sets of small behaviours to use. (e.g., ratings #recsys)
  • 4. Many health settings relate to one or more of our behaviours.
  • 5. Improving health: changing our small, momentary, cumulative behaviours. (e.g., one cigarette smoking cessation)
  • 6. How can we capture our small, momentary, cumulative behaviours?
  • 8.
  • 9.
  • 10.
  • 11. For the user, Emotion Sense is about psychological wellbeing, ref lection, momentary assessment, and contextual feedback.
  • 12. What can we learn from the data? This talk: unsupervised Learning + viz, R + python
  • 13. angry anxious lonely relaxedenthusiasticcalm @EmotionSense has multiple assessments for mood and life satisfaction
  • 15. Happiness Metric: Many moments of positive feelings, high satisfaction with life
  • 16. Accelerometer Data ● 109,054,559 samples collected in f irst 12(ish) months of public deployment from 14,810 users ● What 'emergent' behaviours exist in this data? How does it characterise the users? ● How do these behaviours relate to external data we have collected from the same users (i.e., mood)?
  • 17.
  • 18. Accelerometer Samples Matrix ● Extract features from accelerometer samples ● Each sample has 3 axes (x, y, z) ● Each axis is a time series of data ● Various features can be extracted: – Statistical – Temporal – Signal
  • 19. from sklearn.cluster import KMeans c = KMeans(init='k-means++', n_clusters=4) c.fit(data) result = method.labels_
  • 20. plot(X, Y, col=grey(.5), type="l", axes=F, xlab="Time of Day", ylab=ylab, main=title, ylim=c(0,1)) axis(1, labels=seq(from=0,to=24,by=1), at=seq(from=0,to=24,by=1)) axis(2) box() grid() f <- rep(1/4, 4) y_lag <- filter(Y, f, sides=2) lines(X, y_lag, col="red", lwd=2)
  • 21. Week day, k = 2 Visualising Centroids Example (Non-f inal) Result Week end, k = 2
  • 22. Visualising by heat map Example (Non-f inal) Result Week day Week end
  • 23. Visualising by heat map (python) plt.figure() fig, ax = plt.subplots() ax.set_xticks(np.arange(data.shape[1])+0.5, minor=False) ax.set_xticklabels([i for i in xrange(0, 24)], minor=False) ax.xaxis.set_tick_params(width=0) ax.xaxis.tick_bottom() ax.set_yticks([]) ax.set_yticklabels([]) plt.xlabel('Time of Day') plt.title(p_title) plt.grid(False) ax.pcolormesh(data, cmap=plt.cm.hot) savefig(filename+'.pdf')
  • 24.
  • 25. Conclusions ● Tools – Android, R, Python (multiprocessing), MongoDB – https://github.com/nlathia/research-util – https://github.com/xsenselabs ● What's haven't I talked about? – Supervised learning (“what are you doing now?”) – Other sensors ● Next Gen: – Levels of behaviour that were never possible to observe before; scale without wearables – Potential to catch people “in the moment” – Time to redesign behavioural interventions?
  • 27. Data Science in #mHealth @neal_lathia @Cambridge_Uni @emotionsense