Source-linked AI summary

Mobile Big Data Analytics Using Deep Learning and Apache Spark

Mohammad Abu Alsheikh, Dusit Niyato, Shaowei Lin, Hwee-Pink Tan, Zhu Han

arXiv:1602.07031v1cs.DCcs.LGcs.NE

TL;DR

Mobile big data can be too large for a single machine, and deep-model training on these data is slow. The paper presents a Spark-based distributed learning framework and reports a 4.1 speedup efficiency for a five-layer model trained with six Spark workers.

Abstract

from arXiv · show

The proliferation of mobile devices, such as smartphones and Internet of Things (IoT) gadgets, results in the recent mobile big data (MBD) era. Collecting MBD is unprofitable unless suitable analytics and learning methods are utilized for extracting meaningful information and hidden patterns from data. This article presents an overview and brief tutorial of deep learning in MBD analytics and discusses a scalable learning framework over Apache Spark. Specifically, a distributed deep learning is executed as an iterative MapReduce computing on many Spark workers. Each Spark worker learns a partial deep model on a partition of the overall MBD, and a master deep model is then built by averaging the parameters of all partial models. This Spark-based framework speeds up the learning of deep models consisting of many hidden layers and millions of parameters. We use a context-aware activity recognition application with a real-world dataset containing millions of samples to validate our framework and assess its speedup effectiveness.

I. INTRODUCTION

Mobile big data (MBD) is too massive for a single machine, yet contains information useful for applications such as activity recognition and healthcare. The article presents deep learning and a Spark-based framework as approaches to MBD analytics.

A. The Era of MBD

  • MBD is mobile data too massive for a single machine to process, collected from mobile devices that support pervasive sensing.The data can contain useful information for fraud detection, marketing, context-aware computing, and healthcare.Source: §I · p. 1

I. INTRODUCTION

  • Deep learning can provide high accuracy, avoid handcrafted feature design, and use abundant unlabeled mobile data for feature extraction.Training remains slow on conventional systems because of MBD’s size and dimensionality, taking hours to days.Source: §I · p. 1
  • The article presents a Spark-based framework for time-efficient learning of deep models with millions of parameters and tests it on context-aware activity recognition.The article reports improved accuracy over conventional methods and faster learning than single-machine computation.Source: §I · p. 1

A. The Era of MBD

  • Mobile-device sensors and crowdsourcing make MBD analytics a way to discover patterns that support services such as activity recognition.The paper describes requests carrying accelerometer data that a server maps to probable human activities.Source: A. The Era of MBD · p. 2

B. Challenges of MBD Analytics

MBD analytics faces challenges from increasing data volume and speed, mobile-device portability, and crowdsourced sensing. These properties create demands involving latency, changing data, quality, and variety.

  • High-speed mobile networks generate massive and increasingly fast data flows, with queuing delays affecting service latency and user satisfaction.The passage reports 3.7 exabytes of mobile data per month in 2015.Source: B. Challenges of MBD Analytics · p. 2
  • Device portability makes MBD non-stationary, so collected data may remain valid for decision-making only briefly and analytics should be repeated as samples arrive.Source: B. Challenges of MBD Analytics · p. 2
  • Crowdsourced sensing creates data-quality uncertainty from noisy, missing, malfunctioning, uncalibrated, or badly labeled samples, while multiple sensor types add variety.Low-quality data points affect analytical accuracy.Source: B. Challenges of MBD Analytics · p. 2
  • MBD analytics extracts knowledge and patterns that can support better services for mobile users and revenue for mobile businesses.Source: B. Challenges of MBD Analytics · p. 2

III. DEEP LEARNING IN MBD ANALYTICS

Deep learning models learn hierarchical features from mobile big data and can process unseen streaming samples. The paper outlines layer-wise training for constructing models that may be difficult to train all at once.

  • Deep learning models use simulated neurons and synapses to learn hierarchical features from MBD and can generalize to unseen streaming samples.Source: §III · p. 2
  • Greedy layer-by-layer learning addresses the difficulty of training deep models with many hidden layers and millions of parameters at once.The article gives a general discussion rather than deriving particular techniques.Source: §III · pp. 2–3
  • Layer-wise pre-training learns features from unlabeled data one layer at a time, then fine-tunes initialized parameters with labeled data for the target problem.Each added layer takes the previous layer’s output as input and learns more complex features.Source: §III · p. 3

A. Deep Learning Advantages in MBD Analytics

The article describes deep learning as useful for MBD analytics because it can provide accuracy, learn intrinsic features, and exploit unlabeled or multimodal data. These capabilities address feature-design and labeling demands in mobile sensing.

B. Deep Learning Challenges in MBD Analytics

Deep learning on mobile big data is slow because datasets are large, models have many parameters, and mobile systems require models to adapt over time. The proposed Spark framework partitions data across workers and aggregates their partial models.

B. Deep Learning Challenges in MBD Analytics

  • Deep learning on mobile big data can take days, while mobile systems often require rapid decisions and continuous model adaptation.The stated challenges include large datasets, computationally demanding models, and changing system dynamics.Source: B. Deep Learning Challenges in MBD… · p. 4
  • Using random samples reduces computational burden but can perform poorly on unseen streaming samples; using all available data increases that burden.Source: B. Deep Learning Challenges in MBD… · p. 4
  • A five-layer model with 2,000 neurons per layer has around 20 million parameters, making gradient-based optimization computationally expensive.Source: B. Deep Learning Challenges in MBD… · p. 4

IV. A SPARK-BASED DEEP LEARNING FRAMEWORK FOR MBD ANALYTICS

  • Spark partitions mobile big data across workers, each learning a partial deep model; the master reconstructs a model by averaging worker models.The framework uses Spark RDDs to distribute data and supports cached data access and fault-tolerant execution.Source: §IV · p. 4

