Research Article
Activity Feature Solving Based on TF-IDF for Activity Recognition in Smart Homes
| Input: , a set of activity instances | | , set of SEF features | | | Output: | | 1. ; | | 2. Assign 0 to , where >=1 and k<=n, j>=1 and j<=m | | 3. ; | | 4. while(j<=m) | | 5. Extract the first activated sensor ; | | 6. Extract the last activated sensor ; | | 7. ; ; | | 8. while(k<=n) | | 9. if is same to then | | 10. ++; | | 11. end if | | 12. if is same to then | | 13. ++; | | 14. end if | | 15. ++; | | 16. end while | | 17. end while | | 18. return |
|