 Methodology
 Open Access
 Published:
DENCAST: distributed densitybased clustering for multitarget regression
Journal of Big Data volume 6, Article number: 43 (2019)
Abstract
Recent developments in sensor networks and mobile computing led to a huge increase in data generated that need to be processed and analyzed efficiently. In this context, many distributed data mining algorithms have recently been proposed. Following this line of research, we propose the DENCAST system, a novel distributed algorithm implemented in Apache Spark, which performs densitybased clustering and exploits the identified clusters to solve both single and multitarget regression tasks (and thus, solves complex tasks such as time series prediction). Contrary to existing distributed methods, DENCAST does not require a final merging step (usually performed on a single machine) and is able to handle largescale, highdimensional data by taking advantage of locality sensitive hashing. Experiments show that DENCAST performs clustering more efficiently than a stateoftheart distributed clustering algorithm, especially when the number of objects increases significantly. The quality of the extracted clusters is confirmed by the predictive capabilities of DENCAST on several datasets: It is able to significantly outperform (pvalue \(<0.05\)) stateoftheart distributed regression methods, in both single and multitarget settings.
Introduction
The generation of massive amounts of data in different forms (such as activity logs and sensor measurements) has increased the need for novel data mining algorithms, which are capable of building accurate models efficiently and in a distributed fashion. In recent years, several researchers proposed novel approaches to distribute the workload among several machines for classical clustering, classification and regression tasks [1]. However, only a few of them tackle the specific problem of densitybased clustering. This problem has received much attention in the last decades, because of many desirable properties of the extracted clusters (arbitrarilyshaped, noisefree, robustness to outliers) which turn out the be useful in many application domains (e.g., spatial data analysis).
Starting from the seminal work of DBSCAN [2], many algorithms have been proposed, but only a few of them are distributed. Unfortunately, existing distributed methods for densitybased clustering suffer from several limitations. In particular, they are limited to data organized in a specific structure (e.g., they can analyze only lowdimensional feature spaces), or they suffer from overhead and scalability issues when the number of instances and attributes increase considerably [3,4,5]. These limitations depend from the inherent difficulty in upgrading existing nondistributed densitybased clustering algorithms towards their equivalent (or, at least, approximated) distributed counterpart. Finally, most of the existing methods are strictly tailored for pure clustering and do not exploit clusters to support predictive tasks, as in predictive clustering trees [6].
Therefore, our research focused on the following questions: can we perform densitybased clustering on largescale and high dimensional data, without incurring in computational bottlenecks? Can we profitably exploit these clusters for predictive purposes? To answer to these questions, we propose DENCAST, which simultaneously solves all the issues mentioned above. Specifically, it is a novel densitybased clustering algorithm, implemented in the Apache Spark framework, which is able to handle largescale, highdimensional data. The proposed approach exploits the identified clusters, built on labeled data, to predict the value assumed by one or more target variables of unlabeled objects in an inductive, supervised learning setting. This characteristic allows the proposed method to solve any single or multitarget predictive task. In this paper, we focus on single and multitarget regression tasks, which are central in several realworld applications (see Fig. 1 for a graphical overview of the environment in which DENCAST works). For example, solving a multitarget regression task can be useful in energy planning and trading from renewable sources, such as photovoltaic or wind plants [7]. In this context, multistep ahead forecasting (usually 24 h) is necessary to predict the energy produced by renewable sources, in order to minimize the production from polluting sources and possible money losses [8]. Other domains where multitarget regression finds application include traffic flow forecasting [9], air quality forecasting [10], bike demand forecasting [11, 12], life sciences (e.g., predicting the toxicity of molecules) and ecology (e.g., analysis of remotely sensed data, habitat modelling) [13]. The peculiarities of data in such application domains further motivate the adoption of the predictive clustering framework in this paper. Indeed, not only several studies in the literature proved the effectiveness of predictive clustering frameworks [6, 14,15,16], but it has shown to be particularly appropriate when data exhibit different forms of autocorrelation [17], i.e., objects which are close to each other (spatially, temporally, or in a network) appear more related than distant objects. Such phenomena are commonly present in data regarding the cited domains and approaches based on clustering can naturally detect them.
Therefore, the main contribution of this paper consists in a method for distributed densitybased clustering which, contrary to existing works (see “Distributed methods for densitybased clustering” and “Distributed methods for multitarget regression” sections), simultaneously shows all the following key features:

It works on the neighborhood graph. In this way, the algorithm needs only object IDs and their neighborhood relationships (instead of their initial, possibly highdimensional, representation) and thus it requires limited space resources. We build such a neighborhood graph efficiently from highdimensional data through the localitysensitive hashing (LSH) method [18].

It is implemented in the Apache Spark framework and it is fully distributed. Therefore, it does not require preprocessing or postprocessing steps, usually performed on a single machine (see “ Distributed methods for densitybased clustering” section for details about this aspect in other methods). This aspect allows our method to analyze largescale datasets without incurring in computational bottlenecks.

The identified densitybased clusters can be exploited to predict the value of one or more target variables, by means of a density and distancebased approach. The result is that the proposed method can be adopted to solve singletarget and multitarget regression tasks in a distributed setting.
Overall, we propose a distributed densitybased clustering algorithm that is capable to (i) handle largescale data; (ii) deal with the high dimensionality of data; (iii) exploit the identified clusters to perform predictions in both singletarget and multitarget settings. To the best of our knowledge, existing methods are limited in one or more of these aspects, or are not able to address all of them simultaneously.
In “Background” section, we introduce some background notions and briefly review existing methods that are related to this paper. In “Method” section, we propose our distributed densitybased (predictive) clustering method, while in “Time complexity analysis” section we analyze its time complexity. In “Results and discussion” section, we describe the experimental evaluation, showing that our method obtains accurate predictions and appears efficient in dealing with massive amounts of highdimensional data. Finally, in “Conclusion” section we draw some conclusions and outline future work.
Background
The pioneer densitybased clustering approach in the literature is DBSCAN [2]. This approach is able to identify arbitrarily shaped clusters (i.e., not only spherical) without requiring the number of clusters to be extracted as an input parameter. However, it requires two other parameters, i.e., eps and minPts.
Since several concepts that characterize densitybased algorithms are in common with those adopted in this paper, we recall some useful notions:

The neighborhood N(p) of an object p is defined as the set of objects whose distance from p, according to a given measure, is within the threshold eps. Formally, \(N(p) = \{ q \  \ dist(p,q) < eps \}\).

An object p is a core object w.r.t. eps and minPts if it has at least minPts objects in its neighborhood N(p). Formally, p is a core object if \(N(p) \ge minPts\).

An object p is directly densityreachable from an object q if \(p \in N(q)\) and q is a core object.

