## 4 Results
### Jamming Detection Algorithm Use Case  
For this example, the steps of the algorithm for the detection of jamming indicated in Figure 4 have been followed. The example takes the results of the experiment carried out that are found in Table 7. The selected initial setup is done in the first four steps:  
Figure 16: LQI results per node under a cooperative scheme. Figure 17: LQI results per node under a collaborative scheme. \begin{table}
\begin{tabular}{c c c c c c c c c} \hline \hline \multirow{2}{*}{Energy (J)} & **A** & \(Th_{A_{B}1}\) & **B** & \(Th_{B_{C}1}\) & **C** & \(Th_{C_{D}1}\) & **D** & \(Th_{D_{E}1}\) & **E** \\  & \(N_{I}\) & & \(R_{E}\) & & \(R_{A}\) & & \(D_{E}\) & & \(C_{O}\) \\  & 0.09 & 0.145 & 0.2 & 0.23 & 0.26 & 0.295 & 0.33 & 0.35 & 0.37 \\ \hline \multirow{3}{*}{PDR (\%)} & **A** & \(Th_{A_{B}2}\) & **B** & \(Th_{B_{C}2}\) & **C** & \(Th_{C_{D}2}\) & **D** & \(Th_{D_{E}2}\) & **E** \\  & \(N_{I}\) & & \(R_{E}\) & & \(R_{A}\) & & \(D_{E}\) & & \(C_{O}\) \\  & 94 & 94.5 & 95 & 95 & 95 & 96 & 97 & 98 & 99 \\ \hline \multirow{3}{*}{RSSI (\(-\)dBm)} & **A** & \(Th_{A_{B}3}\) & **B** & \(Th_{B_{C}3}\) & **C** & \(Th_{C_{D}3}\) & **D** & \(Th_{D_{E}3}\) & **E** \\  & \(N_{I}\) & & \(R_{E}\) & & \(R_{A}\) & & \(D_{E}\) & & \(C_{O}\) \\ \cline{1-1}  & \(-\)103 & \(-\)102.5 & \(-\)102 & \(-\)94.5 & \(-\)87 & \(-\)85 & \(-\)83 & \(-\)76.5 & \(-\)70 \\ \hline \hline \end{tabular}
\end{table} 
Table 10: Decision threshold values. \begin{table}
\begin{tabular}{c c c c c} \hline \hline \multirow{2}{*}{**Metric or Symptom**} & \multirow{2}{*}{\(C_{O}\) **(Constant)**} & \multirow{2}{*}{\(D_{E}\) **(Deceptive)**} & \multicolumn{2}{c}{_Data label_} & \multirow{2}{*}{\(R_{E}\) **(Raudom)**} & \multirow{2}{*}{\(R_{E}\) **(Reactive)**} & \multirow{2}{*}{\(N_{I}\) **(No Jamming)**} \\ \hline Energy (J) & 0.37 & 0.33 & 0.26 & 0.2 & 0.09 \\ \hline PDR (\%) & 94 & 95 & 95 & 97 & 99 \\ \hline RSSI (\(-\)dBm) & \(-\)103 & \(-\)102 & \(-\)87 & \(-\)83 & \(-\)70 \\ \hline \end{tabular}
\end{table} 
Table 8: _Data and data labels._ \begin{table}
\begin{tabular}{c c c c c c} \hline \hline \multirow{2}{*}{Energy (J)} & **A** & **B** & **C** & **D** & **E** \\  & \(N_{I}\) & \(R_{E}\) & \(R_{A}\) & \(D_{E}\) & \(C_{O}\) \\  & 0.09 & 0.2 & 0.26 & 0.33 & 0.37 \\ \hline \multirow{3}{*}{PDR (\%)} & **A** & **B** & **C** & **D** & **E** \\  & 94 & 95 & 95 & 97 & 99 \\ \hline \multirow{3}{*}{RSSI (\(-\)dBm)} & **A** & **B** & **C** & **D** & **E** \\  & \(N_{I}\) & \(R_{E}\) & \(R_{A}\) & \(D_{E}\) & \(C_{O}\) \\ \cline{1-1}  & \(-\)103 & \(-\)102 & \(-\)87 & \(-\)83 & \(-\)70 \\ \hline \hline \end{tabular}
\end{table} 
Table 9: Sorted data from smallest (A) to largest (E). Step 10: \(n=1\). Energy analysis:  
Step 11: (\(n=1\)): Data = Data 1, where Data 1 = 0.265 J (from step 6). (Steps 12 and 13 are presented after energy analysis as they repeat Steps from 14 to 32). Rhombs from Figure 18 are used to decide from steps 14 to 19:  
Step 14: First rhomb: Data 1 (0.265) \(<=Th_{A_{B}1}\) (0.145) \(\Rightarrow\)\(no\). Step 15: Second rhomb \(Th_{A_{B}1}(0.145)<Data1(0.265)<=Th_{B_{C}1}(0.23)\)\(\Rightarrow\)\(no\). Step 16: Third rhomb \(Th_{B_{C}1}(0.23)<Data1(0.265)<=Th_{C_{D}1}(0.295)\)\(\Rightarrow\)\(yes\). Step 17: Fourth rhomb \(Th_{C_{D}1}(0.295)<Data1(0.265)<=Th_{D_{E}1}(0.35)\)\(\Rightarrow\)\(no\). Step 18: \(Th_{D_{E}}(0.35)<Data1(0.265)\)\(\Rightarrow\)\(no\), then:  
Step 19: Obtain _data label_ associated to Data selected (see Figure 19). Step 20: Is _data label_\(=C_{0}?\)\(\Rightarrow\)\(no\). Step 21: Is _data label_\(=D_{E}?\)\(\Rightarrow\)\(no\). Step 22: Is _data label_\(=R_{A}?\)\(\Rightarrow\)\(yes\). Step 23: Is _data label_\(=R_{E}?\)\(\Rightarrow\)\(no\). Step 24: Is _data label_\(=N_{I}?\)\(\Rightarrow\)\(no\). Step 26: \(C_{D_{E}}=0\). Step 27: \(C_{R_{A}}=0+1=\mathbf{1}\). Step 28: \(C_{R_{E}}=0\). Step 29: \(C_{N_{I}}=0\). Step 30: \(n=n+1=1+1=2\). Step 31: RSSI analyzed \((n>3)?\)\(\Rightarrow\)\(no\). Step 32: PDR analyzed \((n>2)?\)\(\Rightarrow\)\(no\). Figure 19: _Data label_ decisions.