Multi-scene-oriented federated radio digital twinning multi-unknown-source electromagnetic situation inference and positioning method

By constructing a multi-scenario federated radio digital twin, a complete electromagnetic situation map of different signal source states can be generated without changing the actual physical environment. This solves the problems of electromagnetic situation map reconstruction and multi-unknown signal source localization in multi-city radio monitoring, and improves the accuracy and stability of reconstruction and localization.

CN123159062APending Publication Date: 2026-11-24JINAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611092405.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies struggle to achieve the integration of sparse power observation with building geographic priors, collaborative learning of shared propagation knowledge across different scenarios, personalized preservation of scenario-specific propagation characteristics, digital mapping of physical radio environment conditions, virtual simulation of electromagnetic situation under different signal source parameter conditions, and location determination of multiple unknown signal sources in multi-city or multi-scenario radio monitoring.

Method used

A multi-scenario federated radio digital twin is constructed. By establishing a mapping relationship between physical radio scenarios and virtual wireless propagation scenarios, a shared propagation representation backbone and a local personalized parameter decoupling structure are adopted. Two-stage local training and server momentum aggregation are carried out to achieve cross-scenario collaborative training, electromagnetic situation simulation and signal source localization.

Benefits of technology

Without altering the actual physical environment, a complete electromagnetic situation map of different signal source states is generated, enabling integrated processing of electromagnetic situation map reconstruction and multi-unknown signal source localization, reducing data transmission overhead, and improving reconstruction and localization accuracy and stability in heterogeneous scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159062A_ABST
    Figure CN123159062A_ABST
Patent Text Reader

Abstract

The application discloses a multi-unknown-source electromagnetic situation deduction and positioning method for multi-scene federated radio digital twinning, specifically comprising the following steps: constructing a radio digital twin according to the coordinate mapping relationship between a physical radio scene and a virtual scene grid to obtain a joint input; constructing a shared main body, a local individualized field strength reconstruction head and a local individualized signal source positioning head to respectively output a predicted electromagnetic situation map and a signal source position heat map; performing two-stage local training of a client based on a multi-task joint loss, and updating global shared parameters by aggregating the shared parameter update amounts of multiple city clients; after multiple rounds of iteration, generating a complete electromagnetic situation map and a signal source position heat map of a target scene based on final parameters, and outputting the positions of multiple unknown signal sources. The application realizes multi-scene wireless propagation knowledge collaborative learning, complete electromagnetic situation reconstruction and multi-unknown signal source positioning under the condition that original scene data does not leave the local.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of radio monitoring, radio digital twins, federated learning, electromagnetic situation simulation and wireless signal source localization, and particularly to a method for electromagnetic situation simulation and localization of multiple unknown sources for multi-scenario federated radio digital twins. Background Technology

[0002] With the continuous growth of wireless communication networks and the number of wireless devices in cities, the number of wireless signal sources in complex urban environments is constantly increasing, and the electromagnetic space exhibits characteristics such as diverse signal types, complex propagation environments, and uneven spatial distribution. An electromagnetic situation map (Radio Map) is used to characterize the spatial distribution of electromagnetic parameters such as received signal strength, path loss, or wireless coverage quality within a certain area. It is an important foundation for spectrum monitoring, interference analysis, coverage prediction, network optimization, and the localization of abnormal signal sources.

[0003] In real-world urban environments, limited by the number of monitoring devices, deployment costs, and communication conditions, radio monitoring systems typically only obtain sparse received power observations at limited locations, making it difficult to directly acquire the continuous field strength distribution over a complete area. Furthermore, wireless signals are affected by factors such as distance attenuation, building obstruction, reflection, diffraction, and multipath effects during propagation. When multiple unknown signal sources or interference sources are present, the spatial propagation results of different signals are further superimposed, making the regional electromagnetic field distribution even more complex. Therefore, how to reconstruct the complete electromagnetic field distribution from limited monitoring data and further analyze the state of multiple unknown signal sources has become a crucial issue in electromagnetic environment sensing in complex urban scenarios.

[0004] In the reconstruction of electromagnetic situation maps, existing technologies mainly include traditional spatial interpolation methods, centralized reconstruction methods based on deep neural networks, and distributed collaborative reconstruction methods based on federated learning.

[0005] Early electromagnetic situation map reconstruction primarily employed methods such as Kriging interpolation, inverse distance weighting, or path loss models to estimate the field strength distribution in unobserved areas based on the received power and spatial relationships of a limited number of monitoring points. These methods are simple to implement and offer some physical interpretability, but they typically rely on spatial stationarity or pre-defined propagation models. In complex urban environments, building obstruction, reflection, diffraction, and multipath propagation create complex nonlinear field strength distributions, making it difficult for traditional interpolation and fixed propagation models to accurately reconstruct a complete electromagnetic situation map.

[0006] With the development of deep learning, researchers have begun to use neural networks to learn the nonlinear mapping relationship between sparse power observations and complete electromagnetic situation maps. Levie et al. proposed RadioUNet, which uses convolutional neural networks to extract spatial features of the wireless propagation environment and achieve rapid estimation of electromagnetic situation maps [1]. In addition, the JiT generative reconstruction method proposed by Li and He provides a new technical approach for two-dimensional spatial field reconstruction by iteratively denoising and learning complex data distributions [2]. However, most of these methods adopt centralized training, which requires the unified transmission of data from different cities or monitoring areas to a central server. In multi-city collaborative scenarios, there are large communication and storage overheads, and data sharing is limited.

[0007] To address the collaborative modeling problem under dispersed data conditions, McMahan et al. proposed the FedAvg method, which achieves collaborative learning without leaving the local area by training the client locally and weighting the server parameters [3]. Mo et al. further applied federated learning to the construction of radio environment maps, training local models in multiple regions separately and aggregating the model parameters by the server to achieve collaborative reconstruction of distributed electromagnetic situation maps [4]. However, traditional FedAvg usually aggregates all model parameters uniformly, while different cities have significant differences in building structure, street morphology and propagation occlusion patterns. Directly averaging the model parameters of each city can easily weaken the city's unique propagation characteristics and even produce negative migration, affecting the reconstruction accuracy of the local electromagnetic situation map.

[0008] To address the issue of heterogeneous client data, Collins et al. proposed a personalized federated learning method based on shared representations, which divides the model into a cross-client shared part and a local personalized part, preserving client adaptability while learning common knowledge [6]. In addition, Kwon et al. proposed the ASAM method, which improves the generalization ability and training stability of the model by optimizing the loss in the parameter neighborhood [5]. However, existing methods are mainly geared towards general machine learning tasks, and a multi-city electromagnetic situation map collaborative reconstruction scheme that combines sparse power observation, building geographical priors, shared propagation representations, local personalized reconstruction, and stable federated optimization has not yet been formed.

[0009] On the other hand, existing electromagnetic situation map reconstruction techniques, represented by RadioUNet and federated radio environment map construction methods, typically treat the electromagnetic situation map as the field strength distribution result at a certain sampling time or in a given scenario. They are mainly used to recover missing electromagnetic parameters in the monitoring area based on existing observations [1,4]. These methods focus on establishing a mapping relationship between sparse power observations and complete field strength distributions. When the number of signal sources, the location of signal sources, the transmission power, or the propagation environment changes, it is usually necessary to reacquire the observation data in the corresponding scenario and perform map reconstruction again. It is difficult to continuously represent the state changes of the physical radio scenario, and the resulting electromagnetic situation map has strong staticity.

[0010] Radio digital twins aim to establish a digital model in virtual space that can characterize the actual wireless propagation environment and electromagnetic propagation characteristics, and to use actual wireless measurement data to construct, calibrate or update the virtual model. Jiang et al. constructed a learnable wireless digital twin model by learning the electromagnetic properties of environmental objects and their interaction with radio waves to predict the wireless channel state corresponding to different locations [7]; Krause et al. used radio environment digital twins to generate expected received signal strength and compared it with the actual measurement results obtained by distributed sensing devices to realize wireless network anomaly detection [8]. However, most existing electromagnetic situation map reconstruction methods still focus on restoring the current field strength distribution based on existing observations, lacking a virtual extrapolation mechanism for electromagnetic situation regarding changes in signal source state. It is difficult to simulate electromagnetic situation changes under different signal source numbers, locations and transmission power conditions without changing the actual physical environment and redeploying real signal sources, and it is also difficult to form a unified mapping relationship between physical monitoring data, virtual scene parameters and electromagnetic situation extrapolation results.