An object \(p_w\) is densityreachable from an object \(p_1\) if there exists a chain of objects \(p_1, p_2, \dots , p_w\), such that for each pair of objects \(\langle p_i\), \(p_{i+1} \rangle\), \(p_{i+1}\) is directly densityreachable from \(p_i\) w.r.t. eps and minPts.

An object p is densityconnected to an object q if there exists an object o, such that both p and q are densityreachable from o w.r.t. eps and minPts.

A cluster is a nonempty subset of objects, where each pair of objects \(\langle p,q \rangle\) is densityconnected.

Noncore objects belonging to at least one cluster are called border objects, whereas objects not belonging to any cluster are considered noise objects.
Specifically, DBSCAN starts with an arbitrary object o and, if this is a core object, retrieves all the objects which are densityreachable from it w.r.t. eps and minPts, returning a cluster. The algorithm then proceeds with the next unclustered object. Other densitybased methods follow a slightly different approach. For example, Density Peaks Clustering (DPC) [19] follows a hybrid workflow which takes inspiration from both centroidbased and densitybased methods. In particular, it selects some objects as cluster centroids, and subsequently assigns other objects to centroids according to the fact that they locally show density peaks. The algorithm identifies density peaks according to two indicators: a local density indicator, which corresponds to the concept of epsneighborhood in DBSCAN, and the maximum similarity (or minimum distance) indicator, computed between the current object and any object with higher local density. Similarly, Mean Shift [20] selects an object, identifies a circle of a predefined radius, computes the centroid of objects which fall within the radius, and it moves its center towards it. This process, which works iteratively, allows the algorithm to find a local maximum (in terms of density) for each object, and to group objects that appear to be tied to the same local maximum. Mean Shift does not require to specify the number of clusters to be extracted, coherently with other densitybased clustering algorithms. However, it requires to specify the radius, and its time complexity is \(O(n^2 \cdot I)\), where n is the number of objects and I is the number of iterations, which can be considered high for highdimensional and largescale data.
These densitybased methods, even if they follow different approaches, are able to identify accurate and arbitrary shaped clusters, and are almost independent of the order of the analysis of objects. Moreover, many variants available in the literature aim to adapt densitybased clustering algorithms (in particular DBSCAN) to specific contexts or to overcome limitations on time and space complexity. Regarding this aspect, in “Distributed methods for densitybased clustering” section we briefly review existing works focusing on novel strategies to make densitybased approaches applicable to large datasets. Moreover, since this paper has its roots also in methods for multitarget regression, in “Distributed methods for multitarget regression” section we briefly describe some related works in this field.
Distributed methods for densitybased clustering
Although in the literature we can find some existing clustering algorithms which are able to handle largescale and/or highdimensional data [21,22,23], only few of them are densitybased. The first attempts focused on extensions or variations of the wellknown DBSCAN algorithm. The first extensions of DBSCAN concern the estimation of the optimal value of the input parameters eps and minPts [24] and its applicability to different contexts, such as data streams [25] and spatiotemporal data [26]. Due to the necessity to process large, highdimensional datasets, more recent works have focused on the optimization of the time complexity, which is originally \(O(n^2 \cdot m)\), where n is the number of objects and m is the number of features. Since the dominating phase is the identification of the neighborhood of all nodes (which time complexity is, thus \(O(n^2 \cdot m)\)), in [27] the authors proposed to adopt the localitysensitive hashing (LSH) [18] to perform this phase in \(O(n \cdot m)\). Although this method is able to process highdimensional data, it cannot distribute the workload both in time and space to multiple machines and, consequently, cannot scale in the presence of distributed architectures, thus limiting the possibility of handling large datasets.
In [3], the authors proposed a distributed variant of DBSCAN for MapReduce, which exploits an RTreebased index to compute the distance among objects. However, RTreebased indexes are not efficient with highdimensional data [28], due to a high overlap among bounding boxes. For this reason, experiments are limited to 2D datasets. In [4] and [5], the authors proposed a variant of DBSCAN, named RDDDBSCAN, implemented in Apache Spark. RDDDBSCAN consists of three phases: data partitioning, local clustering and global labeling. The algorithm takes as input the same parameters as DBSCAN, and defines a bounding rectangle for the whole dataset. Subsequently, the algorithm splits this rectangle into two parts, containing approximately the same number of data points. The resulting partitions are clustered locally on executor nodes. In the global labeling phase, RDDDBSCAN examines all the points that are within a specified distance (eps) of the borders of the bounding rectangle of each partition. If two clusters contain some common objects, the algorithm assumes they are the same cluster. Given these characteristics, these two works show the same limitations of the method proposed in [3], i.e., experiments are limited to 2D data. Moreover, one common limitation of [3,4,5], also present in the densitybased approach proposed in [29], is the necessity of a merging phase which aggregates partial results obtained by the worker machines. This phase usually takes place on a single (driver) machine and can, in principle, require a complexity \({\mathcal {O}}(n^2)\), possibly leading to a significant increase of the overall running time.
Our method faces all the issues raised by largescale, highdimensional datasets. In particular, we propose an approach which is computationally efficient and distributed in all its steps, leading to the easy handling of largescale datasets, and that, inspired by the work in [27], adopts localitysensitive hashing to handle highdimensional data.
Distributed methods for multitarget regression
In the literature, and specifically in the field of Structured Output Prediction, researchers paid much attention to the multitarget regression task [13], i.e., to the learning of regression models for multiple target attributes. The easiest way to solve this task consists in the application of methods for singletarget regression for each target attribute, independently (local models). In this way, almost all the existing approaches allow to perform multitarget regression, even if they require an adaptation step. Focusing on methods for processing largescale datasets, in the literature we can find some distributed approaches for singletarget regression (elastic net regularized linear regression [30] and isotonic regression [31]) that can be adapted to multitarget regression tasks.
A recent survey [32] highlighted the advantages and disadvantages of prediction algorithms in parallel multicore systems. Some simple algorithms, such as AutoRegressive Integrated Moving Average (ARIMA) [33], knearest neighbors and linear regression, show a moderate computational cost and good prediction performances in many scenarios when the task is that of prediction or forecasting with a limited time horizon. Other algorithms, such as Neural Networks and deep neural networks [34], show a higher predictive accuracy and the ability to consider nonlinearity in the in data, at the cost of a higher computational complexity.
More complex approaches for multitarget regression learn a global model which is able to predict the value of all the target attributes as a whole. Since these approaches specifically perform multitarget regression, i.e., they can exploit possible dependencies among the target attributes, usually lead to better predictive performance (see [35] for an example showing the superiority of global methods in the case of predictive clustering trees).
Statistical approaches can be considered as the first attempt to deal with the simultaneous prediction of multiple realvalued target attributes [36]. Subsequent attempts focused on extending support vector regression (SVR) models in order to allow them to manage multiple target variables. For example, in [37] the authors developed a vectorvalued SVR (i.e., able to predict a vector of numeric values) by adapting the concepts of estimator, loss function and regularization function from the scalarvalued case to the vectorvalued case. Another recent approach [38] proposed to extend the least squares SVR to the multitarget setting.
Alternative approaches (see [35] and [39]) proposed a multitarget variant of regression trees, which exploits possible correlations among the different target attributes. Moreover, it is noteworthy that neural networks and deep learning algorithms can naturally be applied to the multitarget setting, by defining the output layer with multiple neurons. In this class of methods, it is worthy to mention the long shortterm neural networks [40], which are particularly powerful when data describe seasonal and recurrent phenomena characterized by temporal correlations.
However, to the best of our knowledge, global methods for multitarget regression that are distributed, and therefore able to process largescale, highdimensional datasets, are still scarcely available in the literature. An exception is the implementation of the ARIMA models [33], available in the SparkTS library,^{Footnote 1} which, however, is tailored for the analysis of time series. In particular, the different target variables regard the same feature predicted in different time instants in the future.
Moreover, recently, researchers put a significant effort to the adaptation of deep learning algorithms towards distributed frameworks, such as Apache Spark. Important examples are DeepLearning4J,^{Footnote 2} Elephas^{Footnote 3} and TensorFlowOnSpark^{Footnote 4} which provide straightforward approaches to distribute: (i) the data during the training phase, (ii) the workload in the hyperparameter optimization, or (iii) the learning of ensembles of models.
Method
On the basis of the notions introduced in “Background” section, in this section we describe our method, which general workflow is depicted in Fig. 2 and formalized in Algorithm 1. Note that, since our method is implemented in the Apache Spark framework, we adopt the Resilient Distributed Dataset (RDD) data structure and its operations (see [41] for details).
Given the dataset \(A_L\) consisting of n labeled objects represented by \(m+k\) attributes (m descriptive attributes and k target attributes), we first apply a distributed variant of localitysensitive hashing—LSH [42] (line 2) to identify an approximate neighborhood graph. The obtained graph consists of a node for each labeled object and an undirected edge for each pair of nodes \(\langle u, v \rangle\), which appear similar enough according to the representation obtained after the application of the LSH algorithm and a threshold minSim. This step and the specific details about the distributed variant adopted are described in “Identification of the neighborhood graph” section. From this point, the algorithm only uses the neighborhood graph, which can be considered an approximate representation of the objects and their distances, instead of objects represented in the original feature space. This design choice, which has been conveniently adopted by several clustering algorithms (see for example [43]), reduces significantly the space and the time necessary for the next steps: identification of the neighbours of each node (line 3) and identification of core objects (line 4), i.e., those having at least minPts nodes in their neighborhood.
Our method for densitybased clustering then maps each labeled node to a cluster (line 5), by propagating cluster IDs from core objects through their neighbors. As we will describe in “Densitybased clustering” section, our approach is iterative and requires a stopping criterion, based on a threshold (labelChangeRate), aiming to avoid unnecessary iterations, which would lead to slight changes in cluster assignments. It is noteworthy that not all the objects will be necessarily assigned to a cluster, i.e., similarly to existing densitybased clustering algorithms, our algorithm is able to discard objects that can be considered noise or outliers, since they are too far in the feature space from the identified clusters.
Finally, we reassociate all the nodes with the original features of the corresponding objects (line 6) and exploit the identified clusters to predict the value of the target attributes for all the nodes of a set of unlabeled objects \(A_U\) (line 7). The prediction step is described in detail in “Exploiting clusters for multitarget regression” section.
Identification of the neighborhood graph
As we mentioned in “Method” section, we adopt a distributed variant of the localitysensitive hashing (LSH) method to efficiently identify an approximate neighborhood graph, which will then be exploited by our clustering algorithm. LSH hashes objects so that similar objects map to the same buckets with a high probability (where the number of buckets is much smaller than the number of analyzed objects). Contrary to conventional hash functions, LSH maximizes the probability of collision for similar objects [44]. LSH exploits some properties of the cosine similarity: given two objects represented as \((m\,+\,k)\)dimensional vectors, the probability of a random hyperplane to correctly separate them increases as the angle between them increases [42]. Accordingly, the computation of the neighborhood of each node in \(A_L\) through LSH is reformulated as follows:

