View full-text article in PMC Sensors (Basel). 2022 Sep 15;22(18):6980. doi: 10.3390/s22186980 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2022 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 (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 5 elaborate_day Input: input_data Output: rules 1:temp_adj← NxN zero matrix with N = size(nodes_ids) 2:for all source_row∈input_data 3: source_node←get_node(source_row,temp_adj) 4: related_rows←get_related_rows(source_node,input_data,max_t) 5: for all related_row∈related_rows do 6: related_node←get_node(related_row,temp_adj) 7: temp_adj[source_node.s_id][related_node.s_id]=1 8: end for 9:end for 10:adj_mat←(adj_mat+temp_adj)/2∗mult 11:Rounds to 0 the adj_mat values less than min_perc 12:rules←calculate_rules(adj_mat) 13:return rules