The invention discloses a dynamic weighted sampling
federated learning algorithm for an MEC
system, and relates to the technical field of
edge computing, and the
algorithm comprises the following steps: an
Internet of Things device collects local data, carries out the preprocessing and
feature extraction, employs a dynamic weighted sampling strategy to adjust the sampling, a terminal device trains a model through a
federated learning framework, and carries out the
feature extraction of the local data; parameters are uploaded to a central
server to be weighted and aggregated into a
global model, the number of iterations is dynamically adjusted, parameters of the
global model are analyzed and displayed in real time, and training process data are recorded. According to the method, data distribution in
federated learning is optimized through a dynamic weighted sampling strategy, the efficiency and accuracy of model training are improved, the flexibility of an
algorithm is enhanced by dynamically adjusting the number of iterations, the method adapts to the requirements of different scenes,
global model parameters are analyzed and displayed in real time, training process data are convenient to monitor, optimize and
record, and the training efficiency is improved. And a basis is provided for subsequent
model tuning and
troubleshooting, and the performance and practicability of federated learning in the MEC
system are integrally improved.