Generate r random \((m + k)\)dimensional hyperplanes, where \(r \ll (m+k)\);

Represent each object \(p \in A_L\) as an rdimensional bit stream \(p_r\), where the ith feature is 0 or 1 according to the side of the ith hyperplane which p falls into;

Generate numPerm random permutations of r elements. For each permutation, permute the bit stream of all the objects in \(A_L\) (each object is represented by numPerm bitstreams). Bitstreams, for each permutation, are then sorted lexicographically.

Find the set \({\tilde{N}}(p)\) of the B nearest neighbors of each object p in every sorted list and compute the Hamming distance between the bitstream of p and the bitstream of the objects in \({\tilde{N}}(p)\). Every object \(q \in {\tilde{N}}(p)\) having a Hamming distance with p smaller than a given threshold minSim is included in N(p).
The implementation we adopt^{Footnote 5} is the distributed variant proposed in [42]. Such a variant identifies N(p) by replacing the Hamming distance with the exact cosine similarity, which avoids the presence of false positives (objects detected as neighbors, that actually are not). Formally: \(N(p) = \{ q  q \in {\tilde{N}}(p) \wedge cosine(p,q) \ge minSim \}\). Although other variants of LSH, based on different similarity/distance measures are available in the literature [45], they mainly exploit the Euclidean distance on the unit sphere, which actually corresponds to the cosine similarity. Moreover, their adoption would require an additional step to normalize the values in [0,1], leading to introduce possible approximation errors.
Densitybased clustering
In this section, supported by the pseudocode of Algorithm 2 and by Fig. 3, we describe our distributed densitybased clustering method. Our implementation exploits GraphX APIs^{Footnote 6} of Apache Spark to analyze the neighborhood graph identified by LSH. GraphX [47] internally represents graphs through a collection of vertices and a collection of edges, built on top of the Spark RDD. The vertex collection is hashpartitioned by vertex IDs and supported by a local hash index in each partition, which facilitates frequent joins across vertex collections. The edge collection is horizontally partitioned and supported by a routing table that enables the efficient lookup of edges according to their source and target vertices. GraphX also adopts specific strategies to reduce network costs and to avoid unnecessary movements of unchanged data in subsequent iterations. Additional details can be found in [47]. Interestingly, GraphX provides the counterpart of the most common primitives of Spark RDDs for graph processing, such as map, filter and aggregate, which are exploited by our method in order to manipulate distributed graphs.
The novelty of the proposed method relies on the formulation of a densitybased clustering method that performs the exploration of the neighborhood graph, through the GraphX programming primitives, in a fully distributed way. We stress this last aspect, since, contrary to existing methods [3,4,5], it does not require a merging phase at the end, usually performed on a single driver machine.
We recall that the original DBSCAN implementation [2] identifies a cluster starting from an arbitrary core object and retrieving all objects which are densityreachable from it w.r.t. eps and minPts. Our approach aims at identifying all the reachable nodes of all the core objects simultaneously. This is performed by propagating the cluster assignment of all the core objects to their neighbors, until the cluster assignment appears stable enough.
The first step consists in assigning a different cluster ID to each core object. Noncore objects are associated with 0 (lines 2–4). Then we start a process which, as mentioned in “Method” section, iterates until a criterion based on the number of propagations is not satisfied. In particular, we stop the iterative process when the number of propagated IDs is below a given percentage (labelChangeRate) of the number of edges of the neighborhood graph (line 5). This strategy avoids the execution of additional iterations that would only lead to slight changes in cluster assignments.
Each iteration consists in the propagation of the cluster ID from all the core objects towards their neighbors. To this aim, we perform a map phase which works on the set of edges of the neighborhood graph (lines 8–14). In particular, for each edge \(\langle src, dst \rangle\),^{Footnote 7} we propagate the cluster ID of the node src towards the node dst if src is a core object and if its current cluster ID is higher than the cluster ID of the object dst.^{Footnote 8} This choice guarantees a deterministic behaviour of our approach, as well as its convergence. Moreover, similarly to [46], it leads to a reduction of the number of messages possibly exchanged among different machines in the cluster.
After propagation, each node receives multiple cluster IDs from its neighboring core objects. Therefore, the final step of each iteration consists of a reduce phase (line 15), which aggregates the set of received cluster IDs into a single cluster ID. Coherently with the approach adopted during the map phase, each node will be assigned to the highest cluster ID received (see footnote 8). This leads, after some iterations, to collapse neighboring clusters in a single cluster, that is, the cluster with the highest ID. This makes the final merging phase, typically performed by existing distributed clustering methods on a single driver node, not necessary.
In Algorithm 3, we report a higherlevel (nonparallel) pseudocode description of Algorithm 2, from which it is possible to observe the performed steps also without going into details about the Apache Spark primitives.
An example of an iteration performed by our densitybased clustering method can be observed in Fig. 3.
Exploiting clusters for multitarget regression
In this section, we describe the strategy we adopt to exploit the identified clusters to solve both singletarget and multitarget regression tasks (see Fig. 4). Formally, given the set of unlabeled objects \(A_U\), we aim at predicting the value of the target attributes for each object in \(A_U\). Inspired by other solutions which exploit clusters for predictive purposes [15] we estimate, for each unlabeled object \(u \in A_U\), the cluster c(u) to which u ideally belongs: that is, the cluster to which u would have been assigned, if it had been known during the clustering process. We identify the most similar labeled object l and assign u to its cluster, i.e. \(c(u) = c(l)\). Formally:
where \(cosineSim(\cdot ,\cdot )\) is the cosine similarity between two vectors and \(l_{[1:m]}\) is the subvector of the object l, consisting of only the descriptive attributes. Finally, we predict the value of the target attributes of each unlabeled object u by computing the average of the values associated to the target attributes of all the objects falling in the cluster c(u), weighted according to their similarity with u. Formally:
where \(l_{[m+1:m+k]}\) is the subvector of the object l, consisting of only the target attributes, \(A_L(c(u))\) is the subset of objects of \(A_L\) falling in c(u) and \(u_{[m+1:m+k]}\) is the part of the vector u reserved for target values.
Note that, this approach is coherent with the philosophy of densitybased clustering because it extends the concept of densityconnection to unlabeled examples.
More details about the implementation of the prediction phase are formalized in Algorithm 4. In particular, we first compute the cosine similarity between all the unlabeled objects in \(A_U\) and all the labeled objects in \(A_L\) (lines 2–8). Then we associate each unlabeled object to the cluster in which its most similar labeled object falls (lines 9–17). Finally, we predict the value of the target attributes of each unlabeled object according to Eq. 2 (lines 18–33).
As for the clustering phase, also this phase is fully distributed. Here, the idea is to perform an incremental computation of the weighted average, which mainly consists of a map phase (lines 25–27) and a reduce phase (lines 28–30). Such a computation also exploits the operators: \(+\) between two vectors, which distributedly computes their elementwise sum and \(*\) (resp. /) between a vector and a scalar, which distributedly computes the multiplication (resp. division) of each element of the vector by the scalar.
Time complexity analysis
In this section, we analyze the time complexity of the proposed method. First, we consider the time complexity of the training phase, by following the steps of the main algorithm (Algorithm 1) and of the clustering algorithm (Algorithm 2).
In particular, the first step performed by our method is the identification of the neighborhood graph through LSH (Algorithm 1 , line 2), which has a time complexity of \(O(V \cdot m)\) [18], where V is the number of nodes (i.e., objects) and m is the number of features. Next, the identification of the neighborhood of each object (Algorithm 1, line 3) requires a scan of the whole neighborhood graph, i.e., \(O(V \cdot B)\) operations, where B is the maximum number of neighboring objects identified by LSH for each node. Given the neighborhood of each object, the identification of core objects (Algorithm 1, line 4) only requires a single scan of all the objects, leading to a complexity of O(V). Finally, after executing the densitybased clustering algorithm, a final join operation (Algorithm 1, line 6) is performed. This join operation, since the used data structures (i.e., paired RDD) are indexed on the node identifier, has a time complexity of \(O(2 \cdot V)\). Therefore, the preprocessing and the postprocessing steps of our main clustering algorithm require an overall time complexity of:
that, since B is a constant, can be approximated to
Focusing on the main clustering algorithm (Algorithm 2), we can observe that the initialization (Algorithm 2, lines 2–4) requires O(V) operations, since it performs an assignment for each object. Then, the algorithm performs u iterations of the main loop (Algorithm 2, lines 6–15), each of which consisting of a map and a reduceByKey performed on all the links of the neighborhood graphs. This means that, since the neighborhood graph has \(O(V \cdot B)\) links, the main clustering algorithm has an overall time complexity of:
The number of performed iterations u can be (pessimistically) estimated as the average number of steps required to propagate the cluster ID of a core object to all the other objects. Since objects in the neighborhood graph have at most B neighbors, we can observe that, starting from a given core object, in u iterations we are able to propagate its cluster ID to \(B + O(B^2) + O(B^3) + \cdots + O(B^u)\) objects,^{Footnote 9} that can be approximated to \(O(B^u)\). This means that, in order to reach all the objects (we have this guarantee when \(B^u \ge V\)), we need at least \(u=\log _BV\) iterations. In fact:
Therefore, by assuming \(u = O(\log _B{V})\) and by combining Eqs. 4 and 5, we can conclude that the time complexity of the training phase is:
As regards the prediction phase (Algorithm 1, line 7 and Algorithm 4), we compute the cosine similarity between the unlabeled object and all the labeled objects (Algorithm 4, lines 2–8), leading to a time complexity of \(O(V \cdot m)\). Then, the identification of the cluster containing the most similar labeled object (Algorithm 4, lines 9–17) requires a scan of all the labeled objects, which time complexity is O(V). Finally, the weighted average computed to make the predictions (Algorithm 4, lines 18–33), requires the scan of the objects belonging to the selected cluster that, in the worst case scenario (i.e., all the objects belong to one single cluster), requires O(V) operations. Therefore, the overall complexity of the prediction phase is:
Results and discussion
In the following, we first describe the experimental setting, the competitor systems, and the adopted datasets. Finally, we show and discuss the obtained results.
Experimental setting and competitor systems
Our experiments focused on two aspects: scalability and regression performances. It is noteworthy that the accuracy achieved in solving the regression task is a clear indicator of the quality of the identified clusters.
Regarding scalability, we compared DENCAST with a highly optimized clustering method available in Apache Spark, i.e., Kmeans, on a largescale dataset. The adoption of the Kmeans implementation available in Apache Spark is motivated by its high popularity, as well as by its native presence as an official, stable implementation since the early versions of the Spark MLLib machine learning library.
For a fair comparison, we let Kmeans extract the same number of clusters identified by DENCAST. We run the experiments on a cluster of five machines, each equipped with a 4cores (8 threads) CPU at 3.40 GHz, 32 GB of RAM and a 750 GB SSD hard drive. Moreover, we measured DENCAST running times on a single machine, with an increasing number of instances, and compared them with those obtained on the cluster of machines, in order to directly evaluate the performance gain due to the distributed environment. By exploiting such results, we also evaluated the speedup factor, i.e., the ratio between the running time on a single machine and the running time on the cluster. Finally, we measured the scaleup factor, which shows the ability of DENCAST to exploit the computational power of multiple CPUs to process an increasing number of instances.
Regression performances were evaluated in a forecasting setting since all the considered datasets contain measurements of a target variable at different time stamps (see “Datasets” section). Moreover, we performed the experiments in both the singletarget (ST) setting, to predict a single target value in the future, and the multitarget (MT) setting to predict a time series in the future. We performed the evaluation in terms of Root Mean Square Error (RMSE) and, for the time series, on the average RMSE over the time series.
We compared DENCAST with: (i) a baseline strategy, which predicts the value of the target attributes using the average value in the training set (AVG); (ii) four distributed regression algorithms, i.e., linear regression (LR), isotonic regression (ISO), ARIMA and a distributed implementation, based on DeepLearning4J, of long shortterm memory neural networks (LSTM) for regression; (iii) the Kmeans clustering algorithm, extended to solve regression tasks.^{Footnote 10}
Methodologically, LR trains an elastic net regularized linear regression model [30], which overcomes the limitations of the LASSO method by combining the L1 and L2 penalties of the LASSO and ridge methods. ISO is capable of fitting a nondecreasing freeform line to a set of points, without assuming the linearity of the target function [31]. LSTM learns neural networks that effectively model temporal dependencies in sequential data, by introducing loops in the structure of the network that allow the information to persist [40]. For Kmeans, we adopted a prediction strategy similar to that described in “Exploiting clusters for multitarget regression” section, except for the cluster assignment that was performed according to the closest cluster centroid (coherently with the way it performs clustering).
We clarify that, although several additional methods for single and multitarget regression exist in the literature, we focus on those for which a distributed implementation is available. Nondistributed algorithms have been widely investigated before, and a comparison with them is out of the scope of our analysis.
We run LR and ISO only in the single target setting since they do not perform multitarget regression. On the other hand, we adapted Kmeans and AVG to perform multitarget regression, following the same principle adopted by DENCAST to solve regression tasks.
We optimized the input parameters of all the methods on an independent split of each dataset as follows:

