I want to build a table like this:

I have tried a code but it doesn't work properly:
\begin{table}[htp]
\caption{The temporal outlier detection accuracy of hourly mean values with respect to the MFs in 2007-09-30}
\label{tab:todh30}
\centering
\footnotesize\setlength{\tabcolsep}{2.5pt}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline
Node ID & \multicolumn{2}{c|}{Density-based} \\ \cline{2-3} & \multicolumn{2}{c|}{Mahalanobis distance-based} \\ \cline{2-3} & \multicolumn{2}{c|}{Running average-based} \\ \cline{2-3}
& DR\% & FPR\% \\ \hline & DR\% & FPR\% \\ \hline & DR\% & FPR\% \\ \hline
25 & 100 & 71 \\ \hline & 100 & 71 \\ \hline & 100 & 60 \\ \hline
28 & 100 & 57 \\ \hline & 100 & 57 \\ \hline & 66 & 60 \\ \hline
29 & 100 & 62 \\ \hline & 100 & 57 \\ \hline & 100 & 50 \\ \hline
31 & 100 & 57 \\ \hline & 50 & 66 \\ \hline & 66 & 60 \\ \hline
32 & 100 & 71 \\ \hline & 100 & 66 \\ \hline & 100 & 66 \\ \hline
\end{tabular}
\end{table}


