Skip to main content
. 2023 Feb 27;23(5):2633. doi: 10.3390/s23052633
Algorithm 1 Smart Management of SpWBAN Operations by the Controller
Input
SpWBAN Sensor Configuration Parameters ETmulti,ERmulti,ETsingle,ERsingle, EO
Energy-related parameters initialization Einactive
Sensors active time TinactiveandTactive
Operations
Run operating loops
   Check energy levels at Sensors Et,source
   Generate voltage based on applied forces on nano-enriched piezoelectric materials V
   Calculate the energy generated from the piezoelectric materials Ep, source
   Adjust the data sending rate λ and number of data packets sent k
   Compute the energy consumption for sending considering the harvested energy and sensor activity
   Compute the total energy consumption in SpWBAN Esensor, total
   Estimate SpWBAN lifetime Tlifetimeext
   Estimate SpWBAN throughput Throughput
   Recall SpWBAN from trained datasets and models
   Check the energy level generated and consumed at each sensor based on trained models
   Update the activity duration of sensors based on the classification of their energy levels
Output
SpWBAN sensors configuration
   SpWBAN lifetime
   SpWBAN throughput