DENCAST We set \(labelChangeRate = 5\%\) and performed a grid search to identify the best values of the parameters \(minPts \in \{3,5,10\}\) and \(minSim \in \{0.8, 0.9, 0.95, 0.97, 0.98, 0.99 \}\). The other LSH parameters were optimized in a separate preliminary experiment (see Table 1 for some results) and were accordingly set as follows: \(r = 5\) (number of hyperplanes), \(B = minPts \cdot 2\), (number of nearest neighbors to consider), \(numPerm = 20\) (number of random permutations). These values provided a good tradeoff between accuracy and running times.

AVG This approach does not need any tuning.

Kmeans We performed a grid search to choose the best value of k from the set \(\{ \sqrt{n}/8, \sqrt{n}/4, \sqrt{n}/2, \sqrt{n}, \sqrt{n} \cdot 2, \sqrt{n} \cdot 4, \sqrt{n} \cdot 8\}\).

ARIMA The best values of its parameters (i.e., the parameters p, d, q [33]) were automatically optimized by a tuning procedure available in the SparkTS library (based on the AUTOARIMA algorithm [48]);

Linear regression (LR) We performed a grid search to optimize the regularization parameter in \(\{0.15,0.3,0.45\}\).

Isotonic regression (ISO) The specific implementation in Spark does not require any optimization.