[0011] Furthermore, electromagnetic situation map reconstruction and multi-signal source localization are usually treated as two relatively independent problems in existing technologies. Electromagnetic situation map reconstruction methods mainly output the spatial distribution of electromagnetic parameters such as received power, path loss, or wireless coverage strength [1,2,4]; while multi-signal source localization methods usually require the separate construction of signal source number detection and location estimation models. For example, Zubow et al. proposed the DeepTxFinder method, which uses deep neural networks to estimate the location of unknown transmitters based on received power data collected by sparse sensors [9]. Therefore, although the reconstructed electromagnetic situation map can reflect the field strength changes at different spatial locations, existing electromagnetic situation map reconstruction methods usually cannot directly determine the number and spatial location of multiple unknown signal sources based on the reconstructed complete field strength distribution, making it difficult to achieve the coordinated processing of electromagnetic situation map reconstruction, electromagnetic situation inference, and multi-unknown signal source localization.

[0012] In summary, existing technologies lack a federated radio digital twin method for multi-city or multi-scenario radio monitoring tasks. This makes it difficult to simultaneously achieve, within the same technical framework, the fusion of sparse power observations and building geographical priors, collaborative learning of shared propagation knowledge across different scenarios, personalized preservation of scenario-specific propagation characteristics, digital mapping of the physical radio environment state, virtual electromagnetic situation simulation under different signal source parameter conditions, and location determination of multiple unknown signal sources. Therefore, it is necessary to propose a multi-unknown source electromagnetic situation simulation and location method for multi-scenario federated radio digital twins.

[0013] [1]LEVIE R, YAPAR Ç, KUTYNIOK G, et al. RadioUNet: Fast Radio MapEstimation With Convolutional Neural Networks[J]. IEEE Transactions onWireless Communications, 2021, 20(6): 4001-4015.

[0014] [2]LI Tianhong, HE Kaiming. Back To Basics: Let Denoising GenerativeModels Denoise[EB / OL]. arXiv:2511.13720, 2025.

[0015] [3]MCMAHAN HB, MOORE E, RAMAGE D, et al. Communication-EfficientLearning of Deep Networks From Decentralized Data[C] / / AISTATS. 2017: 1273-1282.

[0016] [4]MO Ronghong, PEI Yiyang, SUN Sumei, et al. Federated Learning-Based Radio Environment Map Construction for Wireless Networks[C] / / IEEEGLOBECOM. 2023: 5238-5243.

[0017] [5]KWON J, KIM J, PARK H, et al. ASAM: Adaptive Sharpness-AwareMinimization for Scale-Invariant Learning of Deep Neural Networks[C] / / ICML.2021: 5905-5914.

[0018] [6]COLLINS L, HASSANI H, MOKHTARI A, et al. Exploiting SharedRepresentations for Personalized Federated Learning[C] / / ICML. 2021: 2089-2099.

[0019] [7] JIANG S, QU Q, PAN X, et al. Learnable Wireless Digital Twins:Reconstructing Electromagnetic Field With Neural Representations[J]. IEEEOpen Journal of the Communications Society, 2025, 6: 1568-1590.

[0020] [8] KRAUSE A, KHURSHEED M D, SCHULZ P, et al. Digital Twin of theRadio Environment: A Novel Approach for Anomaly Detection in WirelessNetworks[C] / / IEEE GLOBECOM Workshops. 2023: 1307-1312.

[0021] [9] ZUBOW A, BAYHAN S, GAWLOWICZ P, et al. DeepTxFinder: MultipleTransmitter Localization by Deep Learning in Crowdsourced Spectrum Sensing[C] / / IEEE International Conference on Computer Communications and Networks.2020: 1-8. Summary of the Invention

[0022] The purpose of this invention is to overcome the shortcomings and deficiencies of the prior art and propose a method for multi-unknown source electromagnetic situation inference and localization of multi-scenario federated radio digital twins. It constructs radio digital twins corresponding to multiple physical radio scenarios, realizes cross-scenario collaborative training without leaving the local source, and uses digital twins to perform multi-unknown source electromagnetic situation inference and location inversion.

[0023] The objective of this invention is achieved through the following technical solution:

[0024] A method for multi-unknown-source electromagnetic situation estimation and localization based on multi-scenario federated radio digital twins includes the following steps:

[0025] S1. Obtain the 3D scene information and building geographic information corresponding to each scene client. Based on the 3D scene information and building geographic information, establish a virtual wireless propagation scene corresponding to the physical radio scene. Establish the mapping relationship between the physical scene coordinates and the electromagnetic situation map grid coordinates to construct a radio digital twin. In the radio digital twin, perform wireless propagation calculations based on the number, location, and transmission power of the signal sources to obtain the corresponding complete electromagnetic situation map and multi-signal source location heatmap labels. Based on the observation location of the samples, construct a sparse received power map, an observation location mask, and a building mask, and combine them to obtain the joint input of the scene client.

[0026] S2. Divide the electromagnetic situation map parameters of the scene client into shared propagation characterization parameters and local personalized multi-task parameters. The local personalized multi-task parameters include local personalized field strength reconstruction parameters and local personalized signal source positioning parameters. Construct a shared propagation characterization backbone, a local personalized field strength reconstruction head, and a local personalized signal source positioning head. Input the joint input into the shared propagation characterization backbone to obtain spatial propagation features. Input the spatial propagation features into the local personalized field strength reconstruction head and the local personalized signal source positioning head respectively to obtain the predicted electromagnetic situation map and signal source location heatmap.

[0027] S3. Perform two-stage local training on the client: In the first stage, fix the shared propagation representation parameters, calculate the field strength reconstruction loss based on the predicted electromagnetic situation map and the complete electromagnetic situation map, and calculate the signal source localization loss based on the predicted signal source location heatmap and the multi-signal source location heatmap labels; construct the multi-task joint loss based on the field strength reconstruction loss and the signal source localization loss, and update the local personalized multi-task parameters; In the second stage, fix the updated local personalized multi-task parameters, calculate the perturbation of the shared propagation representation parameters based on the multi-task joint loss and update the shared propagation representation parameters; send the updated shared propagation representation parameters to the server;

[0028] S4. The server performs a weighted summation of the shared propagation representation parameter updates from multiple scenario clients to obtain an aggregation result; updates the server momentum cache based on the aggregation result, and updates the global shared propagation representation parameters through the server momentum cache; uses the global shared propagation representation parameters as the initial shared propagation representation parameters for the next round of federated training, and obtains the final parameters after performing a preset number of federated communication rounds; generates a complete electromagnetic situation map and signal source location heatmap for the target scenario based on the final parameters, and performs peak detection on the signal source location heatmap to obtain the locations of multiple unknown signal sources.

[0029] Step S1 is as follows:

[0030] S11. Construct a radio digital twin and generate electromagnetic situation data: acquire the three-dimensional scene model, building spatial information, monitoring node location and received power data corresponding to each scene client, establish a virtual wireless propagation scene corresponding to the physical radio scene according to the spatial range and grid division method of the electromagnetic situation map, and establish the mapping relationship between the physical scene coordinates and the virtual wireless propagation scene grid coordinates.

[0031] For the i-th sample of the j-th scenario client, set in the virtual wireless propagation scenario A set of signal sources, the state set of the signal sources for:

[0032] ;

[0033] in, , and Let x represent the x-coordinate, y-coordinate, and transmission power of the q-th signal source, respectively, and tx represent the signal source;

[0034] Based on the set of signal source states, perform wireless propagation calculations to obtain a complete electromagnetic situation map. :

[0035] ;

[0036] in, This represents the wireless propagation calculation process corresponding to the j-th scenario. This indicates the spatial grid size of the electromagnetic situation diagram;

[0037] The physical scene coordinates of each signal source are converted into corresponding grid coordinates, and multi-signal source location heatmap labels are generated based on the grid coordinates of all signal sources in the same sample. :

[0038] ;

[0039] in,( , ) represents the grid coordinates corresponding to the q-th signal source. Preset the parameters for the heatmap response range;

[0040] The location and received power of monitoring nodes in the physical radio scenario are mapped to the corresponding virtual scenario grid, thereby constructing a radio digital twin that includes a virtual wireless propagation scenario, signal source status, monitoring node status, a complete electromagnetic situation map, and heat map labels for multiple signal source locations.

