This paper presents a data privacy protection framework based on federated learning.Federated learning reduces the risk of privacy breaches by training the model locally on each client and sharing only model parameters.The experiment demonstrates the efficiency and privacy protection ability of federated learning for medical, financial, and user data.Federated learning enables effective cross-domain data collaboration while ensuring data privacy.