Long shortterm memory neural networks (LSTM) We performed a grid search to optimize the values of different hyperparameters: learning rate \(lr \in \{10^{1}, 10^{2}, 10^{3}\}\), dropout \(d \in \{0.1, 0.3, 0.5\}\), batch size \(bs \in \{64,128,256,512,1024\}\).
We set the remaining (secondary) parameters to their default values.
Datasets
In our experiments, we considered the following datasets (also see Table 2):

PVItaly data on energy production, aggregated hourly, collected from Jan 1\(^{\mathrm {st}}\), 2012, to May 4\(^{\mathrm {th}}\), 2014, by sensors located on 17 photovoltaic plants in Italy (see details in [7]).

PVNREL simulated photovoltaic data from 6000 plants, aggregated hourly, for the year 2006. In the scalability test, we considered a dataset of 20 M instances, which allowed us to deeply assess the efficiency of the proposed approach compared to Kmeans. In the evaluation of the regression performances, we also used a reduced version, consisting of the 48 plants obtained by a stratified sampling which selected 3 plants for each of the 16 States with the highest global horizontal irradiation (GHI). The reduced version allowed us to perform an extensive comparison with the approaches mentioned above since most of them were not able to process the full dataset in a reasonable time.

LightSource:^{Footnote 11} solar energy production data from 7 plants based in the United Kingdom. We enriched production data with irradiance data from PVGIS and weather data from Forecast.io, and aggregated spot values (1 min data) hourly.

WindNREL measurements of wind power plants from more than 30,000 sites. We selected five plants with the highest production, obtaining the time series of wind speed, production and climatic data (extracted from Forecast.io), aggregated hourly, from Jan 1\(^{\mathrm {st}}\), 2005, to Dec 31\(^{\mathrm {st}}\), 2006.