[0041] S12, Assume the federal system includes The client in the scenario obtains the first [item name] according to step S11. Complete electromagnetic situation diagram of the i-th sample in the client scenario , The spatial grid size of the electromagnetic situation map;

[0042] Let the first The set of actual observation locations of each sample for:

[0043] ;

[0044] in, For the first The number of actual detection locations of the i-th sample in each scenario client. and These represent the x and y coordinates of the k-th actual detection position, respectively.

[0045] Construct a sparse receiver power map based on the actual observation location set. The details are as follows:

[0046] ;

[0047] in, The preset fill value;

[0048] S13, Based on the set of observation locations Construct an observation location mask :

[0049] ;

[0050] In this context, a value of 1 indicates the existence of effective received power observations, while a value of 0 indicates that there are no direct observation results in the current area.

[0051] S14. Obtain the building geographic information of the target area corresponding to each scene client, and perform rasterization processing on the building geographic information according to the spatial area range and grid division method in the electromagnetic situation map reconstruction task to generate a building geographic mask with the same size as the electromagnetic situation map; for the first A client-side application generates a building mask. for:

[0052] ;

[0053] in, Electromagnetic situation diagram spatial grid size;

[0054] For any spatial grid location Building mask is defined as:

[0055] ;

[0056] Among them, a value of 1 indicates that the corresponding spatial area is affected by the building structure, and a value of 0 indicates that the corresponding spatial area is not covered by a building.

[0057] S15. Combine the sparse receiver power map, observation location mask, and building mask along the feature channel dimension to form the joint input of the electromagnetic situation map reconstruction model in the client. :

[0058] ;

[0059] in, This indicates a channel dimension splicing operation.

[0060] Step S2 is as follows:

[0061] S21. Reconstruct the model parameters of the electromagnetic situation diagram in the j-th scenario client. Divided into shared propagation representation parameters and local personalized multi-task parameters Local personalized multi-task parameters include local personalized field strength reconstruction parameters and local personalized signal source localization parameters, which are specifically divided as follows:

[0062] ;

[0063] in, Represents the shared propagation characterization parameters for participating in multi-scenario federated synchronization; Indicates the first Locally customized field strength reconstruction parameters retained by the client in each scenario; Indicates the first Locally customized signal source location parameters retained by the client in each scenario;

[0064] The network layers used for joint input encoding and spatial propagation feature extraction in the electromagnetic situation map reconstruction model are constructed as a shared propagation representation backbone, and its mapping function is expressed as follows: The output of the electromagnetic situation map reconstruction model is used to construct a local personalized field strength reconstruction head, which is a network layer that converts spatial propagation characteristics into a complete electromagnetic situation map. Its mapping function is expressed as follows: The network layer at the model output, used to convert spatial propagation features into a signal source location heatmap, is constructed as a local personalized signal source localization head, whose mapping function represents... ;

[0065] S22, Combined Input Input is represented by shared propagation parameters From the defined shared propagation characterization backbone, the propagation characteristics of the shared space are obtained. Specifically:

[0066] ;

[0067] S23: Spatial propagation characteristics Enter the first Each scenario corresponds to local personalized parameters. From the determined local personalized field strength reconstruction head, the electromagnetic situation map of the scene predicted by the model is obtained. The specific calculation is as follows:

[0068] ;

[0069] spatial propagation characteristics Enter the first The local personalized signal source positioning parameters correspond to each scenario. From the determined local personalized signal source localization head, the heat map of the signal source location predicted by the model is obtained. The specific calculation is as follows:

[0070] ;

[0071] S24: Sharing propagation characterization parameters during federated communications. Participating in server distribution, local client training, client upload, and server aggregation; while the... Personalized multitasking parameters for each client scenario It remains on the client and is not uploaded to the server, does not participate in the aggregation of parameters in other scenarios, and is not overwritten by the server's global parameters.

[0072] Step S3 is as follows:

[0073] S31, in the At the start of a round of federated training, the server selects the set of clients from all scenario clients to participate in the current round of training. , ;

[0074] server to collection The client in the middle sends the current round t global shared propagation representation parameters. ;No. Each participating client receives the server's shared propagation representation parameter and uses this parameter to initialize the local shared propagation representation parameter for the current round. ,Right now Meanwhile, the client continues to load the personalized field strength reconstruction parameters saved locally from the previous training phase. and personalized signal source positioning parameters ;

[0075] S32, Fixed shared propagation characterization parameters Only using the first Local data updates and personalized field strength reconstruction parameters for each client scenario. and local personalized signal source positioning parameters ;

[0076] Calculate the field strength reconstruction loss based on the complete electromagnetic situation map labels and the predicted electromagnetic situation map. The details are as follows:

[0077] ;

[0078] in, For complete electromagnetic situation map labels, This is a predicted electromagnetic situation diagram. For the first Number of samples from clients in each scenario;

[0079] Calculate the signal source localization loss based on the location tags of multiple signal sources and the predicted signal source location heatmap. :

[0080] ;

[0081] in For the multi-signal source location heatmap label of the i-th sample in the j-th scene client, This is a heatmap showing the location of the corresponding predicted signal source;

[0082] Based on the field strength reconstruction loss and signal source localization loss, a multi-task joint loss function is constructed:

[0083] ;

[0084] in, Weighting for field strength reconstruction loss. Loss weights for signal source localization;

[0085] The local personalized field strength reconstruction parameters and the local personalized signal source localization parameters are updated according to the multi-task joint loss function, specifically as follows:

[0086] ;

[0087] ;

[0088] in, The learning rate for local personalized field strength reconstruction parameters. Learning rate for local personalized signal source positioning parameters;

[0089] S33. After completing the update of local personalized field strength reconstruction parameters and local personalized signal source positioning parameters, fix the updated local personalized multi-task parameters. This includes updated local personalized field strength reconstruction parameters and local personalized signal source location parameters;

[0090] Based on the current shared propagation characterization parameters Fixed local personalized multitasking parameters Calculate the reconstruction loss function for the j-th client. The details are as follows:

[0091] ;

[0092] Subsequently, a perturbation that increases the loss is constructed within the neighborhood of the shared propagation characterization parameters. Specifically:

[0093] ;

[0094] in, Indicates the application of shared propagation characterization parameters Candidate perturbations. The preset disturbance radius;

[0095] An adaptive sharpness-aware mechanism is used to update the shared propagation representation parameters: a shared backbone training loss function is constructed based on the model loss at the original parameter positions and the perturbation parameter positions. Specifically:

[0096] ;

[0097] in, Indicates the weight of the loss due to the perturbation state;

[0098] Subsequently, the shared propagation characterization parameters were analyzed. Update:

[0099] ;

[0100] in, To share the propagation representation parameters and the local learning rate, This represents the shared backbone training loss function with respect to the shared propagation representation parameters. The gradient.

[0101] Step S4 is as follows:

[0102] S41. After completing the current round of local training, let the... A client passed The shared propagation representation parameters obtained from round-local updates are ; Calculate the update amount of the initial shared propagation representation parameters of the client relative to the server. :

[0103] ;

[0104] No. Each client only sends to the server Its local personalized multitasking parameters Continue to keep it local on the client

[0105] S42. The server receives the current set of participating clients. The update amount of shared propagation representation parameters uploaded in each scenario; the client weight is calculated based on the number of local samples on each client, and the weight of the j-th client. The specific calculation is as follows:

[0106] ;

[0107] in, For the first The number of samples from each client in each scenario; the weights of each client sum to 1, i.e. ;

[0108] The weighted summation of the shared propagation representation parameter updates uploaded by clients from multiple scenarios yields the aggregation result for the current round. The specific calculations are as follows:

[0109] ;

[0110] S43, Historical momentum cache maintained by the server Update the momentum cache based on the current round's aggregation result to obtain the updated momentum cache. :

[0111] ;

[0112] in, For server-side momentum coefficient;

[0113] The global shared propagation characterization parameters are updated based on the server's updated momentum cache to obtain the updated global shared propagation characterization parameters. Specifically:

[0114] ;

[0115] in, Update the step size globally on the server side;