A. Parallelized Learning Collections

The framework maps deep-model learning onto iterative MapReduce: workers process separate mobile-data partitions, and a master aggregates their parameters and redistributes the updated model until convergence.

A. Parallelized Learning Collections

  • The learning process repeatedly computes gradients in parallel on data batches and reduces the updates by averaging them.The passage maps parallel gradient computation to Map and parameter updating to Reduce.Source: A. Parallelized Learning Collections · p. 4
  • Spark splits mobile big data into partitions stored in RDDs and distributed to workers, where cached in-memory access reduces data-access latency.Source: A. Parallelized Learning Collections · p. 4
  • Each worker computes gradient updates on its partition; the master averages worker parameters and redistributes the resulting model for another iteration until convergence.Source: A. Parallelized Learning Collections · p. 4
  • Figure 3 depicts the Spark-based framework for distributed deep learning in mobile big data analytics.Source: Figure 3 · p. 5

B. Discussion

The paper assigns deep learning a role in extracting value from mobile big data and handling multimodal inputs, while Spark addresses data volume, streaming velocity, and model volatility. It illustrates context-aware analytics with an activity-recognition case study.

B. Discussion

  • Deep learning is presented as addressing mobile big data’s value and variety through raw-data understanding and learning from multimodal distributions.One example is concatenated input from accelerometer and light sensors.Source: B. Discussion · p. 5
  • Spark distributes learning across data partitions to handle volume, uses streaming extensions for velocity, and speeds training to address volatility.Source: B. Discussion · p. 5
  • The framework does not directly address data veracity; domain experts must design checks for crowdsourced data before it enters central storage.Source: B. Discussion · p. 5

V. PROTOTYPING CONTEXT-AWARE ACTIVITY RECOGNITION SYSTEM

  • The case study uses context-aware activity recognition to connect sensed circumstances with personalized mobile services.The described activities include walking, jogging, stair climbing, sitting, standing, and lying down.Source: §V · p. 5

A. Problem Statement

The activity-recognition task maps framed accelerometer signals to activity labels, and deep models learn both that mapping and features instead of relying on handcrafted features. The experiment uses Actitracker data with unlabeled pre-training followed by labeled fine-tuning.

A. Problem Statement

  • The classifier maps framed acceleration data to the most probable label among the supported activities.Source: A. Problem Statement · pp. 5–6
  • Deep activity models learn a mapping from raw acceleration data to activity labels while also learning features, avoiding costly handcrafted features that require expertise and generalize poorly.Source: A. Problem Statement · p. 6

B. Experimental Setup

  • Actitracker contains 2,980,765 labeled and 38,209,772 unlabeled samples from 563 users across six activities, sampled at 20 Hz and framed in 10-second windows.Models are pre-trained on unlabeled samples, then fine-tuned on labeled data using acceleration spectrograms as input.Source: B. Experimental Setup · p. 6
  • Distributed deep learning is described as strong regularization, so the experiments avoid sparsity and dropout constraints to reduce the risk of underfitting.Source: B. Experimental Setup · p. 6

C. Experimental Results

The experiments report lower activity-recognition error for deep models than shallow context-learning methods, alongside faster learning as Spark workers increase. The case study also illustrates how activity-label ambiguity can reflect variation in crowdsourced data collection.

1) The impact of deep models:

  • Deep models outperform existing shallow context-learning models, while deeper models and more neurons increase capacity but also computational burden and training time.Early stopping selects the best parameters and helps avoid overfitting; 5 layers with 2000 neurons per layer is given as an example for avoiding underfitting.Source: 1) The impact of deep models · p. 6, Table I · p. 6

2) The impact of computing cores:

  • 3.63 hours with 6 Spark workers yields speedup efficiency 4.1 versus 14.91 hours on a single machine for the 5-layer, 2000-neuron model.Learning time decreases as the number of computing cores increases.Source: 2) The impact of computing cores · p. 6

3) MBD veracity:

  • The confusion matrix shows high per-activity performance, while sitting is sometimes mistaken for lying down because crowdsourced users perform these activities differently.The authors present this ambiguity as an example of MBD veracity uncertainty.Source: 3) MBD veracity · p. 6

VI. FUTURE WORK

The article outlines future research directions for mobile big data, including crowd labeling. It distinguishes paid and embedded labeling schemes and identifies design needs for each.

VI. FUTURE WORK

  • Future work is proposed for MBD collection, labeling, and economics.The article frames these as research directions based on its proposed framework.Source: §VI · p. 6

A. Crowd Labeling of MBD

  • Paid crowd labeling compensates mobile users for annotation performance and speed, making optimal budget allocation a research need.Source: A. Crowd Labeling of MBD · p. 7
  • Embedded labeling places tasks within mobile-app routines, but methods should avoid disrupting user experience or core functionality.CAPTCHA-based image labeling is given as an example.Source: A. Crowd Labeling of MBD · p. 7

B. Economics of MBD

The article identifies business models for exchanging MBD and fair data exchange as research directions. It also concludes that its Spark-based framework was validated in an activity-recognition case study.

B. Economics of MBD

  • The article identifies pricing and auction design for buying and selling MBD among mobile organizations as a research direction.Source: B. Economics of MBD · p. 7

C. Privacy and MBD Collection

  • Because users may be concerned about sharing personal data, the article points to fair data exchange that rewards sharing and to anonymized collection.It notes that few users will opt out unless trustworthy privacy mechanisms are applied.Source: C. Privacy and MBD Collection · pp. 7–8

VII. CONCLUSIONS

  • The scalable Spark-based deep-learning framework was validated through a large-scale activity-recognition case study.The conclusion also outlines future research directions on MBD.Source: §VII · p. 8
Loading 1602.07031v1…