Bike sharing data from the Capital bikeshare system on the rental of bikes, aggregated hourly and daily, from/to different positions, collected in 2011 and 2012 [49]. Data include the count of rented bikes and weather information.

Burlington data from 51 kW DC rooftop photovoltaic installations owned by Dealer.com with 216 modules. The data span a period between 2nd Nov, 2012 and 18th Sep, 2014, aggregated hourly, and include the average measurements of temperature, irradiance, energy production and weather conditions extracted from Forecast.io.
Given the nature and temporal granularity of all the datasets considered, for each dataset, we select five random splits containing \(10\%\) of the days and adopt them as five different test sets. For each day of the test set, we consider the measurements of each hour of the previous 30, 60 and 90 days as training set, predict the value assumed by the target variable for each hour of the day and collect the average RMSE computed over the splits and the days. In the MT setting, each object represents one day, therefore: (i) the descriptive attributes correspond to the time series of the measurements and (ii) we predict the time series of the target attribute. The time series represent the hours of the day.
Discussion
In Table 3 we show the average RMSE obtained by DENCAST and by all the considered competitor systems. As anticipated, the MT results are not available for LR and ISO. Additionally, ISO was not able to provide the results within 20 days of execution for some configurations of the PVItaly and PVNREL datasets. The results obtained by ISO were also poor in terms of RMSE and almost in line with the results obtained by the baseline (AVG).
From the results obtained with different sizes of the training set we can observe that, in general, there is no significant variation. An important exception resides in the results obtained by ARIMA, which leads to more errors when the size of the training set increases. This behavior is reasonable since ARIMA only observes the time series described by the target variables. Therefore, its predictions are negatively affected by objects that are too distant, in terms of timestamp, from the unlabeled objects in the test set. On the contrary, in some configurations, other methods took advantage of larger training sets. An example can be seen in the Bike sharing dataset (singletarget setting), for which DENCAST obtains the best results only with the largest training set (90 days).
Focusing on the two different settings (MT vs. ST), we observe that the MT setting provides advantages in most cases. In some datasets such a difference is significant. It is noteworthy that DENCAST is the system that benefits most from the MT setting (Table 3, last column). This result confirms that it is reasonable in many domains to combine the MT setting (which takes into account dependency between the values of the same time series), with a densitybased predictive clustering solution.
Comparing DENCAST with other methods in terms of RMSE, we can see (Table 3) that it shows the best results in almost all the configurations, in both the ST and MT settings. We can observe some exceptions in the datasets LightSource and Bike Sharing, where Kmeans shows the best performances in the ST setting, and in the Burlington dataset, where LSTM outperforms the other competitors in the MT setting. The only dataset in which DENCAST obtains worse results than Kmeans in the MT setting (but not in ST) is WindNREL. This behavior is possibly motivated by the highly variable nature of wind that makes longterm prediction challenging for densitybased clustering methods. Here densitybased clustering tends to extract bigger clusters when compared to highlyfragmented centroidbased ones. This hypothesis is confirmed by the fact that, in this dataset, the optimal value of k for Kmeans is the highest (\(\sqrt{n}\cdot 8\)). In Table 4, where we report the number of clusters extracted by Kmeans and DENCAST in their bestperforming configurations, we can observe that this behavior is confirmed for all the datasets: DENCAST generally extracts a lower amount of clusters than Kmeans in the MT setting, while it extracts a significantly higher number of clusters in the ST setting. This result confirms that, although in the MT setting the number of clusters is generally lower for both the approaches (due to the lower number of instances), the densitybased approach leads to a number of clusters which is not strictly dependent on the number of instances, and that better adapts to the data distribution.
However, in most of the cases in which DENCAST obtains worse results with respect to the competitors, the difference is marginal. In order to statistically confirm this conclusion, we used the Friedman test with the Nemenyi posthoc test at \(\alpha = 0.05.\) In Fig. 5, we depict the result of the test, which shows that in the ST setting ISO, ARIMA and LSTM do not appear statistically better than the baseline AVG, while LR, Kmeans and DENCAST significantly outperform it. Moreover, DENCAST significantly outperforms all the competitors. Looking at the results in the MT setting, the difference is more evident, showing a clear dominance of DENCAST.
Moreover, we performed the Wilcoxon test on the average standard deviations which showed a pvalue < 0.05 for all the singletarget configurations and the 30days configuration of the multitarget setting. Another aspect we want to emphasize is that DENCAST generally provides more stable predictions than our version of Kmeans (which, as stated above, we extended with the same prediction step proposed for DENCAST). To show this aspect, in Table 5 we report the results in terms of the standard deviation of the predictions, which clearly show that DENCAST always leads to lower standard deviations than Kmeans.
In order to evaluate the efficiency of the proposed approach, we compared the performance of DENCAST, on the full version of the PVNREL dataset (20 M objects–400 million edges), with the predictive Kmeans, which is highlyoptimized in terms of efficiency in Apache Spark. In Fig. 6, we show the running times observed when the number of objects (and, thus, the number of edges in the neighborhood graph) increases. DENCAST appears much more efficient than the predictive Kmeans and scales better when the number of edges increases significantly. On the other hand, Kmeans was not able to analyze the full version of the dataset within 20 days.
Moreover, as introduced in “Results and discussion” section, we evaluated the DENCAST speedup factor. In particular, we first measured the running times on a single machine and on the cluster of machines for the analysis of the dataset PVNREL, with different sizes (in terms of the number of objects and, accordingly, of edges in the neighborhood graph). In Fig. 7a, it is possible to observe a comparison in terms of running times, which shows that the distributed approach scales much more efficiently on larger datasets with respect to the local variant. This improvement is confirmed by the speedup factor plotted in Fig. 7b, which shows that, with the largest version of the PVNREL dataset, DENCAST boosts the performance up to a 5\(\times\) factor, which is the ideal speedup factor with our cluster consisting of five machines.
Finally, we measured the scaleup factor, in order to evaluate the ability of DENCAST to exploit the computational power of multiple CPUs when dealing with datasets with a linearly increasing size. In particular, we considered four different sizes of the PVNREL dataset with a proportional increase in the number of cores used by DENCAST. The results plotted in Fig. 8 show that the scaleup factor is very close to 1 for almost all the configurations, which means that the overhead introduced by DENCAST in the distribution of the workload to multiple machines is very low. Moreover, processing even larger datasets through DENCAST would only require a linear increase in the number of available CPUs in the cluster of machines.
Conclusion
In this paper, we proposed DENCAST, a densitybased clustering algorithm implemented in Apache Spark, which is able to handle largescale and highdimensional data. We also exploited the clusters identified by DENCAST to predict the value assumed by one or more target variables of unlabeled objects, i.e., for regression purposes in both single and multitarget settings.
Our experimental evaluation, performed on several datasets, demonstrated the ability of DENCAST to obtain predictions with a higher accuracy than existing distributed regression approaches. Such competitive regression results also confirm the quality of the extracted clusters. A further analysis showed that DENCAST clearly benefits from the multitarget setting. In particular, the combination of the densitybased predictive clustering solution with the multitarget setting led DENCAST to dominate over all the considered competitors. This is an important result, since it confirms that catching possible dependencies among the target attributes provides a great margin of improvement in the regression task.
Moreover, an analysis focused on the efficiency emphasized the ability of DENCAST to significantly outperform the distributed version of Kmeans in Apache Spark, in terms of running times. Finally, a scalability analysis has shown that DENCAST exhibits optimal speedup and scaleup performances. In particular, it reached a 5\(\times\) speedup factor with five machines, corresponding to the ideal speedup factor, and a scaleup factor close to 1, which emphasizes a very low overhead due to the distribution of the workload. This relevant result is due to the advantage of performing all the stages in a fully distributed manner, without incurring in any computational bottleneck.
For future work, we aim to introduce the possibility to handle mixedtypes attributes (i.e., not only numerical attributes). Moreover, we plan to extend the proposed approach in order to make it able to solve classification tasks as well to measure and explicitly model spatiotemporal autocorrelation phenomena during the clustering and the prediction phases.
Availability of data and materials
The system DENCAST and all the datasets are available at http://www.di.uniba.it/~gianvitopio/systems/dencast/.
Notes
 1.
 2.
 3.
 4.
 5.
 6.