[0116] S44, The server completes the... After the round-sharing propagation representation parameters are updated, the updated global shared propagation representation parameters will be used. The shared propagation representation parameters are used as the initial parameters for the next round of federated training until the preset number of federated communication rounds is reached. Alternatively, the global model may satisfy a preset convergence condition; after training is complete, the final shared propagation representation parameters are obtained. , as well as the local personalized field strength reconstruction parameters and local personalized signal source positioning parameters stored in the client of each scenario;

[0117] S45: For the first For each scene's reconstructed sample, a joint input is constructed based on the current sparse receiver power map, the observation location mask, and the building mask:

[0118] ;

[0119] Then, the propagation features are extracted from the shared propagation representation backbone formed by the final shared propagation representation parameters:

[0120] ;

[0121] By inputting the propagation characteristics into the local personalized field strength reconstruction head corresponding to the scene, a complete electromagnetic situation map of the target scene is obtained, specifically the complete electromagnetic situation map of the j-th scene. for:

[0122] ;

[0123] Input the spatial propagation characteristics into the first A local personalized signal source positioning head corresponding to each scenario is used to obtain a heat map of the signal source location:

[0124] ;

[0125] in, Indicates the first The final local personalized field strength reconstruction parameters for each scenario. Indicates the first The final local personalized signal source location parameters for each scenario. The value at each grid position represents the probability that a signal source exists at the corresponding position;

[0126] Threshold filtering and local peak detection are performed on the heatmap of the signal source location to obtain a set of candidate grid coordinates for the signal source. :

[0127] ;

[0128] in, To preset the location confidence threshold, The minimum distance between adjacent candidate peaks. Let J represent the number of unknown signal sources detected in the client of the j-th scene. and These represent the row and column coordinates of the grid where the k-th unknown signal source is located, respectively.

[0129] Based on the grid resolution and coordinate mapping relationship of the target scene, the candidate grid coordinates of the signal source are converted into physical scene coordinates, specifically as follows:

[0130] ;

[0131] ;

[0132] in, Let be the minimum coordinate of the j-th physical scene in the horizontal direction; Let j be the minimum coordinate of the j-th physical scene in the vertical direction; and These represent the row and column coordinates of the grid where the k-th unknown signal source is located, respectively. The actual length of each grid in the horizontal coordinate direction in the j-th scene; It is the actual length of each grid in the j-th scene along the vertical axis;

[0133] Finally, the set of locations of multiple unknown signal sources in the j-th scene is obtained. :

[0134] .

[0135] Meanwhile, this invention provides:

[0136] A server includes a processor and a memory, the memory storing at least one program, which is loaded and executed by the processor to implement the above-described method for multi-scenario federated radio digital twin electromagnetic situational estimation and localization of unknown sources.

[0137] A computer-readable storage medium storing at least one program, which is loaded and executed by a processor to implement the above-described method for multi-scenario federated radio digital twin electromagnetic situational estimation and localization of unknown sources.

[0138] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0139] 1. Based on the three-dimensional scene model, building spatial information, monitoring node location and received power data of each scenario, this invention establishes a mapping relationship between the physical radio scene and the virtual scene grid, and constructs the corresponding radio digital twin. By setting different numbers, locations and transmission powers of signal sources in the radio digital twin, a complete electromagnetic situation map corresponding to different signal source states can be generated without changing the actual physical radio environment, providing a data foundation for electromagnetic situation reconstruction, virtual simulation and localization of multiple unknown signal sources.

[0140] Each scenario client constructs a joint input using sparse received power maps, observation location masks, and building masks, enabling the model to simultaneously perceive wireless signal status, monitor location distribution, and building spatial structure. The client only exchanges model-shared parameter updates and does not transmit local sparse power observations, building information, or complete electromagnetic situation map data. While ensuring data privacy in each city and reducing data transmission overhead, it enables the collaborative utilization of wireless propagation knowledge among multiple cities.

[0141] 2. This invention adopts a parameter decoupling structure of "shared propagation representation backbone + local personalized field strength reconstruction head + local personalized signal source positioning head"; the shared propagation representation backbone participates in multi-scenario parameter exchange and server aggregation to learn the common spatial propagation laws between different scenarios; the local personalized field strength reconstruction head and the local personalized signal source positioning head are always retained on the corresponding scenario client and are used to adapt to the scenario-specific electromagnetic field distribution and signal source location characteristics, thereby reducing the negative migration caused by unified model aggregation and improving the electromagnetic situation reconstruction and signal source positioning capabilities in heterogeneous scenarios.

[0142] By outputting a signal source location heatmap through a local personalized signal source positioning head, and performing peak detection and coordinate transformation on the signal source location heatmap, it is possible to determine the number and physical location of multiple unknown signal sources while generating a complete electromagnetic situation map, thus realizing integrated processing of electromagnetic situation map reconstruction and multi-unknown signal source positioning.

[0143] 3. Unlike traditional federated optimization methods, which are easily affected by inconsistent client update directions when there are large differences in city data distribution, this invention optimizes shared parameters and personalized parameters in stages, decoupling the city-specific adaptation process from the cross-city common feature learning process. Simultaneously, it combines robust optimization for shared parameters and a parameter update smoothing mechanism to reduce model oscillations caused by heterogeneous client data, improving the stability and convergence reliability of the federated training process.

[0144] 4. This invention employs adaptive sharpness-aware optimization on the client side for shared propagation representation parameters, improving the robustness of the shared model to differences in urban data distribution; simultaneously, it introduces a momentum aggregation mechanism on the server side, using historical update directions to smooth parameter updates across different clients, thereby improving the stability of the multi-city federated training process. Attached Figure Description

[0145] Figure 1 This is a flowchart of the multi-unknown-source electromagnetic situation extrapolation and localization method for multi-scenario federated radio digital twins as described in this invention. Detailed Implementation

[0146] The present invention will be further described in detail below with reference to the embodiments and accompanying drawings, but the embodiments of the present invention are not limited thereto.

[0147] like Figure 1 A method for multi-unknown-source electromagnetic situational awareness simulation and localization based on multi-scenario federated radio digital twins, comprising the following steps:

[0148] S1. Obtain the 3D scene information and building geographic information corresponding to each scene client. Based on the 3D scene information and building geographic information, establish a virtual wireless propagation scene corresponding to the physical radio scene. Establish the mapping relationship between the physical scene coordinates and the electromagnetic situation map grid coordinates to construct a radio digital twin. In the radio digital twin, perform wireless propagation calculations based on the number, location, and transmission power of the signal sources to obtain the corresponding complete electromagnetic situation map and multi-signal source location heatmap labels. Based on the observation location of the samples, construct a sparse received power map, an observation location mask, and a building mask, and combine them to obtain the joint input of the scene client.

[0149] S2. Divide the electromagnetic situation map parameters of the scene client into shared propagation characterization parameters and local personalized multi-task parameters. The local personalized multi-task parameters include local personalized field strength reconstruction parameters and local personalized signal source positioning parameters. Construct a shared propagation characterization backbone, a local personalized field strength reconstruction head, and a local personalized signal source positioning head. Input the joint input into the shared propagation characterization backbone to obtain spatial propagation features. Input the spatial propagation features into the local personalized field strength reconstruction head and the local personalized signal source positioning head respectively to obtain the predicted electromagnetic situation map and signal source location heatmap.

[0150] S3. Perform two-stage local training on the client: In the first stage, fix the shared propagation representation parameters, calculate the field strength reconstruction loss based on the predicted electromagnetic situation map and the complete electromagnetic situation map, and calculate the signal source localization loss based on the predicted signal source location heatmap and the multi-signal source location heatmap labels; construct the multi-task joint loss based on the field strength reconstruction loss and the signal source localization loss, and update the local personalized multi-task parameters; In the second stage, fix the updated local personalized multi-task parameters, calculate the perturbation of the shared propagation representation parameters based on the multi-task joint loss and update the shared propagation representation parameters; send the updated shared propagation representation parameters to the server;

[0151] S4. The server performs a weighted summation of the shared propagation representation parameter updates from multiple scenario clients to obtain an aggregation result; updates the server momentum cache based on the aggregation result, and updates the global shared propagation representation parameters through the server momentum cache; uses the global shared propagation representation parameters as the initial shared propagation representation parameters for the next round of federated training, and obtains the final parameters after performing a preset number of federated communication rounds; generates a complete electromagnetic situation map and signal source location heatmap for the target scenario based on the final parameters, and performs peak detection on the signal source location heatmap to obtain the locations of multiple unknown signal sources.

