View full-text article in PMC Sensors (Basel). 2020 Dec 25;21(1):85. doi: 10.3390/s21010085 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 2 Operation of cluster head (node i*) Input:recognition model M 1:for each time step t do 2: collect data Si*,t from own sensors 3: wait for data St transmitted from sensor nodes 4: recognize activity a^t=R(Si*,t∪St,M) 5: send a^t to sink 6:end for