Although other APIs for graph analysis have been recently proposed [46], they can only improve the efficiency when there is an unidirectional value propagation. Since, in our case, propagation can happen in both directions, GraphX appeared the most appropriate approach, since directly integrated within Apache Spark.
 7.
We remind that the neighborhood graph is undirected. The identifiers src and dst are used only to distinguish between the two nodes involved in the link. This means that, in the algorithms, \(\forall p, q \in V\) the edge \(\langle p, q \rangle\) is interchangable with (equivalent to) the edge \(\langle q, p \rangle\).
 8.
It is noteworthy that this is only an implementation choice. Indeed, we could propagate the lowest cluster IDs without any change in the final clustering result, since the densityconnection property that we catch from the neighborhood graph is symmetric and transitive.
 9.
This assumes that, during the exploration of the graph, the propagation always happens towards new (not already visited) objects. However, if an object receives the same cluster ID multiple times during the execution of different iterations, the propagation does not happen and, therefore, it is not counted (Algorithm 2, lines 10–12).
 10.
The adopted implementation of the ARIMA algorithm is available at https://github.com/sryza/sparktimeseries. LR, ISO, and Kmeans are available in the Apache Spark MLlib library.
 11.
Not publicly available, even if anonymized, due to legal reasons.
Abbreviations
 API:

Application Programming Interface
 ARIMA:

AutoRegressive Integrated Moving Average
 DPC:

density peaks clustering
 GHI:

global horizontal irradiation
 IoT:

Internet of Things
 ISO:

isotonic regression
 LR:

linear regression
 LSH:

localitysensitive hashing
 LSTM:

long shortterm neural networks
 MT:

multitarget
 RDD:

resilient distributed dataset
 RMSE:

root mean square error
 ST:

singletarget
 SVR:

support vector regression
References
 1.
Cannataro M, Congiusta A, Pugliese A, Talia D, Trunfio P. Distributed data mining on grids: services, tools, and applications. IEEE Trans Syst Man Cybern B. 2004;34(6):2451–65.
 2.
Ester M, Kriegel HP, Sander J, Xu X, et al. A densitybased algorithm for discovering clusters in large spatial databases with noise. Kdd. 1996;96:226–31.
 3.
He Y, Tan H, Luo W, Mao H, Ma D, Feng S, Fan J. MRDBSCAN: an efficient parallel densitybased clustering algorithm using MapReduce. In: Proceeding of ICPADS. 2011. p. 473–80.
 4.
Cordova I, Moh TS. DBSCAN on resilient distributed datasets. In: High performance computing & simulation. 2015. p. 531–40.
 5.
Han D, Agrawal A, Liao WK, Choudhary A. A novel scalable DBSCAN algorithm with Spark. In: International parallel and distributed processing symposium workshops. 2016. p. 1393–402.
 6.
Blockeel H, Raedt LD, Ramon J. Top–down induction of clustering trees. In: Shavlik JW, editor. Proceeding of ICML. Madison: Morgan Kaufmann; 1998. p. 55–63.
 7.
Ceci M, Corizzo R, Fumarola F, Malerba D, Rashkovska A. Predictive modeling of PV energy production: how to set up the learning task for a better prediction? IEEE Trans Ind Inform. 2017;13(3):956–66.
 8.
Ceci M, Corizzo R, Malerba D, Rashkovska A. Spatial autocorrelation and entropy for renewable energy forecasting. Data Mining Knowl Discov. 2019;33:698–729.
 9.
Chen X, Cai X, Liang J, Liu Q. Ensemble learning multiple lssvr with improved harmony search algorithm for shortterm traffic flow forecasting. IEEE Access. 2018;6:9347–57.
 10.
Liu BC, Binaykia A, Chang PC, Tiwari MK, Tsao CC. Urban air quality forecasting based on multidimensional collaborative support vector regression (svr): a case study of beijingtianjinshijiazhuang. PLoS ONE. 2017;12(7):0179763.
 11.
Liu J, Sun L, Li Q, Ming J, Liu Y, Xiong H. Functional zone based hierarchical demand prediction for bike system expansion. In: Proceeding of ACM SIGKDD 2017. New York: ACM; 2017. p. 957–66.
 12.
Li Y, Zheng Y, Zhang H, Chen L. Traffic prediction in a bikesharing system. In: SIGSPATIAL. New York: ACM; 2015. p. 33.
 13.
Xioufis ES, Tsoumakas G, Groves W, Vlahavas IP. Multitarget regression via input space expansion: treating targets as inputs. Mach Learn. 2016;104(1):55–98.
 14.
Dincer NG, Akkuş Ö. A new fuzzy time series model based on robust clustering for forecasting of air pollution. Ecol Inform. 2018;43:157–64.
 15.
Stojanova D, Ceci M, Appice A, Dzeroski S. Network regression with predictive clustering trees. Data Mining Knowl Discov. 2012;25(2):378–413.
 16.
Pio G, Serafino F, Malerba D, Ceci M. Multitype clustering and classification from heterogeneous networks. Inform Sci. 2018;425:107–26.
 17.
Stojanova D, Ceci M, Appice A, Malerba D, Džeroski S. Dealing with spatial autocorrelation when learning predictive clustering trees. Ecol Inform. 2013;13:22–39.
 18.
Charikar MS. Similarity estimation techniques from rounding algorithms. In: Proceeding of the 34th annual ACM symposium on theory of computing. New York: ACM; 2002. p. 380–8.
 19.