[0152] Step S1 is as follows:

[0153] S11. Construct a digital twin scenario for radio and generate electromagnetic situation data: acquire the three-dimensional scene model, building spatial information, monitoring node location and received power data corresponding to each scenario, establish a virtual wireless propagation scenario corresponding to the physical radio scenario according to the spatial range and grid division method of the electromagnetic situation map, and establish the mapping relationship between the physical scene coordinates and the virtual scene grid coordinates.

[0154] For the i-th sample of the j-th scenario client, set in the virtual wireless propagation scenario There are one signal source, and the set of states of the signal source is:

[0155] ;

[0156] in, , and Let x represent the x-coordinate of the position of the q-th signal source, y-coordinate of the position, and transmit power, respectively, and let tx represent the signal source.

[0157] Based on the 3D scene model, building spatial information, and the state set of the signal sources, wireless propagation calculations are performed to obtain a complete electromagnetic situation map:

[0158] ;

[0159] in, This represents the wireless propagation calculation process corresponding to the j-th scenario. This indicates the spatial grid size of the electromagnetic situation map.

[0160] The physical scene coordinates of each signal source are converted into corresponding grid coordinates, and multi-signal source location heatmap labels are generated based on the grid coordinates of all signal sources in the same sample:

[0161] ;

[0162] in,( , ) represents the grid coordinates corresponding to the q-th signal source. This is the preset thermal map response range parameter.

[0163] The location and received power of monitoring nodes in the physical radio scenario are mapped to the corresponding virtual scenario grid, thereby constructing a radio digital twin that includes the virtual scenario, signal source status, monitoring node status, complete electromagnetic situation map and multiple signal source location labels.

[0164] S12. Construct a sparse receiver power graph: Assume the federated system contains... The client in the scenario obtains the first [item name] according to step S11. Complete electromagnetic situation diagram of the i-th sample in the client scenario , The spatial grid size of the electromagnetic situation map;

[0165] A limited number of radio monitoring positions are deployed within the target area of ​​the scene, and the received power values ​​at the corresponding spatial positions are acquired; let the first... The set of actual observation locations of each sample for:

[0166] ;

[0167] in, For the first The number of actual detection locations of the i-th sample in each scenario client. and These represent the x and y coordinates of the k-th actual detection position, respectively.

[0168] Construct a sparse receiver power map based on the actual observation location set. The details are as follows:

[0169] ;

[0170] in, The preset fill value is used to convert the power observations of discrete monitoring points into a two-dimensional sparse power matrix of uniform size.

[0171] S13. Constructing an observation location mask: To enable the electromagnetic situation map reconstruction model deployed on the j-th scenario client to distinguish between actual power observation locations and unmonitored locations, a mask is constructed based on the set of observation locations. Construct a binary observation location mask :

[0172] ;

[0173] In this context, a value of 1 indicates the existence of effective received power observations, while a value of 0 indicates that there are no direct observation results in the current area.

[0174] By simultaneously inputting the observation location mask and the sparse received power map into the model, the network can be prevented from mistaking the filled values ​​of unobserved locations as the true received power.

[0175] S14. Construct a building geomask. : Obtain the building geographic information of the target area corresponding to each scenario client, and perform rasterization processing on the building geographic information according to the spatial area range and grid division method in the electromagnetic situation map reconstruction task to generate a building geographic mask with the same size as the complete electromagnetic situation map.

[0176] For the For each scene client, generate a building geomask:

[0177] ;

[0178] in, Indicates the spatial grid size of the electromagnetic situation diagram;

[0179] For any spatial grid location The building geographic mask is defined as:

[0180] ;

[0181] Among them, a value of 1 indicates that the corresponding spatial area is affected by the building structure, and a value of 0 indicates that the corresponding spatial area is not covered by a building.

[0182] The building geomask is generated during the data preprocessing stage and stored in the first... The data is collected from the client in each scenario; in the subsequent electromagnetic situation map reconstruction process, the client directly calls the building geographic mask of the corresponding scenario as the geographic prior input, instead of regenerating the building mask during the model training process;

[0183] Because all samples in each scene of the dataset have the same geographical features, there is no representation of sample i in the building geographic mask representation;

[0184] S15. Geographic Prior Joint Input: The sparse received power map, observation location mask, and building mask are combined along the feature channel dimension to form the joint input of the client electromagnetic situation map reconstruction model. :

[0185] ;

[0186] in, This indicates a channel-level concatenation operation;

[0187] Therefore, the first Each scenario client has a local electromagnetic situation map dataset. :

[0188] ;

[0189] in, Indicates the first Number of samples from clients in each scenario;

[0190] Through the above steps, geographical prior input data is constructed that simultaneously includes the actual wireless power state, the observation location state, and the spatial structure of the scene's buildings; sparse power observation, observation mask, and building mask are used in combination to complete the spectrum situation inference, providing basic input for subsequent cross-scene propagation feature extraction and complete electromagnetic situation map reconstruction.

[0191] Step S2 is as follows:

[0192] S21. To address the differences in building structures, streetscapes, and propagation occlusion patterns across various scenarios, this invention constructs an electromagnetic situation map reconstruction model that integrates geographical prior inputs with a complete electromagnetic situation map output. The overall mapping relationship is expressed as follows:

[0193] ;

[0194] in, In the j-th scene client, the first... The joint input for each sample includes a sparse receiver power map, an observation location mask, and a building geographic mask; This represents the complete model parameters for the client in the j-th scene; This represents the complete electromagnetic situation map predicted by the model.

[0195] Reconstruct the electromagnetic situation diagram model parameters in the j-th scenario client. The parameters are divided into shared propagation characterization parameters and personalized multi-task parameters. The local personalized multi-task parameters include local personalized field strength reconstruction parameters and local personalized signal source localization parameters, as detailed below:

[0196] ;

[0197] in, Represents the shared propagation characterization parameters for participating in multi-scenario federated synchronization; Indicates the first Locally customized field strength reconstruction parameters retained by the client in each scenario; Indicates the first Locally customized signal source location parameters retained by the client in each scenario;

[0198] Specifically, in the electromagnetic situation map reconstruction model, the network layer used for joint input encoding and spatial propagation feature extraction is constructed as a shared propagation representation backbone, and its mapping function is expressed as follows: The output of the electromagnetic situation map reconstruction model is used to construct a local personalized field strength reconstruction head, which is a network layer that converts spatial propagation characteristics into a complete electromagnetic situation map. Its mapping function is expressed as follows: The network layer at the model output, used to convert spatial propagation features into a signal source location heatmap, is constructed as a local personalized signal source localization head, whose mapping function represents... The local personalized field strength reconstruction head is used to map the shared spatial propagation representation to the field strength distribution results of the corresponding scene, thereby adapting to the scene's unique building structure, spatial distribution, and propagation occlusion characteristics; ultimately forming a parameter decoupling structure of "shared propagation representation backbone + local personalized field strength reconstruction head + local personalized signal source positioning head". The electromagnetic situation map reconstruction model is an existing electromagnetic situation map reconstruction model located on the client side, such as the RadioUNet model.

[0199] S22. Extracting the shared propagation space representation: This involves combining the input... Input is represented by shared propagation parameters From the defined shared propagation characterization backbone, the propagation characteristics of the shared space are obtained. Specifically:

[0200] ;

[0201] S23: Spatial propagation characteristics Enter the first Each scenario corresponds to local personalized parameters. From the determined local personalized field strength reconstruction head, the electromagnetic situation map of the scene predicted by the model is obtained. The specific calculation is as follows:

[0202] ;

[0203] Therefore, the first The electromagnetic situation map reconstruction process for each scenario is represented as follows:

[0204] ;

[0205] in, This represents the local personalized field strength reconstruction mapping process, used to combine the first... The spatial propagation characteristics of each scene generate corresponding electromagnetic situation maps. This represents the complete electromagnetic situation map obtained from the model prediction;

[0206] spatial propagation characteristics Enter the first The local personalized signal source positioning parameters correspond to each scenario. From the determined local personalized signal source localization head, the heat map of the signal source location predicted by the model is obtained. The specific calculation is as follows:

[0207] ;

