TL;DR
This paper proposes a proactive framework for crowdsourced live streaming that uses machine learning to predict viewer locations and then optimizes cloud resource allocation. By anticipating where audiences will be, the system minimizes video latency (improving Quality of Experience) while simultaneously reducing infrastructure costs for service providers.
What Problem Does This Paper Address?
Crowdsourced live streaming (e.g., Facebook Live, Twitch) is exploding in popularity, but it faces a difficult infrastructure challenge. To ensure a high Quality of Experience (QoE), video content must be stored as close to the viewers as possible to minimize startup delays and buffering.
Traditional resource allocation methods are often reactive or rely on simple heuristics. This leads to two main problems:
- Over-provisioning: Allocating too many resources globally, which wastes money.
- Under-provisioning: Failing to allocate resources where viewers actually are, leading to high latency and viewer abandonment.
The authors seek to bridge this gap by moving from a reactive model to a proactive one, using data-driven predictions to place video replicas exactly where they are needed before the viewers even arrive.
Methods
The authors developed a two-stage framework consisting of a predictive engine and an optimization module, coordinated through a master server that interacts with geo-distributed cloud regions.
- The Predictive Model: Using a unique dataset of Facebook Live metadata, the authors implemented three machine learning architectures—Multilayer Perceptron (MLP), Decision Trees (DT), and Random Forest (RF)—to predict the number of viewers near 10 specific Amazon Web Services (AWS) cloud regions. They used features like broadcaster name, content category, creation time, and broadcaster location.
- The Optimization Model: Based on the ML predictions, the system formulates a cost-minimization problem. It calculates the optimal number of video replicas to store across the geo-distributed cloud sites. The objective function accounts for three types of costs: storage cost, migration cost, and serving cost. The optimization is constrained by a latency threshold ($D$), ensuring that cost-saving measures don't degrade the viewer's experience beyond a certain point.
Datasets
The study utilizes a custom Facebook 2018 live videos dataset collected by the authors' team, comprising over two million streams. Metadata was fetched every 3 minutes, capturing viewer counts and geographic locations. Raw locations were mapped to the 10 nearest AWS regions (e.g., US East-Ohio, Europe-Frankfurt, Asia-Singapore) to make the prediction task computationally feasible.
Key Insights and Ideas
- Random Forest Wins: Interestingly, the Random Forest (RF) model generally outperformed the deep learning-based MLP. This suggests that for this specific type of structured metadata (categorical features like "content category"), ensemble tree methods remain highly effective.
- The "Sweet Spot" for Latency: The paper quantifies the trade-off between cost and delay. While serving every viewer from their local region provides the best QoE, it is the most expensive. The authors show that by slightly relaxing the latency threshold (e.g., to 60ms), providers can significantly reduce costs while still maintaining a high-quality stream.
- Proactive vs. Reactive: By predicting viewer distribution per incoming video, the system can handle the "flash crowd" effect common in live streaming, where a video suddenly gains thousands of viewers in a specific geographic area.
Key Results
The predictive models demonstrated strong performance across diverse geographic regions. The Random Forest model achieved high coefficients of determination ($R^2$), reaching 0.91 for Seoul and 0.89 for Sao Paulo, indicating very accurate viewer count predictions.
In simulations, the average latency to serve actual viewers closely tracked the predicted latency, proving that the ML-driven allocation was effective in the real world. The framework successfully established a clear Pareto frontier between video access delay and resource allocation cost, allowing providers to choose an operating point based on their specific budget and QoE targets.
Limitations and Future Work
While the paper provides a robust framework for storage allocation, it acknowledges a few limitations:
- Computation Resources: The current model focuses on storage and data transfer but does not account for the computational costs of video transcoding.
- Fixed Durations: The simulation assumes a maximum video duration of 4 hours; real-world streaming behavior can be more volatile.
- Future Directions: The authors plan to expand the predictive model to forecast the total number of incoming live videos and the specific viewing time of individual users to further refine how resources are scheduled and released.
Summary updated