Rodriguez A, Laio A. Clustering by fast search and find of density peaks. Science. 2014;344(6191):1492–6.
 20.
Comaniciu D, Meer P. Mean shift: a robust approach toward feature space analysis. IEEE Trans Pattern Anal Mach Intell. 2002;24(5):603–19.
 21.
Sreedhar C, Kasiviswanath N, Reddy PC. Clustering large datasets using kmeans modified inter and intra clustering (kmi2c) in hadoop. J Big Data. 2017;4(1):27.
 22.
Zhang H, Raitoharju J, Kiranyaz S, Gabbouj M. Limited random walk algorithm for big graph data clustering. J Big Data. 2016;3(1):26.
 23.
Kaur A, Datta A. A novel algorithm for fast and scalable subspace clustering of highdimensional data. J Big Data. 2015;2(1):17.
 24.
Ankerst M, Breunig MM, Kriegel HP, Sander J. Optics: ordering points to identify the clustering structure. SIGMOD Rec. 1999;28(2):49–60.
 25.
Aggarwal CC, Han J, Wang J, Yu PS. A framework for clustering evolving data streams. In: VLDB. 2003. p. 81–92.
 26.
Birant D, Kut A. STDBSCAN: an algorithm for clustering spatialtemporal data. Data Knowl Eng. 2007;60(1):208–21.
 27.
Wu YP, Guo JJ, Zhang XJ. A linear DBSCAN algorithm based on LSH. In: International conference on machine learning and cybernetics, vol. 5. IEEE. 2007. p. 2608–14.
 28.
Berchtold S, Keim DA, Kriegel HP. The Xtree: an index structure for highdimensional data. In: Proceedings of VLDB ’96, San Francisco, CA, USA. 1996. p. 28–39.
 29.
Huang F, Zhu Q, Zhou J, Tao J, Zhou X, Jin D, Tan X, Wang L. Research on the parallelization of the DBSCAN clustering algorithm for spatial data mining based on the Spark platform. Rem Sens. 2017;9:12.
 30.
Zou H, Hastie T. Regularization and variable selection via the elastic net. J R Stat Soc. 2005;67(2):301–20.
 31.
Barlow R, Brunk H. The isotonic regression problem and its dual. J Am Stat Assoc. 1972;67(337):140–7.
 32.
Ababei C, Moghaddam MG. A survey of prediction and classification techniques in multicore processor systems. IEEE Trans Parallel Distrib Syst. 2018;30:5.
 33.
Box GE, Jenkins GM, Reinsel GC, Ljung GM. Time series analysis: forecasting and control. 5th ed. Oxford: Wiley; 2015.
 34.
Corizzo R, Ceci M, Japkowicz N. Anomaly detection and repair for accurate predictions in geodistributed Big Data. Big Data Res. 2019;16:18–35.
 35.
Kocev D, Vens C, Struyf J, Džeroski S. Tree ensembles for predicting structured outputs. Pattern Recogn. 2013;46(3):817–33.
 36.
Borchani H, Varando G, Bielza C, Larrañaga P. A survey on multioutput regression. Wiley Interdiscip Rev. 2015;5(5):216–33.
 37.
Brudnak M. Vectorvalued support vector regression. In: IJCNN’06. IEEE international joint conference on neural networks. 2006. p. 1562–9.
 38.
Xu S, An X, Qiao X, Zhu L, Li L. Multioutput leastsquares support vector regression machines. Pattern Recogn Lett. 2013;34(9):1078–84.
 39.
Appice A, Džeroski S. Stepwise induction of multitarget model trees. In: European conference on machine learning. Berlin: Springer; 2007. p. 502–9.
 40.
Hochreiter S, Schmidhuber J. Long shortterm memory. Neural Comput. 1997;9:1735–80.
 41.
Zaharia M, Chowdhury M, Franklin MJ, Shenker S, Stoica I. Spark: cluster computing with working sets. In: Proceeding of HotCloud’10. 2010. p. 10.
 42.
Ravichandran D, Pantel P, Hovy E. Randomized algorithms and NLP: using locality sensitive hash function for high speed noun clustering. In: Meeting on association for computational linguistics. ACL ’05. 2005. p. 622–9.
 43.
Ferreira LN, Zhao L. Time series clustering via community detection in networks. Inform Sci. 2016;326:227–42.
 44.
Leskovec J, Rajaraman A, Ullman JD. Mining of massive datasets. 2nd ed. New York: Cambridge University Press; 2014.
 45.
Andoni A, Indyk P, Laarhoven T, Razenshteyn I, Schmidt L. Practical and optimal lsh for angular distance. In: Proceedings of the 28th international conference on neural information processing systems, volume 1. NIPS’15. Cambridge: MIT Press. 2015. p. 1225–33.
 46.
Tian X, Guo Y, Zhan J, Wang L. Towards memory and computation efficient graph processing on spark. In: International conference on Big Data (Big Data). 2017. p. 375–82.
 47.
Gonzalez JE, Xin RS, Dave A, Crankshaw D, Franklin MJ, Stoica I. Graphx: graph processing in a distributed dataflow framework. OSDI. 2014;14:599–613.
 48.
Hyndman RJ, Khandakar Y, et al. Automatic time series for forecasting: the forecast package for r. Technical report. Monash University, Department of Econometrics and Business Statistics. 2007.
 49.
Fanaee TH, Gama J. Event labeling combining ensemble detectors and background knowledge. Progr Artif Intell. 2013;2:1–15.
Acknowledgements
We thank Lynn Rudd for her help in reading the manuscript.
Funding
We acknowledge the support of the European Commission through the projects MAESTRA—Learning from Massive, Incompletely annotated, and Structured Data (Grant No. ICT2013612944) and TOREADOR—Trustworthy Modelaware Analytics Data Platform (Grant No. H2020688797). We also acknowledge the support of Ministry of Education, Universities and Research (MIUR) through the PON project ComESto—Community Energy Storage: Gestione Aggregata di Sistemi d’Accumulo dell’Energia in Power Cloud (Grant No. ARS01 01259).
Author information
Author notes
Affiliations
Contributions
RC, GP and MC collaborated in the design of the method. RC and MC took care of the study of the related work. RC and GP implemented the system and ran the experiments. MC, RC and GP performed the analysis of the results. RC, GP and MC contributed to the manuscript drafting. GP, MC, RC and DM contributed to the manuscript finalization. MC and DM supervised the study. All authors read and approved the final manuscript.
Corresponding author
Correspondence to Roberto Corizzo.
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Corizzo, R., Pio, G., Ceci, M. et al. DENCAST: distributed densitybased clustering for multitarget regression. J Big Data 6, 43 (2019) doi:10.1186/s4053701902072
Received
Accepted
Published
DOI
Keywords
 Distributed clustering
 Multitarget regression
 Apache Spark