Research Article
Activity Feature Solving Based on TF-IDF for Activity Recognition in Smart Homes
Input: , a set of activity instances | , set of features | | Output: | 1. ; | 2. ; | 3. while(j<=m) | 4. Collect all sensors which are activated when is active; | 5. Calculate the TF-IDF value of using , formula (1) and formula (2); | 6. ;++; | 7. while(k<=n) | 8. for each in | 9. if is same to then | 10. ; | 11. end if | 12. end for | 13. ++; | 14. end while | 15. end while | 16. return |
|