[0208] S24: Determine the scope of federated communication for model parameters: During federated communication, share propagation representation parameters. Participating in server distribution, local client training, client upload, and server aggregation; while the... Personalized multitasking parameters for each client scenario The parameters are always retained on the client side, never uploaded to the server, never participate in parameter aggregation for other scenarios, and are never overwritten by global parameters on the server. Therefore, different clients retain their respective parameters for different scenarios. The server only maintains uniform, shared propagation representation parameters. ,in, This indicates the current federal communications round.

[0209] Step S3 executes two-stage local training on the client side, specifically as follows:

[0210] S31. Server distributes shared propagation representation parameters: in the... At the start of a round of federated training, the server selects the set of clients from all scenario clients to participate in the current round of training. , ;

[0211] server to collection The client in the middle sends out the current global shared propagation representation parameters. ;No. Each participating client receives the server's shared propagation representation parameter and uses this parameter to initialize the local shared propagation representation parameter for the current round. ,Right now Meanwhile, the client continues to load the personalized field strength reconstruction parameters saved locally from the previous training phase. and personalized signal source positioning parameters ;

[0212] S32. Fix shared propagation representation parameters and update local personalized multi-task parameters: Fix shared propagation representation parameters in the first training phase. Only using the first Local data updates and personalized field strength reconstruction parameters for each client scenario. and local personalized signal source positioning parameters :

[0213] Calculate the field strength reconstruction loss based on the complete electromagnetic situation map labels and the predicted electromagnetic situation map. Specifically:

[0214] ;

[0215] in, For complete electromagnetic situation map labels, This is the electromagnetic situation diagram predicted by the model; For the first Number of samples from clients in each scenario;

[0216] Calculate the signal source localization loss based on the location tags of multiple signal sources and the predicted signal source location heatmap. :

[0217] ;

[0218] in For the multi-signal source location heatmap label of the i-th sample in the j-th scene client, This is a heatmap showing the location of the corresponding predicted signal source.

[0219] Based on the field strength reconstruction loss and signal source localization loss, a multi-task joint loss function is constructed:

[0220] ;

[0221] in, Weighting for field strength reconstruction loss. Loss weights are assigned to the signal source location.

[0222] Update the local personalized field strength reconstruction parameters and the local personalized signal source localization parameters according to the multi-task joint loss function:

[0223] ;

[0224] ;

[0225] in, The learning rate for local personalized field strength reconstruction parameters. The learning rate for local personalized signal source location parameters.

[0226] S33. After completing the update of local personalized field strength reconstruction parameters and local personalized signal source positioning parameters, fix the updated local personalized multi-task parameters. This includes updated local personalized field strength reconstruction parameters and local personalized signal source location parameters;

[0227] Based on the current shared propagation characterization parameters Fixed local personalized multitasking parameters Calculate the reconstruction loss function for the j-th client. The details are as follows:

[0228] ;

[0229] Subsequently, a perturbation that increases the loss is constructed within the neighborhood of the shared propagation characterization parameters. Specifically:

[0230] ;

[0231] in, Indicates the application of shared propagation characterization parameters Candidate perturbations. The preset disturbance radius;

[0232] An adaptive sharpness-aware mechanism is used to update the shared propagation representation parameters: a shared backbone training loss function is constructed based on the model loss at the original parameter positions and the perturbation parameter positions. Specifically:

[0233] ;

[0234] in, Indicates the weight of the loss due to the perturbation state;

[0235] Subsequently, only the shared propagation characterization parameters were considered. Update:

[0236] ;

[0237] in, Indicates shared backbone training loss Regarding the shared propagation characterization parameters gradient, The local learning rate is used to share the propagation representation parameters;

[0238] Repeat the above training process for shared propagation representation parameters until the preset number of local training rounds is reached; by simultaneously constraining the original loss and the perturbation state loss within the neighborhood of the shared propagation representation parameters, the shared backbone acquires a more stable propagation representation capability for local parameter perturbations.

[0239] Step S4 is as follows:

[0240] S41, Selective Upload Client-Side Shared Propagation Representation Parameter Update: After completing the current round of local training, let the... A client passed The shared propagation representation parameters obtained from round-local updates are ; Calculate the update amount of the initial shared propagation representation parameters of the client relative to the server. :

[0241] ;

[0242] No. Each client only sends to the server Its local personalized multitasking parameters The local personalized multi-task parameters, which remain locally on the client side, include local personalized field strength reconstruction parameters. and local personalized signal source positioning parameters .

[0243] S42. Calculate the weighted shared propagation representation parameter update for multiple clients: The server receives the current set of participating clients. The update amount of shared propagation representation parameters uploaded in each scenario; the client weight is calculated based on the number of local samples on each client, and the weight of the j-th client. The specific calculation is as follows:

[0244] ;

[0245] in, For the first The number of samples from each client in each scenario; the weights of each client sum to 1, i.e. ;

[0246] The weighted summation of the shared propagation representation parameter updates uploaded by clients from multiple scenarios yields the aggregation result for the current round. This refers to the overall update direction of the multi-scenario shared propagation representation parameters in the current round, calculated as follows:

[0247] ;

[0248] S43. Update server momentum cache and globally shared propagation representation parameters: To reduce the impact of client update direction differences caused by data heterogeneity in different scenarios on the global model training process, the historical momentum cache maintained by the server is updated. Update the momentum cache based on the current round's aggregation result to obtain the updated momentum cache. :

[0249] ;

[0250] in, This is the server-side momentum coefficient, used to control the contribution ratio of historical update direction and current update direction to global parameter updates;

[0251] By incorporating historical update information, the impact of fluctuations in single-round client updates on the global model can be reduced.

[0252] The global shared propagation characterization parameters are updated based on the server's updated momentum cache to obtain the updated global shared propagation characterization parameters. Specifically:

[0253] ;

[0254] in, Update the step size globally on the server side;

[0255] The server-side momentum cache is only used to update shared propagation representation parameters; the server does not retrieve or update any client's local parameters. The server-side training process also only aggregates the shared propagation representation parameter updates uploaded by the client and uses momentum caching to smooth the global update direction.

[0256] S44. Execute multiple rounds of federated iterations: The server completes the... After the round-sharing propagation representation parameters are updated, the updated global shared propagation representation parameters will be used. This serves as the initial shared propagation representation parameter for the next round of federated training; subsequently, S3-S43 are repeated: server selects client → distributes shared propagation representation parameters → local output header adaptation → updates shared propagation representation parameters using an adaptive sharpness-aware mechanism to achieve shared backbone ASAM optimization → uploads updated shared propagation representation parameters → server-side momentum aggregation; until the preset number of federated communication rounds is reached. Alternatively, the global model may satisfy a preset convergence condition; after training is complete, the final shared propagation representation parameters are obtained. And local personalized multitasking parameters stored in clients of various scenarios. ;

[0257] S45: Generate a complete electromagnetic situation map of the target scenario: For the first For each scene's reconstructed sample, a joint input is constructed based on the current sparse receiver power map, the observation location mask, and the building mask:

[0258] ;

[0259] Then, the propagation features are extracted from the shared propagation representation backbone formed by the final shared propagation representation parameters:

[0260] ;

[0261] By inputting the propagation characteristics into the local personalized field strength reconstruction head corresponding to the scene, a complete electromagnetic situation map of the target scene is obtained, specifically the complete electromagnetic situation map of the j-th scene. for:

[0262] ;

[0263] Input the spatial propagation characteristics into the first A local personalized signal source positioning head corresponding to each scenario is used to obtain a heat map of the signal source location:

[0264] ;

[0265] in, Indicates the first The final local personalized field strength reconstruction parameters for each scenario. Indicates the first The final local personalized signal source location parameters for each scenario. The value of each grid position represents the probability that a signal source exists at the corresponding position.

[0266] Threshold filtering and local peak detection are performed on the heatmap of the signal source location to obtain a set of candidate grid coordinates for the signal source:

[0267] ;

[0268] in, To preset the location confidence threshold, The minimum distance between adjacent candidate peaks. To determine the number of unknown signal sources detected. and These represent the row and column coordinates of the grid where the k-th unknown signal source is located, respectively.

[0269] Based on the grid resolution and coordinate mapping relationship of the target scene, the candidate grid coordinates of the signal source are converted into physical scene coordinates:

[0270] ;

[0271] ;

