| Literature DB >> 31627356 |
Junfang Gong1, Runjia Li2, Hong Yao3, Xiaojun Kang4, Shengwen Li5.
Abstract
The human daily activity category represents individual lifestyle and pattern, such as sports and shopping, which reflect personal habits, lifestyle, and preferences and are of great value for human health and many other application fields. Currently, compared to questionnaires, social media as a sensor provides low-cost and easy-to-access data sources, providing new opportunities for obtaining human daily activity category data. However, there are still some challenges to accurately recognizing posts because existing studies ignore contextual information or word order in posts and remain unsatisfactory for capturing the activity semantics of words. To address this problem, we propose a general model for recognizing the human activity category based on deep learning. This model not only describes how to extract a sequence of higher-level word phrase representations in posts based on the deep learning sequence model but also how to integrate temporal information and external knowledge to capture the activity semantics in posts. Considering that no benchmark dataset is available in such studies, we built a dataset that was used for training and evaluating the model. The experimental results show that the proposed model significantly improves the accuracy of recognizing the human activity category compared with traditional classification methods.Entities:
Keywords: deep learning; human activity category recognition; long short-term memory network (LSTM); social media; temporal information encoding
Mesh:
Year: 2019 PMID: 31627356 PMCID: PMC6843133 DOI: 10.3390/ijerph16203955
Source DB: PubMed Journal: Int J Environ Res Public Health ISSN: 1660-4601 Impact factor: 3.390
Figure 1The proposed ALSTM (activity LSTM) model.
An example of a post on Yelp.
| Attribute | Value | Description |
|---|---|---|
| Post id | X7mDliDB3jEiPGPHOmDzyw | Unique id for every post |
| User id | msQe1u7Z_XuqjGoqhB0J5g | Unique id for every user |
| Business id | iCQpiavjjPzJ5_3gPD5Ebg | Unique id for every business |
| Star | 2.0 | Star rating for the business |
| Date | 2011-02-25 | Time when the post was published |
| Post | The pizza was ok. Not the best I’ve had. | The post that the user published |
An example of business information.
| Business Information | Description | |
|---|---|---|
| Id | iCQpiavjjPzJ5_3gPD5Ebg | Unique id for every business |
| Name | Minhas Micro Brewery | The name of the business |
| Address | 1314 44 Avenue NE | The address of the business |
| City | Calgary | City where the business is located |
| Postal code | T2E 6L6 | The postal code for the business |
| Post count | 24 | The number of posts the business received |
| Stars | 2.0 | Star rating for the business |
| Categories | Pizza, Restaurants, Food | The category for the business |
| Hours | Monday: 8:30–17:00, | Business time for every company |
Activity categories and their distribution in time.
| Category | All | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
|---|---|---|---|---|---|---|---|---|
| Eating food | 2087 | 278 | 299 | 313 | 230 | 299 | 327 | 341 |
| Beauty & spa | 2265 | 323 | 353 | 295 | 357 | 340 | 308 | 289 |
| Entertainment | 2085 | 294 | 293 | 245 | 296 | 284 | 351 | 322 |
| Travel | 2085 | 326 | 327 | 292 | 279 | 279 | 289 | 293 |
| Shopping | 2085 | 304 | 336 | 272 | 314 | 289 | 265 | 305 |
| Services | 2085 | 338 | 379 | 320 | 335 | 239 | 182 | 292 |
| Sports | 2085 | 368 | 298 | 305 | 306 | 245 | 254 | 309 |
| Treating & Health | 2085 | 354 | 378 | 352 | 351 | 214 | 150 | 286 |
| Car-related activities | 2085 | 315 | 328 | 325 | 350 | 275 | 222 | 270 |
| Nightlife | 2085 | 317 | 290 | 286 | 253 | 293 | 320 | 326 |
| Keep pets | 2085 | 302 | 322 | 326 | 314 | 294 | 241 | 286 |
| Engaged in education | 2085 | 326 | 317 | 346 | 307 | 236 | 249 | 304 |
| Religious activities | 2085 | 292 | 282 | 260 | 231 | 239 | 427 | 354 |
| Listening | 863 | 142 | 146 | 140 | 127 | 88 | 103 | 117 |
| total | 28,150 | 4279 | 4348 | 4077 | 4050 | 3614 | 3688 | 4094 |
Keywords and the number of categories in the dictionary.
| Category | Number |
|---|---|
| Eating food | 120 |
| Beauty & spa | 49 |
| Entertainment | 85 |
| Travel | 98 |
| Shopping | 135 |
| Services | 99 |
| Sports | 212 |
| Treating & Health | 296 |
| Car-related activities | 306 |
| Nightlife | 259 |
| Keep pets | 258 |
| Engaged in education | 326 |
| Religious activities | 248 |
| Listening | 244 |
Overall accuracy.
| Activity | Accuracy | |||||
|---|---|---|---|---|---|---|
| SVM | TF-IDF | ALSTM-BASIC | ALSTM-DE | ALSTM-TE | ALSTM-DE-TE | |
| Eating food | 0.6502 | 0.4281 | 0.8019 | 0.8722 | 0.8738 | 0.8706 |
| Beauty & spa | 0.6384 | 0.1040 | 0.8944 | 0.9200 | 0.9200 | 0.9200 |
| Entertainment activity | 0.5376 | 0.2064 | 0.7888 | 0.7936 | 0.8000 | 0.8384 |
| Travel | 0.5408 | 0.1504 | 0.7904 | 0.8368 | 0.8112 | 0.8352 |
| Shopping | 0.4480 | 0.2304 | 0.7520 | 0.7632 | 0.8016 | 0.7888 |
| Services | 0.4432 | 0.2112 | 0.7440 | 0.7360 | 0.7056 | 0.7296 |
| Sports | 0.4064 | 0.5200 | 0.7536 | 0.7824 | 0.7712 | 0.7440 |
| Treating & Health | 0.5072 | 0.8288 | 0.8912 | 0.8800 | 0.8736 | 0.8496 |
| Car-related activities | 0.4384 | 0.8928 | 0.8176 | 0.8608 | 0.8400 | 0.8256 |
| Nightlife | 0.4544 | 0.6864 | 0.8496 | 0.7792 | 0.8128 | 0.7744 |
| Keep pets | 0.4624 | 0.4960 | 0.8656 | 0.8512 | 0.9040 | 0.8832 |
| Engaged in education | 0.4080 | 0.7808 | 0.8112 | 0.7376 | 0.8288 | 0.8096 |
| Religious activities | 0.5296 | 0.5856 | 0.8368 | 0.8624 | 0.8592 | 0.8736 |
| Listening | 0.3215 | 0.5749 | 0.7629 | 0.7902 | 0.7929 | 0.7766 |
| Overall accuracy | 0.4897 | 0.4753 | 0.8129 | 0.8199 | 0.8293 | 0.8242 |
Figure 2(a) Accuracy and (b) loss curve.
Figure 3Heat maps of activities for the four models.
Accuracy of the selected 9 category activities.
| Activity | Accuracy | |||||
|---|---|---|---|---|---|---|
| SVM | TFIDF | ALSTM-BASIC | ALSTM-DE | ALSTM-TE | ALSTM-DE-TE | |
| Eating food | 0.8067 | 0.6230 | 0.9361 | 0.9281 | 0.9425 | 0.9377 |
| Beauty & spa | 0.6736 | 0.1728 | 0.9248 | 0.9200 | 0.9120 | 0.9472 |
| Travel | 0.6720 | 0.4336 | 0.8992 | 0.9168 | 0.9120 | 0.8880 |
| Shopping | 0.5376 | 0.4224 | 0.8384 | 0.8528 | 0.8544 | 0.8800 |
| Sports | 0.4752 | 0.6288 | 0.8256 | 0.8096 | 0.8432 | 0.8512 |
| Treating & Health | 0.5488 | 0.8864 | 0.9040 | 0.9056 | 0.9328 | 0.8704 |
| Keep pets | 0.4928 | 0.5440 | 0.8928 | 0.9040 | 0.8944 | 0.8896 |
| Engaged in education | 0.4528 | 0.8320 | 0.8288 | 0.8432 | 0.8496 | 0.7792 |
| Religious activities | 0.6160 | 0.6448 | 0.9056 | 0.9152 | 0.9008 | 0.9184 |
| Overall accuracy | 0.5862 | 0.5764 | 0.8839 | 0.8884 | 0.8935 | 0.8846 |