Abstract
In the context of smart home, it is very important to identify usage patterns of Internet of things (IoT) devices. Finding these patterns and using them for decision-making can provide ease, comfort, practicality, and autonomy when executing daily activities. Performing knowledge extraction in a decentralized approach is a computational challenge considering the tight storage and processing constraints of IoT devices, unlike deep learning, which demands a massive amount of data, memory, and processing capability. This article describes a method for mining implicit correlations among the actions of IoT devices through embedded associative analysis. Based on support, confidence, and lift metrics, our proposed method identifies the most relevant correlations between a pair of actions of different IoT devices and suggests the integration between them through hypertext transfer protocol requests. We have compared our proposed method with a centralized method. Experimental results show that the most relevant rules for both methods are the same in 99.75% of cases. Moreover, our proposed method was able to identify relevant correlations that were not identified by the centralized one. Thus, we show that associative analysis of IoT device state change is efficient to provide an intelligent and highly integrated IoT platform while avoiding the single point of failure problem.
Keywords
Introduction
The Internet of things (IoT) is composed of everyday objects with embedded and distributed systems that allow their access and control via the Internet. When combined with intelligence and machine learning techniques, IoT devices can understand their surroundings and take appropriate, automated actions, allowing them to be used in some exciting scenarios ranging from simple residential automation to complex industrial safety tasks.
The ability to provide intelligence and autonomy to IoT devices relies mainly on the need to identify patterns and implicit correlations from such devices. The architecture, centralized or decentralized, in which the intelligent environments are implemented is directly related to the pattern recognition technique adopted.
According to Chen et al. 1 and Verhelst and Moons, 2 the deep neural networks can become a popular and helpful model for pattern recognition, classification, and prediction in IoT. However, due to the high computational cost, its use in a fully decentralized architecture, where each object has its own controller independent from the others, requires devices that can handle an embedded deep learning process, such as single-board computers (e.g. Raspberry Pi, Beagle Board, and Rock64). This approach can result in a waste of resources with high costs, depending on the number of devices. However, an architecture that requires sharing resources from a single device (centralized architecture) presents a delicate characteristic that is a major limitation for low-cost applications in IoT, namely, the central node dependency in which the learning process occurs. Such a method creates a single point of failure that can affect all of the devices at the same time in the case of a problem on the central node. A second observation is the amount of resources available in that node. In order to handle the amount of data generated by IoT devices, the central node must dispose of several resources for both processing and storage to retain and analyze all of the generated information from the controlled devices, increasing both implementation and maintenance costs.
In order to overcome these barriers, we propose a method that performs association knowledge extraction from several decentralized databases embedded in IoT devices that compose a smart environment. Each device provides all mechanisms to store, process, analyze, and share all data needed to identify implicit correlations between its actions and the actions of other devices in the same environment, but, different from usual data mining approach, the proposed method breaks the processing in small steps so it can be done inside of IoT device, guaranteeing its autonomy.
Driven by the challenge to obtain globally interesting correlations based on local association analysis, the proposed method, called decentralized association rules extraction (DARE), presents an approach that identifies the strongest correlations between a pair of devices, which share the same embedded storage parameters, and uses them to create an intelligent and integrated environment that models the users’ behavior. The observed correlations could be used as triggers to synchronize the states of multiple devices in a chain reaction and adapt the environment during the user’s activities, providing ease and comfort in their daily activities. Furthermore, this approach introduces an embedded storage and data processing scheme to save space without losing the capability to extract knowledge using the constrained resources from distributed IoT devices.
This approach could be used in several multi-domain applications such as traffic control systems in smart cities to avoid traffic jams or for setting up fast lane corridors for emergency services such as fire brigades and ambulances. As for applications in a single-domain environment such as smart buildings/houses, it is possible to synchronize the states of different devices, for example, power off the air conditioner (AC) when the office’s lights switch off at 18:00 o’clock, turn on a computer when an employee registers its entrance in the building, or even closing the houses windows when it starts raining.
The remainder of the article is organized as follows. In section “Association analysis,” this theory is discussed. In section “Related work,” we show how association analysis has been used in the literature to perform extractions in a decentralized environment with small data sets. Next, in section “Proposed method,” we describe the proposed architecture and its components followed by performance evaluation in section “Rule’s extraction evaluation.” Finally, section “Conclusion” presents conclusions and future research directions.
Association analysis
An association analysis is the discovery of rules that exhibit attribute-value conditions that often occur together in a given data set.1,3–5 This data set is formed by transactions that are composed of multiple items. A rule could be expressed as
A simple example of this association analysis could be applied to a supermarket database where the rules correlate groups of items that are often shown together. An instance of this correlation (rule) could be expressed as an inference that suggests that usually (metrics) the customers who buy coffee (antecedent) also buy milk (consequent). The relevance of this inference is given by the metrics that indicate how frequent (support), how dependent (lift), and how reliable (confidence) this inference is.
Metrics
Typically, association rules are considered interesting if they satisfy the minimum
Equation (1) represents the probability that both items (
The
Different from
Typically, an association analysis aims at identifying the largest and most frequent item set in the data set. For that, there are several association analysis algorithms such as Apriori, 6 FP-Growth, 7 and Constraint-Based Mining. 8 Different from these, our proposed method aims at identifying the strongest correlations between two items. In other words, we are looking for a rule that strongly correlates the antecedent and the consequent formed by 1-item set each. Assuming that each device’s state is an item in a transaction data set, through these metrics, it is possible to identify how the devices correlate to each other and how a single state’s change could affect the state of other devices.
Related work
This section presents studies that use association analysis techniques to correlate distributed devices and/or extract interesting correlations from small data sets. It also considers studies that perform extractions by grouping registers to reduce the dimensionality of data sets as a mechanism to reduce the processing workload during the association analysis. These issues represent essential features of our proposed approach (small data sets, embedded data mining, and storage/processing restrictions). This section is based on a systematic review available in Alencar et al. 9
A distributed approach called
The method proposed in Nazerfard, 4 called TEREDA, identifies temporal features and relations from sensor activities. This approach can extract the activities’ order, their usual start time, and duration by clustering the activities’ start time and correlating them to their duration. Furthermore, using an association mining technique (FP-Growth), it correlates the current activity to the next most probable activity based on its timing interval. This approach needs to centralize the data set and previously identify the specific activities in such a way that it is possible to perform that operation.
The research conducted by Kireev et al. 5 resulted in a method that predicts the devices’ states, based on association analysis, to identify if there is a failure probability. It correlates the current status to the predicted status, using FP-Growth, by mining unusual behavior based on the device’s changes. This approach correlates the states of the same device rather than correlating different devices with each other.
The work presented by Smith et al. 11 assessed the sensitivity and reliability of rules obtained from a small database that correlates clinical diagnoses and laboratory evaluations from a mammography data set. The rules were evaluated by Effron’s bootstrap method, which consists of creating several models from a database sample and comparing these models. The smaller the number of different models, the more reliable the rule. Even though it is an interesting technique, creating many models and comparing them demand a considerable amount of processing and memory space.
The goal of the studies presented by Chen et al. 12 and Heierman and Cook 13 was to identify the usage patterns in an intelligent environment. However, the first identifies the device’s power consumption patterns, and the second identifies a device’s state pattern. Through aggregation techniques and association rule mining (ARM), it was possible to conclude that, although each device has a unique usage pattern, some devices have similar characteristics that reveal a correlation among them. Also, it was possible to classify the user’s activity by clustering these similarities. However, both methods cannot predict the number of clusters created, and some interesting correlations may be lost if the clusters belong to slightly different time intervals.
The work conducted by McArthur et al. 14 explores the ARM in a small database to identify correlations between the unemployment rate and socioeconomic factors in southwestern Norway. To validate these correlations, the formal concept analysis (FCA) technique was applied, which is a principle-based method of deriving a conceptual hierarchy or formal ontology, from a collection of objects and their properties. Unexpectedly, both techniques (ARM and FCA) identified a correlation between the attributes of unemployed citizens and the higher unemployment rate regions. The result expresses that the same rules created by the mining method were expressed by relevant correlations between properties in FCA and shows that high unemployment is not occurring in rural or peripheral areas, but is occurring in the economic centers which, intuitively, have lower probabilities of having high unemployment rates. To achieve these results, the author analyzed a small but dense data set with a high computational cost, which is not recommended for constrained devices.
The proposal of Wang et al. 15 reduces the impacts on the searching cost in the association analysis by reducing the frequent item sets and removing duplicate records. Moreover, another optimization proposed by the authors is data compression where, considering binary values to represent the absence (i.e. bit 0) and presence (i.e. bit 1) of a particular item, a transaction can be represented by a string containing a list of items present and its index in a checklist. Although this compression mechanism reduces the storage space needed to represent the data, this method considers a centralized transaction data set, which could be a problem in decentralized IoT environments.
Seeking to explore the correlation between groups of sensors and actuators in a building, the method proposed by Gonzalez and Amft 16 proves their hypothesis that there is a correlation between the sensor’s state changes from a specific environment in a given space of time. The proposed grouping of variables, from the paper called Weighted Transitive Clustering, is based on timing correlations that exist between the sensors’ state changes that monitor the same environment. Thus, the grouped variables have a strong correlation during their state changes. Otherwise, variables belonging to other environments are correlated. Therefore, it is possible to infer which variables are related to the same space and can be grouped based on the rules of relationships. Similar to Wang et al., 15 this method demands access to all data set information. Besides that, considering a timing correlation, it may create an invalid set of correlations assuming devices from different environments have a similar pattern of activity.
The study conducted by Pal et al. 17 identified possible attacks at a water treatment plant through the generation of invariants. The experiment consisted of identifying correlated invariants among the 51 sensors with the Apriori association rule algorithm. Such a study provides evidence of association rule analysis efficiency to correlate sensor states in a cyber-physical environment. The result shows that it was able to identify these invariant generations during an attack on system. Though finding correlations between sensors from cyber-physical during an attack, it was necessary to analyze a considerable amount of data to identify them as a threat.
The pieces of evidence exposed by the literature4,5,12,13,16,17 show that it is possible to extract interesting information from a device’s change patterns instead of usage patterns. This slight difference reduces the amount of data that must be stored and analyzed, which satisfies an essential requirement in constrained environments. Also, the clustering data process, presented by the literature,4,5,10,11,16 certainly increases the computational cost due to the pre-processing but optimizes the association analysis reducing the number of candidates. The approaches presented by McArthur et al. 14 and Wang et al. 15 expose more compelling evidence by extracting relevant correlations in a small but dense data set.
Table 1 compares the related work based on some interesting features that could be useful to the goal of this article. From them, we could also extract novel techniques such as (1) to register all data in a discrete embedded data set, allowing us to avoid clustering operations in raw data and also acts as a pre-processing by grouping the registers that belong to the same discrete time interval; (2) the use of probabilistic analysis to determine which actions have the highest frequency in these discrete intervals; and (3) the probabilistic distribution along all discrete intervals, which makes it easy to identify similarities between devices, which is attractive to our proposed method. In the following sections, it is possible to identify how these characteristics and features were applied.
Related works on features.
DARE: decentralized association rules extraction.
Preprocessing data to create clusters
Based on Apriori
Study reference—1: Nazerfard 4 , 2: Kireev et al. 5 , 3: Bhuiyan and Wu 10 , 4: Smith et al. 11 , 5: Chen et al. 12 , 6: Heierman and Cook 13 ,7: McArthur et al. 14 , 8: Wang et al. 15 , 9: Gonzalez and Amft 16 , 10: Pal et al. 17
Proposed method
The DARE scheme for local and remote embedded data sets in distributed IoT devices is a collaborative mechanism in which each device should compare its pattern to the other devices’ patterns to identify the strongest correlations between the device’s actions and the remote devices’ actions. This mechanism is based on the Apriori ARM algorithm, but its goal and metrics are different as shown in this section.
A device must perform these embedded comparisons periodically, and the generated rules are only applied to this specific device, that is, each device has its own set of correlation rules. These rules allow the synchronization of a remote device’s state (rule’s consequent) based on a single input action in the source device (rule’s antecedent) if these actions satisfy both device’s patterns at the current time slot.
The proposed method is described in more detail in the following sections, which present all necessary specifications to provide a comprehension of devices expected behaviors (section “States and actions”), data storage (section “Embedded database and the pattern of changes”), and the mining process (section “Correlation extraction”).
States and actions
In our proposed method, each device has two well-defined sets:
Considering that each device acts independently, they must provide all the resources needed to handle the physical stimulus (signals/interruptions) and/or logical stimulus (hypertext transfer protocol (HTTP) requests).
Embedded database and the pattern of changes
The proposed method also defines a specific way to store the raw data to mitigate the lack of resources in IoT devices. Unlike the usual data mining and machine learning approach, DARE focuses on registering and analyzing the actions that stimulate a state change (pattern of actions), instead of creating multiple repeated registers for mapping the usage of devices along a period (pattern of usage). This difference reduces the amount of data that should be stored and analyzed during knowledge extraction.
Assuming
Illustration of an embedded data set (
To extract the pattern of action from
Once the transformation is performed, it is possible to extract a reliable pattern of actions as follow: let
This storage organization reduces the amount of data that should be preprocessed to perform the embedded association analysis. Combining a pair of action patterns from different devices into a transaction data set (
It is important to clarify that all devices must assume the same number of slots (
Transaction data sets.
As this process combines the patterns in pairs (
Correlation extraction
The process of correlation extraction occurs individually in each device in fixed time intervals (called checkpoints), so it is possible to adapt to the users’ pattern of interactions. For that, a device must know all other devices (targets) that have a pattern to share. Therefore, each device must previously join a specific default multicast group, shared by all devices, which allows a device to create a list of targets through a multicast echo request/response. 18 Different from broadcast, the multicast protocol allows sending a message to specific nodes instead of sending the message to every host in the broadcast domain. This also allows grouping a set of devices based on their characteristics (e.g. location, functionality, and different slot intervals). Our approach does not address problems related to routing, firewalls, and intrusion prevention system (IPS) configurations. For that, the network administrator must provide all resources to make sure that all devices can reach each other.
Once the device obtains the list of targets, an iterative process, as illustrated in Figure 1, begins.
Step I: The device identifies its own pattern of state changes (
Step II: The
Step III: the
Step IV: Finally, the association analysis extracts the strongest correlated pairs of actions from

Illustration of DARE steps.
This process repeats until all target devices are compared and the most relevant rules are stored in the correlation data set if it is the case.
Device’s architecture
This section describes a device architecture, all of its components and how they interact with the environment and with each other. Figure 2 depicts the proposed architecture.

DARE architecture overview.
As previously specified (section “States and actions”), each device is responsible for managing a single object from the environment (e.g. a temperature sensor, a water pump, an alarm, a relay, an AC, and a window). Therefore, it does not depend on any other device. This aspect helps to reduce the amount of storage and processing capability of IoT devices. Also, it controls the state space explosion by simplifying the analysis combining only single states.
Each device must be connected to a local network, joined to a shared multicast group address, and provide an API to make all of its actions accessible (as described in section “States and actions”) to control the object states. Also, through this API, it is possible to set some devices configurations, such as the multicast address, number of slots in the data set, extractions interval, and enable/disable rules in the correlations data set.
The correlated actions, identified by the association analysis, act as a triggered reaction that synchronizes the states from a pair of devices if it satisfies their patterns of actions. As an illustrative scenario, assume that an AC identifies an interesting correlation between its action “Turn On” with the action “Close” from a specific room’s window (RW), then the rule would be
To obtain such behavior, each device must implement the components presented in Figure 2, which works as follows:
Stimulus handler validates whether the input stimulus from the environment is logical, such as requests or messages or whether they are physical, such as interruptions on the microcontroller general-purpose input/outputs (GPIOs). If it is a valid input, it forwards a signal to the correspondent component to perform a change in the device’s state, sharing the device’s information (patterns, states, id, and others) or fire/enable/disable/discard a correlation rule. It may also implement additional features such as user interface, general configurations, and custom functionality.
State controller changes the representational device state and, in case of an actuator, sends a correspondent signal to GPIOs to change the module state (e.g. sends a “high” signal to the pin where the LED is connected). Once the action is performed, this component consults the embedded database to check the most probable action in the current slot and increases the input action counter. If the input action most likely occurs at the current slot time, it forwards a signal to Stimulus Handler to send a logical stimulus due to an integration rule for this action (if one exists).
Recommender manages the rules stored in the correlation data set. It forwards an HTTP request stimulating a correlation action (rule’s consequent) to the correlated device and allows the users to enable, disable, or discard integration rules. Also, after the extraction process, this component suggests the strongest correlations found to the user;
Correlations data set stores the rules that correlate a local action to the actions from other devices. It also stores the rule’s metrics and the correlated device’s address (e.g. IP, URL).
Database stores the matrix of counters as specified in section “Embedded database and the pattern of changes”.
Pattern generator performs a probabilistic analysis on the embedded database to generate the device state change patterns. This component can share these patterns through the API or send them to the
Pattern collector identifies other devices that belong to the same multicast group and performs an interactive process to retrieve the state change pattern of each device in the target list.
Fuser performs data fusion of local and remote patterns (created by
Extractor performs the association analysis on the transaction data set to identify the strength of action correlations of both devices and, additionally, updates the rules in the
This architecture must be the same for all devices, and the implementation decisions must share the same parameters to perform reliable knowledge extraction from the distributed data set.
Rule’s extraction evaluation
The methodology employed to assess the proposed method performance is based on comparative analysis between DARE and Apriori’s association rules using real smart environments data sets. The evaluation consists in comparing the rules extracted from both approaches to evaluate the reliability of DARE when dealing with the identification of correlations based only on local decisions, rather than global decisions as it is made in Apriori algorithm
Since our performance evaluation focuses on the method, the hardware specifications of IoT devices and the networking parameters are not taken into account at this moment. The evaluation compared the rules extracted by the Apriori’s ARM 6 to the rules extracted by DARE. All experiments were running in a computer equipped with an Intel Core i7 (3.4 GHz) processor, 8 GB of RAM, and Python 3 installed on a Linux distribution (Debian).
Multiple experiments were executed for different public data sets considering different intervals between the checkpoints. All data sets were preprocessed to remove duplicated registers, discretize the continuous values, and collect the registers that represented the device’s state changes.
The statistical software R
19
was used to perform the centralized analysis with the help of the
The comparisons consisted of identifying whether the correlations in the
Database description
Due to the lack of public industrial benchmarks, five different data sets from WSU CASAS 21 were used to evaluate the proposed method. These data sets contain raw data with several sensors such as battery levels, magnetic doors sensor, light switches, lights sensors, infrared motions sensors, and temperature sensors. Table 4 shows the number of devices, number of days, and the number of registers on each data set.
Data set descriptions.
These data sets were selected to perform a stress test on the proposed method in different scenarios regarding the number of devices, the number of registers, and the number of days that should be analyzed.
Evaluation parameters
Some parameters were predefined in the evaluations in order to mimic a real smart environment as close as possible.
All devices created a database (matrix of counters) for each day of the week (Monday to Sunday).
Each slot comprehends a 15-min interval, so each matrix has 96 columns (
Minimum support threshold: 1% (one slot filled).
Minimum confidence threshold: 90%.
Minimum lift threshold: 1.1 (only positive correlations).
The experiment was executed for each data set considering the following intervals:
Interval I: the association analysis was executed day by day.
Interval II: the association analysis was executed in alternate weeks, that is, one week yes and the other week no.
Interval III: the association analysis was executed one week yes and three weeks no.
These parameters were the same for all data sets in all experiments.
Results
Table 5 shows the results of data cleaning before the execution of the algorithm. This process ignores records that do not represent a devices state change, as specified in section “Embedded database and the pattern of changes” and transforms continuous values into discrete intervals based on the range of recorded values. This process resulted in a massive reduction in the data registers for hh129 and shib009 data sets, more precisely 99.54% and 97.16%, respectively. In tokyo data sets, the reduction was 78.63% of its original content. The two other data sets, hh107 and hh123, had smaller reductions of 16.57% and 19.31%, respectively.
Pre-processing results.
Table 6 shows the experimental results for all data sets. It shows the number of rules identified as the most relevant in both analyses (hits) and the number of rules identified only by DARE (misses). Moreover, there are the average rates by each data set and the average rates for the entire experiment.
Experiments’ results.
All experiments for data sets hh129, shib009, and tokyo obtained 100% of agreement. In other words, all rules identified by DARE were also the most relevant in a centralized analysis.
Exceptions occurred in two data sets (hh107 and hh123) for Interval III. The
The aRules identified 23,015 rules and DARE identified 23,073 rules, namely, 58 more rules. This represents 0.25% of all correlations identified. The average accuracy of DARE reaches 99.75% of similarity compared to the rules created by a centralized analysis.
All experiments’ results are available in Alencar et al. 9 This repository also contains the source code, images, rules extracted, and the data sets links for further consulting.
Discussion
This section is organized into two parts: (1) pre-processing analysis and (2) comparison between the obtained rules. The first consists of exploring the results presented in Table 5, and the second discusses the results from Table 6.
Pre-processing analysis
By analyzing the pre-processing step, it was possible to identify a massive reduction in data sets, especially in hh129, shib009, and tokyo. This reduction occurred due to the high number of devices that registered continuum values (e.g. a temperature sensor). Considering that these values had to be discretized, many registers did not express a real change of discretized states. An instance of that is the temperature sensor T105 from the hh129 data set, which has a range of registered values from 17.5° to 33°, and its average value is 25.25°. In this article, we assume that each value greater or equal to the average was labeled as “high,” and the lower values were labeled as “low.” Analyzing the raw data set, one can see that the first value lower than the average occurs after 26 registers. In other words, the first 26 registered values were greater than or equal to 25.25°. As they did not represent a real change (“high” to “low”), all these registers were counted as a single “high” in the embedded database (
The same behavior repeats for multiple devices in all data sets. In this case, the number of devices that register continuum values directly affects the reduction rate. However, the range from continuum registered values in hh107 and hh123 were smaller, which implies a smaller number of discrete labels by devices. In addition, there are also fewer devices that registered continuum values. This behavior affects directly the number of rules extracted from the environment when we put aside the number of rules created (Figure 3(a)) and the amount of useful registers in data set (Figure 3(b))

Comparisons between the rules extracted on each experiment and the percentage of data used from original data set: (a) number of rules extracted on each experiment (by day) and (b) percentage of useful/discard registers by data set.
A particularity was noted during the execution of the experiments with data sets hh107 and hh123 in regards to extraction Interval III. In both cases, DARE (decentralized) identified rules that could not be identified by

Weekly distribution of all rules marked as miss.
After analyzing the experiment’s report, it was possible to identify that some missing rules had metric values close to the minimum threshold. To check that particularity, in each experiment that contained missed rates, a new centralized analysis was performed considering more permissive metrics (metrics thresholds with lower values than the proposed in parameters), which allowed the centralized analysis to identify the missing (non-relevant) rules. A sample of these comparisons can be found in Table 7.
Metrics’ comparisons of DARE (missing rules) to the metrics
DARE: decentralized association rules extraction.
All three rules had the same consequence, and their frequencies in the transaction data set are expressed by column “count.” Slight differences in support and lift metrics were noted for both analyses. The explanation for this difference is that in the centralized analysis all patterns are gathered (as in Step III during the mining process) into a single transaction data set and its size (
This modification allows DARE to be more sensitive to rules that may have values near the metrics thresholds, as exposed in Table 7. The rule
Rules visualization
Figure 5 shows a directed graph that illustrates all correlations found from data set hh123 considering the extraction interval III (28 days) for Thursday at checkpoint 006. Each node represents a device’s state and each arrow a correlation to another device’s state (e.g. MA006-on ⇒ T107-high). For didactic purposes, Figure 5 ignores the temporal aspects to validate the correlation, which means the correlations may not coexist simultaneously once they are valid only for a specifics slots (see section “Device’s architecture”).

Found devices’ state correlations.
This illustration details that multiple devices could find correlations to the same consequent, as it happens to LS012-high (consequent) and LS003-low, MA011-off, M001-off, LS015-high, LS007-high, and LS016-high (antecedents). In this case, if these rules coexist at the same slot and one of the antecedent changes the consequent’s state to satisfy its rule, all other devices will have its own rules satisfied as well.
The same condition must be considered to create a chain reaction as illustrated by the rules LS006-low ⇒ LS014-high, LS014-high ⇒ LS015-high, and LS015-high ⇒ LS012-high. If the device LS006-low fires a request to change LS014’s state to high, the consequent also changes the LS015’s state to high which fires its own request to stimulating the LS012 to change its state to high either. It is important to note that this approach is free of loops once a device could not fire a trigger and receive a stimulus to change to another state (different than the one that fired the trigger) at the same slot. This means that devices are not able to accept two states as the most probable state at the same slot.
Application and emerging technologies compatibility
Extracting knowledge from embedded and decentralized data sets is an unusual approach for data mining. Our proposed solution, DARE, is flexible enough to adapt to emerging technologies since it works in the application layer. However, there are some aspects that could be improved to make it work in other application domains.
This section describes the application of DARE considering emerging technologies and new paradigms such as massive machine-type communications (mMTC) and slicing networks specifications, 22 the web of thing (WoT) models 23 for standardization of objects in the WoT, and edge computing with device’s virtualization. 24
MMTC
The mMTC is a new paradigm for 5G networks focused on providing connectivity to a huge number of IoT devices. It means that mMTC devices may be connected to a given base station but, at a given time, only a random subset of them becomes active and attempt to send their data. Naturally, this approach would not allow allocating a priori resource to individual devices, instead, it is necessary to provide resources that can be shared through random access. 22 In 5G networks, heterogeneous services are allowed to coexist within the same network architecture by means of network slicing, which is a method to allocate network computing, storage, and communication resources among the active services with the aim of guaranteeing their isolation and high performance levels. These slices could group devices by specific characteristics such as functionality, time interval to access the resources, rate of sent packets, and so on. 24
Both characteristics have behaviors that are similar to our proposed DARE specifications. The first assumes that, sporadically, a random and variable number of devices have access to the media to send their data. This behavior has some similarities to Step II of DARE (Figure 1), in which a mining device performs iterative requests to other devices considering their pattern of usage. DARE was designed to perform comparisons in pairs, thus, assuming that more than one device will share the resource to send data, it is possible to adapt the component pattern collector to identify which devices are simultaneously active so that it would be possible to gather the remote pattern and identify the strongest correlations.
The second feature, network slicing, allows to group multiples devices into a network segment based on specific characteristics, which is similar to the multicast group, specified in section “Correlation extraction.” This feature decreases the number of devices that must be consulted during the mining process and creates a limited scope of interactions based on these characteristics such as functionality, geographic range, data set dimensions, and others.
WoT
A second interesting paradigm that may coexist with mMTC and DARE is the WoT, 23 which assumes that each device acts as a web service, through virtualization or not, providing the resources that allow to control some physical object in real world.
The WoT model proposes the basis of a common model to describe the virtual counterpart of physical objects in the WoT. It defines a model and a Web API for Things to be followed by anyone wanting to create a product, device, service, or application for the WoT. While the WoT requirements are described using the HTTP and WebSockets protocols using JavaScript Object Notation (JSON) since they are well supported, the WoT model can also be applied to describe the models and interactions of things supported via other RESTful protocols such as constrained application protocol (CoAP). 23
DARE also specifies a sub-component from Stimulus Handler (section “Device’s architecture”) that allows both changing the device’s states and configuring other device’s features. Since there is no specification for this API, the WoT models could fill this gap since protocols, best practices, resources, and data models, up to the semantic level, are able to define descriptions and extensions to that applications. This model would standardize all devices APIs offering a set of well-defined parameters to make these devices compatible with both new and legacy systems.
Edge computing
Even as a decentralized approach, the DARE architecture must provide all resources a means of controlling objects through HTTP requests (section “States and actions”), but not only that it allows to specify configuration parameters and device’s information as well (section “Device’s architecture”). This behavior allows creating a virtual model of each device in a centralized node to optimize the correlation extraction through parallel processing using edge computing, 25 for instance.
The study conducted by Femminella et al. 25 specifies the minimum requirements of this proposition, which is modeled using Hadoop (https://hadoop.apache.org/), a framework that allows the distributed processing of large data sets across clusters of computers using simple programming models. It is worth noting that the device’s virtualization in a centralized node would neither affect embedded mining storage nor the device’s capability to interact with each other directly. This would act as a parallel approach to ratify the embedded and decentralized processing to obtain other interesting correlations or to use a parallel knowledge’s extraction from nodes.
Conclusion
The main focus of DARE is to provide an embedded mechanism to allow IoT devices to extract knowledge from an intelligent environment that has limited resources for storage, management, and processing. This mechanism correlates pairs of device’s actions to offer a set of intelligent integration suggestions via HTTP requests to users. These suggestions, when accepted, allow the devices to control each other based on their patterns of actions, which may stimulate automatic state changes between correlated devices.
The proposed method deals with pairs of devices and only analyzes the transactions that contain useful information, while a centralized environment unnecessarily considers correlations between actions from the same devices.
This work reproduces (with 99.75% of agreement) a well-known centralized data mining algorithm (Apriori) using a decentralized approach that processes an embedded association analysis that correlates a pair of items. Also, the use of a static size data set allows for the identification of relevant correlations not found in a centralized analysis.
This article shows that DARE is an alternative for implementing a decentralized and highly integrated environment based on embedded knowledge extraction to correlate devices in a smart environment and to adapt itself to the users’ behavior patterns. The proposed method avoids the single point of failure problem since it adopts a decentralized association analysis.
Although it proves to be an efficient methodology, DARE presents some limitations that should be explored in future works, such as (1)
Finally, as for future research, we intend to advance this work by creating prototypes to execute real-world experiments and evaluate the user experience related to suggestions for device integration.
Footnotes
Acknowledgements
This research, according to Article 48 of Decree No. 6.008/2006, was funded by Samsung Electronics of Amazonia Ltda, under the terms of Federal Law No. 8.387/1991, through Agreement No. 003, signed with Institute of Computing of the Federal University of Amazonas (ICOMP/UFAM). The authors also acknowledge the support granted by Amazon State Research Support Foundation (FAPEAM) through project No. 122/2018 (UNIVERSAL) and the Ontario Tech University (UOIT). This work was partially funded by the Natural Sciences and Engineering Research Council of Canada (NSERC), by Discovery Grants, and by the Coordenação de Aperfeioamento de Pessoal de Nvel Superior—Brasil (CAPES)—Finance Code 001. Also the Federal University of Amazonas and the Institute of Computing by the Graduate Program in Informatics PPGI.
Handling Editor: Peio Lopez Iturri
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