[0272] in, It is the physical x-coordinate estimated from the k-th unknown signal source in the j-th scene; It is the physical ordinate estimated from the k-th unknown signal source in the j-th scene; It is the minimum coordinate of the j-th physical scene in the horizontal direction, that is, the horizontal starting point of the scene; It is the minimum coordinate of the j-th physical scene in the vertical direction, that is, the vertical starting point of the scene; and These represent the row and column coordinates of the grid where the k-th unknown signal source is located, respectively. The actual length of each grid in the horizontal coordinate direction in the j-th scene; It is the actual length of each grid in the j-th scene along the vertical axis;

[0273] Obtain the set of locations of multiple unknown signal sources in the j-th scene:

[0274] ;

[0275] The electromagnetic situation simulation results are generated by updating the signal source states in the radio digital twin based on the number, location, and transmission power of the signal sources to be simulated.

[0276] Through the above technical steps, this invention, under the condition that the original monitoring data is not centrally shared, utilizes the shared propagation representation backbone to learn common spatial propagation knowledge between different scenarios, and utilizes the personalized field strength reconstruction head and personalized signal source positioning head retained locally in each scenario to adapt to the specific building structure, field strength distribution and signal source location characteristics of the scenario; at the same time, through the adaptive sharpness perception optimization of the shared propagation representation parameters and the server momentum aggregation, the stability of federated training under the condition of heterogeneous data in the scenario is improved, and the collaborative reconstruction of electromagnetic situation maps for multiple scenarios based on sparse radio observation and geographic environment information is realized.

[0277] The method of this invention was tested using four city scene datasets: Etoile (Paris), Florence, Munich, and San Francisco. Table 1 shows the results of FedAvg and the method of this invention on the four city test sets. Experimental results show that, compared with the traditional FedAvg method, the method of this invention can achieve lower electromagnetic situation map reconstruction errors in multiple city scenes. Here, MSE represents the mean square error, PSNR represents the peak signal-to-noise ratio, and Corr represents the correlation coefficient. In the Munich city scene, MSE decreased from 0.0069 to 0.0028, and Corr increased from 0.7808 to 0.8911; in the San Francisco city scene, MSE decreased from 0.0043 to 0.0026, and Corr increased from 0.8317 to 0.9273, verifying the effectiveness of the method of this invention in electromagnetic situation map reconstruction in heterogeneous urban environments.

[0278] Table 1

[0279]

[0280] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.

Claims

1. A method for multi-unknown-source electromagnetic situational estimation and localization based on multi-scenario federated radio digital twins, characterized in that: Includes the following steps: S1. Obtain the 3D scene information and building geographic information corresponding to each scene client. Based on the 3D scene information and building geographic information, establish a virtual wireless propagation scene corresponding to the physical radio scene. Establish the mapping relationship between the physical scene coordinates and the electromagnetic situation map grid coordinates to construct a radio digital twin. In the radio digital twin, perform wireless propagation calculations based on the number, location, and transmission power of the signal sources to obtain the corresponding complete electromagnetic situation map and multi-signal source location heatmap labels. Based on the observation location of the samples, construct a sparse received power map, an observation location mask, and a building mask, and combine them to obtain the joint input of the scene client. S2. Divide the electromagnetic situation map parameters of the scene client into shared propagation characterization parameters and local personalized multi-task parameters. The local personalized multi-task parameters include local personalized field strength reconstruction parameters and local personalized signal source positioning parameters. Construct a shared propagation characterization backbone, a local personalized field strength reconstruction head, and a local personalized signal source positioning head. Input the joint input into the shared propagation characterization backbone to obtain spatial propagation features. Input the spatial propagation features into the local personalized field strength reconstruction head and the local personalized signal source positioning head respectively to obtain the predicted electromagnetic situation map and signal source location heatmap. S3. Perform two-stage local training on the client: In the first stage, fix the shared propagation representation parameters, calculate the field strength reconstruction loss based on the predicted electromagnetic situation map and the complete electromagnetic situation map, and calculate the signal source localization loss based on the predicted signal source location heatmap and the multi-signal source location heatmap labels; construct the multi-task joint loss based on the field strength reconstruction loss and the signal source localization loss, and update the local personalized multi-task parameters. In the second stage, the local personalized multi-task parameters are fixed and updated. Based on the multi-task joint loss, the perturbation of the shared propagation characterization parameters is calculated and the shared propagation characterization parameters are updated. The updated amount of the shared propagation characterization parameters is then sent to the server. S4. The server performs a weighted summation of the shared propagation representation parameter updates from multiple client scenarios to obtain the aggregated result. Update the server momentum cache based on the aggregation results, and update the global shared propagation representation parameters through the server momentum cache; use the global shared propagation representation parameters as the initial shared propagation representation parameters for the next round of federated training, and obtain the final parameters after performing the preset number of federated communication rounds. Based on the final parameters, a complete electromagnetic situation map and a heat map of signal source locations are generated for the target scene. Peak detection is performed on the heat map of signal source locations to obtain the locations of multiple unknown signal sources.

2. The method for multi-unknown-source electromagnetic situational estimation and localization based on multi-scenario federated radio digital twins according to claim 1, characterized in that, Step S1 is as follows: S11. Construct a radio digital twin and generate electromagnetic situation data: acquire the three-dimensional scene model, building spatial information, monitoring node location and received power data corresponding to each scene client, establish a virtual wireless propagation scene corresponding to the physical radio scene according to the spatial range and grid division method of the electromagnetic situation map, and establish the mapping relationship between the physical scene coordinates and the virtual wireless propagation scene grid coordinates. For the i-th sample of the j-th scenario client, set in the virtual wireless propagation scenario A set of signal sources, the state set of the signal sources for: ; in, , and Let x represent the x-coordinate, y-coordinate, and transmission power of the q-th signal source, respectively, and tx represent the signal source; Based on the set of signal source states, perform wireless propagation calculations to obtain a complete electromagnetic situation map. : ; in, This represents the wireless propagation calculation process corresponding to the j-th scenario. This indicates the spatial grid size of the electromagnetic situation diagram; The physical scene coordinates of each signal source are converted into corresponding grid coordinates, and multi-signal source location heatmap labels are generated based on the grid coordinates of all signal sources in the same sample. : ; in,( , ) represents the grid coordinates corresponding to the q-th signal source. Preset the parameters for the heatmap response range; The location and received power of monitoring nodes in the physical radio scenario are mapped to the corresponding virtual scenario grid, thereby constructing a radio digital twin that includes a virtual wireless propagation scenario, signal source status, monitoring node status, a complete electromagnetic situation map, and heat map labels for multiple signal source locations. S12, Assume the federal system includes The client in the scenario obtains the first [item name] according to step S11. Complete electromagnetic situation diagram of the i-th sample in the client scenario , The spatial grid size of the electromagnetic situation map; Let the first The set of actual observation locations of each sample for: ; in, For the first The number of actual detection locations of the i-th sample in each scenario client. and These represent the x and y coordinates of the k-th actual detection position, respectively. Construct a sparse receiver power map based on the actual observation location set. The details are as follows: ; in, The preset fill value; S13, Based on the set of observation locations Construct an observation location mask : ; In this context, a value of 1 indicates the existence of effective received power observations, while a value of 0 indicates that there are no direct observation results in the current area. S14. Obtain the building geographic information of the target area corresponding to each scene client, and perform rasterization processing on the building geographic information according to the spatial area range and grid division method in the electromagnetic situation map reconstruction task to generate a building geographic mask with the same size as the electromagnetic situation map; for the first A client-side application generates a building mask. for: ; in, This refers to the spatial grid size of the electromagnetic situation map; For any spatial grid location Building mask is defined as: ; Among them, a value of 1 indicates that the corresponding spatial area is affected by the building structure, and a value of 0 indicates that the corresponding spatial area is not covered by a building. S15. Combine the sparse receiver power map, observation location mask, and building mask along the feature channel dimension to form the joint input of the electromagnetic situation map reconstruction model in the client. : ; in, This indicates a channel dimension splicing operation.

