Research Article

Internet of Things-Enabled Optimal Data Aggregation Approach for the Intelligent Surveillance Systems

Algorithm 1

Proposed server-side data aggregation and surveillance algorithm for the smart cities.
Input: Captured Data
Output: Return Refined Data
(1)zero;
(2)zero;
(3)Counter0;
(4)0;
(5)0;
(6)for every captured data by device 1 & 2 do
(7)if distance (, ) then
(8)   OR ;
(9)  ii + 1;
(10)else
(11)   OR ;
(12)  jj + 1;
(13)end if
(14)if (, ) outliers then
(15)  Avg = ;
(16)  , Avg
(17)end if
(18)end for
(19)return Refined Data Values