# Fine-Grained Mapping Between Daily Activity Features in Smart Homes
## 4 Results and Evaluation
### Results  
In Table 2, the smart homes HH101, HH105, and HH110 are classified into Group A because they have the same layouts. Similarly, HH110, HH114, and HH123 are classified into Group B. The activities involved in each smart home vary, but only the shared activities within each group are used to test the proposed approach. These shared activities are shown in Table 4. Two independent experiments are conducted to evaluate the proposed approach. The sensor mapping is carried out between any two smart homes within Group A (or Group B). The experimental results for DAR are shown in Tables 5 and 6 (for Group A) and Tables 7 and 8 (for Group B). The headers of columns 3-8 can be divided into two parts, separated by the character \"-\". The sensor event streams in the first part are used as the training set, while the streams in the second part are used as the test set. For some classifiers, the best results from each experiment are highlighted in bold. The best results for all classifiers are underlined in bold. It can be observed that the Proposed Approach (PA) outperforms both C and CF. In most comparisons, the performance achieved by PA and CF is significantly better than that of C. Specifically: \begin{table}
\begin{tabular}{c c c c c c c c} \hline \hline \multirow{2}{*}{**Classifier**} & \multirow{2}{*}{**Approach**} & **HH101–**HH105–**HH105** & **HH101–**HH110** & **HH110–**HH110** & **HH105–**HH110** & **HH110–**HH110** & **HH110–**HH110** \\ \hline \multirow{4}{*}{BN} & C & 76.9\% & **85.7\%** & 73.5\% & 62.4\% & 72.4\% & 71.6\% \\ \cline{2-8}  & CF & 66.4\%. & 67.0\% & 69.5\% & 48.6\% & 71.1\% & 58.1\% \\ \cline{2-8}  & PA & **79.4\%** & 85.5\% & **73.8\%** & **65.2\%** & **76.8\%** & **72.2\%** \\ \hline \multirow{4}{*}{NB} & C & 72.0\% & 76.3\% & 61.6\% & 51.3\% & 62.2\% & 65.3\% \\ \cline{2-8}  & CF & 70.4\% & 60.3\% & **67.2\%** & 49.9\% & 69.1\% & 46.6\% \\ \cline{2-8}  & PA & **75.2\%** & **77.5\%** & 67.0\% & **58.4\%** & **69.8\%** & **65.4\%** \\ \hline \multirow{4}{*}{RF} & C & 72.6\% & **82.8\%** & 51.6\% & 26.3\% & 68.1\% & 63.4\% \\ \cline{2-8}  & CF & 72.5\% & 71.6\% & **74.7\%** & 53.7\% & **70.6\%** & 54.4\% \\ \cline{1-1} \cline{2-8}  & PA & **75.5\%** & 81.7\% & 54.8\% & **57.8\%** & 60.0\% & **67.2\%** \\ \hline \hline \end{tabular}
\end{table} 
Table 5: Comparison of precision of group A. For Group A: The average precision achieved by PA increased by 1.73% (using BN) and 4.1% (using NB) compared to CF. When compared to C, the increase was 12.03% (using BN) and 8.3% (using NB). The average precision achieved by PA increased by 5.37% compared to CF (using RF), while it decreased slightly by 0.08% compared to C (using RF). \begin{table}
\begin{tabular}{c c c c c c c c} \hline \hline
**Classifier** & **Approach** & \begin{tabular}{c} **HH101-** \\ **HH105** \\ \end{tabular} & \begin{tabular}{c} **HH105-** \\ **HH101** \\ \end{tabular} & \begin{tabular}{c} **HH101-** \\ **HH110** \\ \end{tabular} & \begin{tabular}{c} **HH110-** \\ **HH110** \\ \end{tabular} & \
\begin{tabular}{c} **HH105-** \\ **HH110** \\ \end{tabular} &
\begin{tabular}{c} **HH110-** \\ **HH110** \\ \end{tabular} \\ \hline \multirow{3}{*}{BN} & C & 70.5\% & 77.4\% & 31.3\% & 46.1\% & 69.4\% & 69.3\% \\ \cline{2-8}  & CF & 55.0\% & 62.1\% & 25.1\% & 46.2\% & 60.9\% & 57.0\% \\ \cline{2-8}  & PA & **73.6\%** & **78.2\%** & **42.8\%** & **50.8\%** & **73.4\%** & **70.8\%** \\ \hline \multirow{3}{*}{NB} & C & 66.4\% & 69.7\% & 31.9\% & 28.1\% & 61.3\% & 57.5\% \\ \cline{2-8}  & CF & 53.5\% & 52.3\% & 20.0\% & 32.4\% & 49.1\% & 46.5\% \\ \cline{2-8}  & PA & **72.9\%** & **73.0\%** & **33.6\%** & **34.3\%** & **68.7\%** & **60.9\%** \\ \hline \multirow{3}{*}{RF} & C & 65.0\% & 50.3\% & 26.0\% & 45.8\% & 64.7\% & **62.0\%** \\ \cline{2-8}  & CF & 51.0\% & 62.6\% & 20.6\% & **47.3\%** & 62.8\% & 61.4\% \\ \cline{2-8}  & PA & **70.1\%** & **53.6\%** & **31.9\%** & 46.1\% & **68.9\%** & 61.0\% \\ \hline \hline \end{tabular}
\end{table} 
Table 6: Comparison of accuracy of group A.