3. The method for multi-unknown-source electromagnetic situational estimation and localization based on multi-scenario federated radio digital twins according to claim 1, characterized in that, Step S2 is as follows: S21. Reconstruct the model parameters of the electromagnetic situation diagram in the j-th scenario client. Divided into shared propagation representation parameters and local personalized multi-task parameters Local personalized multi-task parameters include local personalized field strength reconstruction parameters and local personalized signal source localization parameters, which are specifically divided as follows: ; in, Represents the shared propagation characterization parameters for participating in multi-scenario federated synchronization; Indicates the first Locally customized field strength reconstruction parameters retained by the client in each scenario; Indicates the first Locally customized signal source location parameters retained by the client in each scenario; The network layers used for joint input encoding and spatial propagation feature extraction in the electromagnetic situation map reconstruction model are constructed as a shared propagation representation backbone, and its mapping function is expressed as follows: The output of the electromagnetic situation map reconstruction model is used to construct a local personalized field strength reconstruction head, which is a network layer that converts spatial propagation characteristics into a complete electromagnetic situation map. Its mapping function is expressed as follows: The network layer at the model output, used to convert spatial propagation features into a signal source location heatmap, is constructed as a local personalized signal source localization head, whose mapping function represents... ; S22, Combined Input Input is represented by shared propagation parameters From the defined shared propagation characterization backbone, the propagation characteristics of the shared space are obtained. Specifically: ; S23: Spatial propagation characteristics Enter the first Each scenario corresponds to local personalized parameters. From the determined local personalized field strength reconstruction head, the electromagnetic situation map of the scene predicted by the model is obtained. The specific calculation is as follows: ; spatial propagation characteristics Enter the first The local personalized signal source positioning parameters correspond to each scenario. From the determined local personalized signal source localization head, the heat map of the signal source location predicted by the model is obtained. The specific calculation is as follows: ; S24: Sharing propagation characterization parameters during federated communications. Participating in server distribution, local client training, client upload, and server aggregation; while the... Personalized multitasking parameters for each client scenario It remains on the client and is not uploaded to the server, does not participate in the aggregation of parameters in other scenarios, and is not overwritten by the server's global parameters.

4. The method for multi-unknown-source electromagnetic situational estimation and localization based on multi-scenario federated radio digital twins according to claim 1, characterized in that, Step S3 is as follows: S31, in the At the start of a round of federated training, the server selects the set of clients from all scenario clients to participate in the current round of training. , ; server to collection The client in the middle sends the current round t global shared propagation representation parameters. ;No. Each participating client receives the server's shared propagation representation parameter and uses this parameter to initialize the local shared propagation representation parameter for the current round. ,Right now Meanwhile, the client continues to load the personalized field strength reconstruction parameters saved locally from the previous training phase. and personalized signal source positioning parameters ; S32, Fixed shared propagation characterization parameters Only using the first Local data updates and personalized field strength reconstruction parameters for each client scenario. and local personalized signal source positioning parameters ; Calculate the field strength reconstruction loss based on the complete electromagnetic situation map labels and the predicted electromagnetic situation map. The details are as follows: ; in, For complete electromagnetic situation map labels, This is a predicted electromagnetic situation diagram. For the first Number of samples from clients in each scenario; Calculate the signal source localization loss based on the location tags of multiple signal sources and the predicted signal source location heatmap. : ; in For the multi-signal source location heatmap label of the i-th sample in the j-th scene client, This is a heatmap showing the location of the corresponding predicted signal source; Based on the field strength reconstruction loss and signal source localization loss, a multi-task joint loss function is constructed: ; in, Weighting for field strength reconstruction loss. Loss weights for signal source localization; The local personalized field strength reconstruction parameters and the local personalized signal source localization parameters are updated according to the multi-task joint loss function, specifically as follows: ; ; in, The learning rate for local personalized field strength reconstruction parameters. Learning rate for local personalized signal source positioning parameters; S33. After completing the update of local personalized field strength reconstruction parameters and local personalized signal source positioning parameters, fix the updated local personalized multi-task parameters. This includes updated local personalized field strength reconstruction parameters and local personalized signal source location parameters; Based on the current shared propagation characterization parameters Fixed local personalized multitasking parameters Calculate the reconstruction loss function for the j-th client. The details are as follows: ; Subsequently, a perturbation that increases the loss is constructed within the neighborhood of the shared propagation characterization parameters. Specifically: ; in, Indicates the application of shared propagation characterization parameters Candidate perturbations. The preset disturbance radius; An adaptive sharpness-aware mechanism is used to update the shared propagation representation parameters: a shared backbone training loss function is constructed based on the model loss at the original parameter positions and the perturbation parameter positions. Specifically: ; in, Indicates the weight of the loss due to the perturbation state; Subsequently, the shared propagation characterization parameters were analyzed. Update: ; in, To share the propagation representation parameters and the local learning rate, This represents the shared backbone training loss function with respect to the shared propagation representation parameters. The gradient.

5. The method for multi-unknown-source electromagnetic situational estimation and localization based on multi-scenario federated radio digital twins according to claim 1, characterized in that, Step S4 is as follows: S41. After completing the current round of local training, let the... A client passed The shared propagation representation parameters obtained from round-local updates are ; Calculate the amount of update to the initial shared propagation representation parameters of the client relative to the server. : ; No. Each client only sends to the server Its local personalized multitasking parameters Continue to remain on the client's local machine; S42. The server receives the current set of participating clients. The update amount of shared propagation representation parameters uploaded in each scenario; the client weight is calculated based on the number of local samples on each client, and the weight of the j-th client. The specific calculation is as follows: ; in, For the first The number of samples from each client in each scenario; the weights of each client sum to 1, i.e. ; The weighted summation of the shared propagation representation parameter updates uploaded by clients from multiple scenarios yields the aggregation result for the current round. The specific calculations are as follows: ; S43, Historical momentum cache maintained by the server Update the momentum cache based on the current round's aggregation result to obtain the updated momentum cache. : ; in, For server-side momentum coefficient; The global shared propagation characterization parameters are updated based on the server's updated momentum cache to obtain the updated global shared propagation characterization parameters. Specifically: ; in, Update the step size globally on the server side; S44, The server completes the... After the round-sharing propagation representation parameters are updated, the updated global shared propagation representation parameters will be used. The shared propagation representation parameters are used as the initial parameters for the next round of federated training until the preset number of federated communication rounds is reached. Alternatively, the global model may satisfy a preset convergence condition; after training is complete, the final shared propagation representation parameters are obtained. , as well as the local personalized field strength reconstruction parameters and local personalized signal source positioning parameters stored in the client of each scenario; S45: For the first For each scene's reconstructed sample, a joint input is constructed based on the current sparse receiver power map, the observation location mask, and the building mask: ; Then, the propagation features are extracted from the shared propagation representation backbone formed by the final shared propagation representation parameters: ; By inputting the propagation characteristics into the local personalized field strength reconstruction head corresponding to the scene, a complete electromagnetic situation map of the target scene is obtained, specifically the complete electromagnetic situation map of the j-th scene. for: ; Input the spatial propagation characteristics into the first A local personalized signal source positioning head corresponding to each scenario is used to obtain a heat map of the signal source location: ; in, Indicates the first The final local personalized field strength reconstruction parameters for each scenario. Indicates the first The final local personalized signal source location parameters for each scenario. The value at each grid position represents the probability that a signal source exists at the corresponding position; Threshold filtering and local peak detection are performed on the heatmap of the signal source location to obtain a set of candidate grid coordinates for the signal source. : ; in, To preset the location confidence threshold, The minimum distance between adjacent candidate peaks. Let J represent the number of unknown signal sources detected in the client of the j-th scene. and These represent the row and column coordinates of the grid where the k-th unknown signal source is located, respectively. Based on the grid resolution and coordinate mapping relationship of the target scene, the candidate grid coordinates of the signal source are converted into physical scene coordinates, specifically as follows: ; ; in, Let be the minimum coordinate of the j-th physical scene in the horizontal direction; Let j be the minimum coordinate of the j-th physical scene in the vertical direction; and These represent the row and column coordinates of the grid where the k-th unknown signal source is located, respectively. The actual length of each grid in the horizontal coordinate direction in the j-th scene; It is the actual length of each grid in the j-th scene along the vertical axis; Finally, the set of locations of multiple unknown signal sources in the j-th scene is obtained. : 。 6. A server, characterized in that, The server includes a processor and a memory, the memory storing at least one program, which is loaded and executed by the processor to implement the multi-unknown-source electromagnetic situation inference and localization method for multi-scenario federated radio digital twins as described in any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that, The storage medium stores at least one program, which is loaded and executed by a processor to implement the multi-unknown-source electromagnetic situation inference and localization method for multi-scenario federated radio digital twins as described in any one of claims 1 to 5.