Three-in-one terminal control system and method capable of intelligent networking
By realizing intelligent networking on terminal devices, generating networking feature vectors and combining with neural networks for network topology optimization, the existing technology problems of single networking mode, limited device capabilities and unintelligent policies are solved, and the network efficiency is improved. Flexibility and performance, suitable for a variety of scenarios.
Patent Information
- Application Number
- CN202411085407.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Existing networking technology has the problems of a single mode, limited terminal equipment capabilities, and unintelligent policies. It is difficult to adapt to complex and changeable network environments and cannot fully utilize the potential of terminal equipment, resulting in a waste of network resources and a decline in service quality.
Adopting a three-in-one terminal control system with intelligent networking, it broadcasts device status through the wireless communication module, generates networking feature vectors, and combines the neural network model with network topology optimization and role allocation to form a star topology to achieve dynamic adaptation and Maximize utilization of resources.
It improves the flexibility and adaptability of the network, optimizes the network topology, reduces communication and control costs, enhances network performance and resource utilization efficiency, and is suitable for a variety of networking modes and business scenarios.
Smart Images

Figure CN118612754B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to terminal control technology, and in particular to a three-in-one terminal control system and method capable of intelligent networking. Background Art
[0002] Traditional mobile communication networks use a base station-centric networking model, which suffers from high network deployment costs and low spectrum resource utilization, making them unable to meet future mobile communication needs. To address these issues, the industry has proposed a variety of new networking technologies, such as D2D (Device-to-Device) communication, vehicular networks, and UAV communication networks. These technologies aim to break away from the traditional base station-centric networking model and fully utilize the computing, storage, and communication capabilities of terminal devices to achieve flexible, efficient, and low-cost networking.
[0003] However, existing networking technologies still have some problems that need to be solved:
[0004] (1) Single networking model: Existing networking technologies are usually designed for specific application scenarios. For example, D2D communication is mainly used for short-range data transmission, and in-vehicle networks are mainly used for information exchange between vehicles. This single networking model is difficult to adapt to complex and changing network environments and cannot fully realize the potential of terminal devices.
[0005] (2) Limited terminal capabilities: Due to the hardware conditions and battery capacity of terminal devices, existing networking technologies make it difficult to implement complex network functions on terminal devices, such as routing, resource management, and interference coordination. This limits the role of terminal devices in networking and reduces the flexibility and efficiency of networking.
[0006] (3) Unintelligent networking strategies: Existing networking technologies typically use preset rules and strategies to make networking decisions, lacking real-time perception of the network environment and the ability to adapt to changes. In complex and changing network environments, fixed networking strategies are unlikely to achieve optimal performance, leading to wasted network resources and reduced service quality. Summary of the Invention
[0007] The present invention provides a three-in-one terminal control system and method capable of intelligent networking, which can at least solve some problems in the prior art.
[0008] The first aspect of the present invention,
[0009] Provides a three-in-one terminal control method with intelligent networking, including:
[0010] The three-in-one terminal device broadcasts a capability broadcast frame containing its own device identification, device capabilities, and current working status through the wireless communication module, listens to the capability broadcast frames broadcast by other three-in-one terminal devices in the environment, and parses and obtains the device identification, device capabilities, and current working status of other three-in-one terminal devices; the three-in-one terminal device combines its own device identification, device capabilities, and current working status with the parsed device identification, device capabilities, and current working status of other three-in-one terminal devices to generate a networking feature vector representing the current status of each three-in-one terminal device;
[0011] The three-in-one terminal device inputs the networking feature vector into a pre-trained networking utility evaluation neural network model, and combines the preset networking rules and performance optimization objective function to calculate the networking utility value matrix between each three-in-one terminal device through the networking utility evaluation neural network model. According to the networking utility value matrix, a 0-1 integer programming model is solved to obtain the optimal networking topology as a candidate networking device list. The 0-1 integer programming model takes the networking utility value matrix as input, takes maximizing the network throughput as the goal, and takes node degree constraints, connectivity constraints, and link capacity constraints as conditions; based on the pre-trained networking role allocation long short-term memory network model, a networking role allocation scheme is obtained, and the three-in-one terminal device sends a networking invitation to each three-in-one terminal device in the candidate networking device list. The networking invitation carries the device identification of the three-in-one terminal device and the networking role allocation scheme;
[0012] Receive feedback information from other three-in-one terminal devices in the candidate networking device list regarding the networking invitation. If the feedback information is that the networking invitation is accepted and the networking role allocation plan is approved, the three-in-one terminal device will be added to the formal networking device list until the number of three-in-one terminal devices in the formal networking device list reaches the preset networking scale threshold; based on the networking role assigned to each three-in-one terminal device in the formal networking device list, establish a point-to-point networking communication link with each three-in-one terminal device through the wireless communication module to form an intelligent network with a star topology structure with the three-in-one terminal device as the central node.
[0013] The second aspect of the present invention,
[0014] Provides a three-in-one terminal control system with intelligent networking, including:
[0015] The first unit is configured to enable the three-in-one terminal device to broadcast a capability broadcast frame containing its own device identification, device capabilities, and current working status through the wireless communication module, monitor the capability broadcast frames broadcast by other three-in-one terminal devices in the environment, and parse and obtain the device identification, device capabilities, and current working status of the other three-in-one terminal devices; the three-in-one terminal device merges its own device identification, device capabilities, and current working status with the parsed device identification, device capabilities, and current working status of the other three-in-one terminal devices to generate a networking feature vector representing the current status of each three-in-one terminal device;
[0016] The second unit is used for the three-in-one terminal device to input the networking feature vector into a pre-trained networking utility evaluation neural network model, and in combination with the preset networking rules and performance optimization objective function, calculate the networking utility value matrix between each three-in-one terminal device through the networking utility evaluation neural network model, and solve the 0-1 integer programming model according to the networking utility value matrix to obtain the optimal networking topology as a candidate networking device list. The 0-1 integer programming model takes the networking utility value matrix as input, maximizes the network throughput as the goal, and is subject to node degree constraints, connectivity constraints, and link capacity constraints as conditions; based on the pre-trained networking role allocation long short-term memory network model, a networking role allocation scheme is obtained, and the three-in-one terminal device sends a networking invitation to each three-in-one terminal device in the candidate networking device list. The networking invitation carries the device identification of the three-in-one terminal device and the networking role allocation scheme;
[0017] The third unit is used to receive feedback information from other three-in-one terminal devices in the candidate networking device list regarding the networking invitation. If the feedback information is that the networking invitation is accepted and the networking role allocation plan is approved, the three-in-one terminal device will be added to the formal networking list until the number of three-in-one terminal devices in the formal networking device list reaches a preset networking scale threshold; based on the networking role assigned to each three-in-one terminal device in the formal networking device list, a point-to-point networking communication link is established with each three-in-one terminal device through the wireless communication module to form an intelligent network with a star topology structure with the three-in-one terminal device as the central node.
[0018] The third aspect of the present invention,
[0019] An electronic device is provided, comprising:
[0020] processor;
[0021] a memory for storing processor-executable instructions;
[0022] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0023] The fourth aspect of the present invention,
[0024] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described above is implemented.
[0025] In this invention, the three-in-one terminal device uses broadcast and monitoring capabilities to broadcast frames, perceive the status and capabilities of other devices in the network environment in real time, and generate a networking feature vector by integrating the status information of multiple devices. This enables the network organization process to dynamically adapt to changes in device capabilities and the network environment, selecting the optimal networking method and topology based on the current situation, greatly improving the flexibility and adaptability of network organization.
[0026] By introducing a network utility evaluation neural network model and a 0-1 integer programming model, this paper can quantitatively evaluate the networking utility between different devices and optimize the network topology with the goal of maximizing network throughput. Furthermore, the topology optimization process considers node degree constraints, connectivity constraints, and link capacity constraints, ensuring the feasibility and efficiency of the network topology. The optimized network topology maximizes the capabilities of each device, improving the overall performance and resource utilization efficiency of the network.
[0027] Traditional networking approaches typically require centralized control and extensive signaling interactions, resulting in complex and costly networking processes. However, this invention simplifies the networking process through distributed capability broadcasting and autonomous decision-making. Devices exchange status information via broadcast frames, autonomously optimizing network topology and assigning roles based on local models, significantly reducing signaling overhead. Furthermore, the use of point-to-point networking communication links further reduces communication and control costs during networking.
[0028] This invention incorporates a flexible networking framework and versatile key technologies, applicable to a variety of networking modes and service scenarios. Whether it's a central node or a distributed, self-organizing network, and whether it's used for data transmission, computational offloading, or collaborative sensing, the technical solutions of this invention enable efficient network organization and optimization. This enables three-in-one terminal devices to flexibly select and switch networking modes based on actual needs and environmental conditions, meeting the performance requirements of different services. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 Schematic diagram of the flow of a three-in-one terminal control method capable of intelligent networking according to an embodiment of the present invention;
[0030] Figure 2 This is a schematic diagram of the structure of a three-in-one terminal control system capable of intelligent networking according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0032] The following specific embodiments are used to describe the technical solution of the present invention in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0033] Figure 1 FIG. 1 is a flow chart of a method for controlling a three-in-one terminal capable of intelligent networking according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0034] S101. The three-in-one terminal device broadcasts a capability broadcast frame containing its own device identification, device capabilities, and current working status through the wireless communication module, monitors the capability broadcast frames broadcast by other three-in-one terminal devices in the environment, and parses and obtains the device identification, device capabilities, and current working status of other three-in-one terminal devices; the three-in-one terminal device fuses its own device identification, device capabilities, and current working status with the device identification, device capabilities, and current working status of other three-in-one terminal devices obtained by parsing to generate a networking feature vector representing the current status of each three-in-one terminal device;
[0035] In an optional embodiment,
[0036] For each three-in-one terminal device, its device identity, device capabilities, and current working status are extracted. The device identity is one-hot encoded, and a multi-layer perceptron network is constructed for each of the device capabilities and current working status. The network's feature embedding layer maps the device identity, device capabilities, and current working status to a preset embedding space, resulting in a device identity vector, a device capability embedding vector, and a current working status embedding vector.
[0037] The device identification vector, device capability embedding vector, and current working state embedding vector are concatenated along the feature dimension to form the state feature vector of the three-in-one terminal device. The device identification vector, device capability embedding vector, and current working state embedding vector are input into three independent attention aggregation layers respectively. The vectors are weighted and summed using the learned attention weights to obtain the attention-enhanced state feature vector.
[0038] The above vectorization representation process is repeated for all three-in-one terminal devices to obtain a set of attention-enhanced state feature vectors. Each attention-enhanced state feature vector is regarded as a node of the graph, and the communication links between devices are regarded as the edges of the graph. The attention weights between nodes are calculated through the multi-head attention mechanism. The graph attention aggregation process is iterated multiple times to model high-order neighbor relationships and obtain a graph attention network. Based on the graph attention network, a networking feature vector representing the current state of each three-in-one terminal device is generated.
[0039] For example, this application proposes an end-to-end learning framework for three-in-one terminal device state perception, which generates a networking feature vector representing the current state of each terminal device by integrating device attribute information with the network topology. The specific technical solution is as follows:
[0040] Input: Device Collection ,in, d N Indicates the Nth three-in-one terminal device; device identification set ;Device capability set ; Equipment current working status collection ;
[0041] Output: Network feature vector ;
[0042] For three-in-one terminal devices, extract their device identification, device capabilities and current working status; perform unique hot encoding on the device identification to obtain , n I The number of unique values that identify the device.
[0043] Construct multi-layer perceptron networks for device capabilities and working status respectively and , mapped into the F-dimensional embedding space through the feature embedding layer:
[0044] ;
[0045] ;
[0046] Will 、 and Splicing on the feature dimension to form the state feature vector of the device ;
[0047] ;
[0048] Input the state features into three independent attention pooling layers and calculate the attention weights :
[0049] ;
[0050] in is a learnable query vector.
[0051] The state features are weighted and summed based on the attention weights to obtain the attention-enhanced state features:
[0052] ;
[0053] Repeat the above steps for all devices in the device set to obtain the state feature set of attention enhancement .
[0054] Based on communication link set Build a network topology diagram , the node characteristics are .
[0055] Apply an L-layer multi-head graph attention network on the network topology to aggregate and update node features:
[0056] ;
[0057] ;
[0058] in is the attention weight calculated by the k-th attention head in the l-th layer, is the corresponding feature transformation matrix, K Indicates the number of attention heads.
[0059] The node features of the last layer are used as the representation of the network status, that is, .
[0060] Through the above steps, the networking feature vector representing the current status of each three-in-one terminal device can be obtained , combining device attribute information and network topology to comprehensively characterize the state characteristics of the network environment. The advantages of this method are: introducing an attention mechanism to adaptively aggregate state representations of different granularities, enhancing the expressive power of features; utilizing graph neural networks to model inter-device communication dependencies and mine the structural information inherent in network topology; and employing an end-to-end representation learning paradigm to extract state features through data-driven and self-supervised learning, reducing reliance on manual design.
[0061] In an optional embodiment,
[0062] Based on the graph attention network, the network feature vector representing the current status of each three-in-one terminal device is obtained, including:
[0063] The updated state feature vectors output by the graph attention network are stacked vertically to form a second state feature matrix, and the state feature vector of the three-in-one terminal device itself is converted into the first state feature matrix; the first state feature matrix and the second state feature matrix are respectively input into two independent multi-head self-attention layers in the Transformer attention model. The multi-head self-attention layer includes multiple parallel scaled dot product attention heads. Each attention head performs a linear transformation on the first state feature matrix and the second state feature matrix to obtain a query matrix, a key matrix, and a value matrix. The similarity between the query matrix and the key matrix is calculated through the scaled dot product attention mechanism to obtain the attention distribution. The value matrix is weighted and summed according to the attention distribution to obtain the output of the attention head. The outputs of multiple attention heads are spliced and linearly transformed to obtain the attention-enhanced representation of the self-state and the state of other devices.
[0064] The attention-enhanced representations of the self-state and other device states are input into the cross-attention layer of the Transformer attention model. The cross-attention layer performs a linear transformation on the attention-enhanced representation of the self-state to obtain a query matrix, and also performs a linear transformation on the attention-enhanced representations of other device states to obtain a key matrix and a value matrix. The similarity between the query matrix and the key matrix is calculated using the scaled dot product attention mechanism to obtain the attention distribution. The value matrix is weighted and summed according to the attention distribution. The information of each position in the self-state representation is fused with the relevant positions in the other device state representation to obtain the output of the cross-attention layer.
[0065] The output of the cross-attention layer is passed through two feedforward neural networks in succession. The first feedforward neural network contains a fully connected layer and a Gaussian error linear unit activation function, and a nonlinear transformation is performed on the output of the cross-attention layer. The second feedforward neural network contains a fully connected layer and a linear rectification function activation function. A residual connection is used between the two feedforward neural networks. The output of the first feedforward neural network is added to the output of the cross-attention layer as the input of the second feedforward neural network. The outputs of the two feedforward neural networks are both layer-normalized to obtain the final output of the feedforward neural network; the final output of the feedforward neural network is mapped to a feature space of a preset dimension through a linear transformation layer, and then each element of the final output of the feedforward neural network is mapped to between -1 and 1 through a hyperbolic tangent activation function to obtain a networking feature vector representing the current status of each three-in-one terminal device.
[0066] For example, to further explore the interactive relationships and contextual information between a device's own state and the states of other devices, this paper proposes a network feature vector generation scheme based on the Transformer attention model. This scheme leverages the Transformer's self-attention and cross-attention mechanisms to deeply fuse the device state feature vectors output by the graph attention network, generating a low-dimensional network feature vector representing the current state of each three-in-one terminal device.
[0067] Specifically, the state feature vector of the device itself is first converted into a first state feature matrix, and the state feature vectors of other devices are stacked vertically to form a second state feature matrix. Then, the first state feature matrix and the second state feature matrix are respectively input into two independent multi-head self-attention layers. Each multi-head self-attention layer contains multiple parallel scaled dot product attention heads to extract the internal dependencies of the input state feature matrix. In each attention head, the query matrix, key matrix and value matrix are obtained through linear transformation, and the similarity between the query matrix and the key matrix is calculated using the scaled dot product attention mechanism to obtain the attention distribution. The value matrix is weighted and summed according to the attention distribution to obtain the output of the current attention head. Finally, the outputs of all attention heads are spliced, and the attention-enhanced representation of the state of itself and the state of other devices is obtained through linear transformation.
[0068] To achieve information interaction and fusion between the self-state and other device states, this paper employs a cross-attention mechanism. The attention-enhanced representation of the self-state and the attention-enhanced representation of the other device states are input into the cross-attention layer. A linear transformation is performed on the attention-enhanced representation of the self-state to obtain the query matrix, and a linear transformation is performed on the attention-enhanced representation of the other device states to obtain the key matrix and the value matrix. The similarity between the query matrix and the key matrix is calculated using the scaled dot product attention mechanism to obtain the attention distribution, and the value matrix is weighted and summed based on the attention distribution. This process enables information fusion between each position in the self-state representation and the corresponding position in the other device state representation.
[0069] To further enhance the model's representational capabilities and training stability, this paper introduces two feedforward neural networks after the crisscross attention layer. The first feedforward neural network consists of a fully connected layer and a Gaussian error linear unit activation function, which performs a nonlinear transformation on the output of the crisscross attention layer. The second feedforward neural network consists of a fully connected layer and a linear rectifier activation function. To promote gradient propagation and alleviate the vanishing gradient problem, a residual connection is used between the two feedforward neural networks. The output of the first feedforward neural network is added to the output of the crisscross attention layer as the input of the second feedforward neural network. In addition, the outputs of both feedforward neural networks undergo layer normalization to reduce internal covariate shift and accelerate training convergence.
[0070] Finally, the final output of the feedforward neural network is mapped to a feature space of a preset dimension through a linear transformation layer. A hyperbolic tangent activation function is then used to map each element of the feature vector to a value between -1 and 1, resulting in a network feature vector representing the current state of each three-in-one terminal device. The nonlinear mapping of the hyperbolic tangent function enhances the representational power of the feature vector while limiting the eigenvalues to a reasonable range for ease of use in downstream tasks.
[0071] This paper proposes a network feature vector generation scheme based on the Transformer attention model. This scheme leverages both self-attention and cross-attention mechanisms to effectively capture inter-device interactions and contextual information. By introducing techniques such as residual connections and layer normalization, the model's representational capabilities and training stability are further enhanced. The resulting low-dimensional network feature vector captures key information about device states and can be used for subsequent task prediction and decision optimization.
[0072] S102. The three-in-one terminal device inputs the networking feature vector into a pre-trained networking utility evaluation neural network model. Combining the pre-set networking rules and the performance optimization objective function, the network utility evaluation neural network model calculates a networking utility value matrix between each three-in-one terminal device. A 0-1 integer programming model is then solved based on the networking utility value matrix to obtain an optimal networking topology as a list of candidate networking devices. The 0-1 integer programming model uses the networking utility value matrix as input, maximizes network throughput as a goal, and is subject to node degree constraints, connectivity constraints, and link capacity constraints. A networking role allocation scheme is obtained based on a pre-trained long short-term memory network model for networking role allocation. The three-in-one terminal device then sends a networking invitation to each three-in-one terminal device in the candidate networking device list. The networking invitation carries the device identifier of the three-in-one terminal device and the networking role allocation scheme.
[0073] In an optional embodiment,
[0074] The three-in-one terminal device inputs the networking feature vector into a pre-trained networking utility evaluation neural network model. Combined with the preset networking rules and performance optimization objective function, the networking utility evaluation neural network model calculates the networking utility value matrix between each three-in-one terminal device, including:
[0075] The initial networking state feature vectors of all three-in-one terminal devices are constructed into an undirected weighted graph. Each vertex in the undirected weighted graph represents a three-in-one terminal device. The vertex feature is the networking state feature vector of the corresponding terminal device. The edge weight is the link quality metric between two terminal devices, where the link quality is determined based on signal strength, interference level, and channel capacity.
[0076] Based on the constructed undirected weighted graph, a multi-layer graph convolutional neural network is used to update and aggregate the vertex features in the undirected weighted graph. Each layer in the graph convolutional neural network corresponds to a graph convolution operation. The graph convolution operation linearly transforms the vertex features through the normalized adjacency matrix and normalized degree matrix of the vertex, and then introduces nonlinearity through the activation function. The multi-layer graph convolutional neural network aggregates the neighborhood information of the vertex layer by layer by stacking multiple graph convolutional layers to obtain high-order interaction relationships between vertices; the vertex feature vectors output by the last layer of the graph convolutional neural network are extracted and input into a fully connected layer respectively. The fully connected layer maps the vertex feature vectors to the Q-value space. The dimension of the Q-value space is equal to the size of the networking action space. Each dimension of the Q-value space represents the long-term utility estimate of selecting the corresponding networking action. The networking action space is generated according to the preset networking rules. Each networking action represents establishing or disconnecting a connection with one or more other devices, and is accompanied by corresponding power allocation, channel selection, and routing strategies.
[0077] A networking utility evaluation neural network model is constructed. For a given networking state feature vector, the trained networking utility evaluation neural network model is used to forward propagate and calculate the Q-value estimate. Based on the Q-value estimate, a flexible maximum exploration strategy is adopted to select networking actions. The flexible maximum exploration strategy randomly samples networking actions using the exponential function of the Q-value estimate as the weight. The networking decision results of all three-in-one terminal devices are summarized to obtain a networking utility value matrix. The elements in the networking utility value matrix represent the estimated networking utility between two terminal devices.
[0078] For example, to evaluate the networking utility between different three-in-one terminal devices, this paper proposes a networking utility evaluation scheme based on graph convolutional neural networks and Q-value estimation. This scheme first constructs the initial networking state feature vectors of all three-in-one terminal devices into an undirected weighted graph. Then, a multi-layer graph convolutional neural network is used to update and aggregate vertex features. Finally, Q-value estimation and a flexible maximum exploration strategy are used to select the optimal networking action and calculate the networking utility value matrix.
[0079] Determining the link quality metric is a key issue when constructing undirected weighted graphs. This paper proposes an improved link quality metric calculation method by comprehensively considering factors such as signal strength, interference level, and channel capacity. Specifically, for a link between any two three-in-one terminal devices, the link quality metric is calculated by comprehensively considering the ratio of the signal strength to the background noise power between the devices, the logarithm of the signal-to-noise ratio, and the channel capacity. The final link quality metric is obtained through a weighted summation.
[0080] When calculating signal strength, the distance between devices and the transmission power are taken into account. Using the free-space propagation model, the signal strength is inversely proportional to the negative nth power of the distance between devices and the system loss factor, and is directly proportional to the product of the device transmission power.
[0081] When calculating the interference level, co-channel interference from other devices on inter-device communications is taken into account. The interference level is inversely proportional to the distance from the interfering device to the two devices (negative nth power) and the system loss factor, and directly proportional to the interfering device's transmit power and antenna gain. The total interference level is calculated by summing the effects of all interfering devices. When calculating channel capacity, the Shannon formula is used, expressing the channel capacity as a logarithmic function of the channel bandwidth and the signal-to-noise ratio. By introducing this improved link quality metric calculation method, undirected weighted graphs can more accurately characterize inter-device communication quality and interference conditions, providing reliable edge weight information for subsequent graph convolution operations.
[0082] In the design of graph convolutional neural networks, this paper employs a multi-head attention mechanism to enhance the representational power of graph convolution operations. Unlike traditional graph convolution operations, multi-head attention graph convolution operations introduce multiple attention heads, each of which performs a different linear transformation on vertex features. The attention mechanism then aggregates the features of neighboring vertices to obtain the updated features of the current vertex. Multi-head attention graph convolution updates vertex features by weighted summation of neighboring vertex features. The weights are determined by the current vertex's attention weight on neighboring vertices and the weight matrix of the corresponding attention head. Nonlinearity is then introduced through an activation function.
[0083] When calculating attention weights, we use a scaled dot product attention mechanism. This involves performing a dot product between the query vector of the current vertex and the key vector of the neighboring vertex, dividing the result by a scaling factor, and then normalizing the result using a softmax function. The introduction of a scaling factor reduces the variance of the dot product result and improves the stability of the attention mechanism.
[0084] By introducing a multi-head attention mechanism, graph convolutional neural networks can extract vertex features from different subspaces, capture the diverse interactions between vertices, and improve the accuracy of network utility evaluation. At the same time, the multi-head attention mechanism also enhances the capacity and representation capabilities of graph convolutional neural networks, enabling them to handle more complex networking scenarios.
[0085] During the Q-value estimation and networking action selection phase, this paper employs a Q-learning algorithm based on a flexible maximum exploration strategy. Unlike the traditional ε-greedy exploration strategy, the flexible maximum exploration strategy randomly samples networking actions using an exponential function of the Q-value estimate as weight. The weights are calculated by dividing the exponential function of the Q-value estimate by the sum of the exponential functions of all action Q-value estimates. A temperature parameter controls the intensity of the exploration.
[0086] Through the flexible maximum exploration strategy, the algorithm retains the possibility of exploring new actions to a certain extent, while also tending to select actions with higher Q-value estimates, achieving a good balance between exploration and exploitation. Furthermore, by adjusting the temperature parameter, the intensity of exploration can be dynamically adjusted, encouraging exploration in the early stages and leaning towards exploitation in the later stages, improving the algorithm's convergence speed and stability.
[0087] This paper employs experience replay and target network optimization techniques to train the network utility evaluation neural network model. Experience replay caches transfer samples obtained from the agent's interaction with the environment, then randomly draws small batches of samples from the cache for training. This breaks the correlation between samples and improves training stability. The target network maintains a target network with identical parameters to the evaluation network for calculating the Q-value target, reducing oscillation and divergence caused by target instability.
[0088] When calculating the Q-value target, a dual Q-value estimation technique is used. This technique uses both the evaluation network and the target network to calculate the Q-value of the next state, and then takes the minimum of the two as the Q-value target. The Q-value target is calculated by adding the immediate reward to the discounted minimum of the Q-value estimates from the evaluation network and the target network for the next state.
[0089] By introducing the dual Q-value estimation technology, the overestimation problem of Q-value estimation can be effectively reduced, and the stability and convergence of the algorithm can be improved.
[0090] In summary, the networking utility evaluation scheme based on graph convolutional neural network and Q-value estimation proposed in this paper effectively improves the accuracy and stability of networking utility evaluation through improved link quality metric calculation method, multi-head attention graph convolution operation, flexible maximum exploration strategy, experience replay and dual Q-value estimation technologies, providing a novel and effective solution for intelligent collaborative networking.
[0091] In an optional embodiment,
[0092] Construct a neural network model for network utility evaluation, including:
[0093] The architecture of the network utility evaluation neural network model is constructed, which adopts an architecture that combines a graph convolutional neural network and a deep Q-network. The graph convolutional neural network extracts features and learns representations of graph structure data by defining convolution kernel operations on the graph domain, and the output of the graph convolutional neural network serves as the input of the deep Q-network. The deep Q-network adopts an adversarial architecture to decompose the Q-value function into a state value function and an advantage function. The state value function estimates the value of the state, and the advantage function estimates the advantage of each action relative to the average action.
[0094] The network utility evaluation neural network model is optimized using a deep Q-learning algorithm. An ε-greedy exploration strategy is used to select networking actions, selecting the action with the largest current Q-value estimate with a probability of 1-ε and randomly selecting an action with a probability of ε. The intelligent agent executes the selected networking action and obtains an immediate reward and the next networking state. The immediate reward is generated weighted by an attention mechanism based on throughput, latency, energy consumption, Jain fairness index, and proportional fairness metric. The Q-value estimate is iteratively updated using the Bellman equation, with the Q-value target equal to the sum of the immediate reward and the discount factor of the next-state Q-value estimate.
[0095] The mean square error loss function is used to measure the difference between the Q-value estimate and the Q-value target, and the neural network parameters are adjusted through the stochastic gradient descent algorithm to minimize the loss function; a target network is introduced, and the target network parameters track the online network parameters with a preset lag time to calculate the Q-value target; an experience replay buffer is constructed to store state transition samples in a first-in-first-out manner, and small batch training samples are randomly sampled from the replay buffer; an L2 regularization term is introduced in the loss function to perform an L2 norm penalty on the weight parameters of the neural network; an asynchronous advantage actor-critic algorithm is used for distributed training, and multiple intelligent agents independently interact with the environment to learn policy functions and value functions, and parameter synchronization is achieved between intelligent agents by sharing neural network parameters.
[0096] For example, in the architectural design of the network utility evaluation neural network model, this application innovatively combines graph convolutional neural networks and deep Q networks. Graph convolutional neural networks are responsible for feature extraction and representation learning of undirected weighted graphs. By defining the operations of convolution kernels on the graph domain, efficient processing of graph-structured data is achieved. This application uses a spectral domain graph convolution method approximated by Chebyshev polynomials. By recursively calculating Chebyshev polynomials, the graph convolution operation in the spectral domain is converted into a polynomial filter in the spatial domain, greatly reducing the computational complexity.
[0097] The output of the graph convolutional neural network is used as the input of the deep Q-network, achieving end-to-end feature extraction and policy learning. In the design of the deep Q-network, this application introduces an adversarial architecture, which decomposes the Q-value function into two parts: the state value function and the advantage function. The state value function is used to estimate the value of the state and characterize the long-term return of the state. The advantage function is used to estimate the advantage of each action relative to the average action and characterize the relative pros and cons of the action. By introducing the adversarial architecture, this application can more accurately estimate the advantage of the action and improve the stability and sample efficiency of policy learning.
[0098] This application uses a deep Q-learning algorithm to optimize the network utility evaluation neural network model. Q-learning aims to learn an optimal Q-value function, which gradually converges to the optimal Q-value function as learning progresses. This application uses an ε-greedy exploration strategy to balance exploration and exploitation, selecting the action with the highest current Q-value estimate with a probability of 1-ε, and randomly selecting an action with a probability of ε, where ε gradually decays as training progresses. After the agent executes the selected networking action, the environment returns an immediate reward and the next networking state.
[0099] The design of immediate rewards is a key issue that directly impacts the effectiveness of policy learning. This application comprehensively considers multiple performance metrics, including throughput, latency, energy consumption, Jain fairness index, and proportional fairness. These metrics are weighted and combined using an attention mechanism to generate the final immediate reward. Attention weights are calculated based on the degree of match between state features and indicator features; the higher the match, the greater the attention weight. After linear transformation of state features and indicator features, the softmax function is used to normalize them to obtain the attention weights.
[0100] To update the Q-value estimate, this application uses the Bellman equation, where the target Q-value is equal to the sum of the immediate reward and the discount factor of the next-state Q-value estimate. The introduction of the discount factor reflects the attenuation of future rewards, ranging from 0 to 1. This application uses the mean squared error loss function to measure the difference between the Q-value estimate and the target Q-value. The neural network parameters are adjusted using the stochastic gradient descent algorithm to minimize the loss function.
[0101] To improve the stability of training, this application introduces a target network for calculating the Q-value target. The parameters of the target network track the parameters of the online network with a preset lag time, which is usually set to a number of training steps. This application also constructs an experience replay buffer to store state transition samples in a first-in-first-out manner. At each training step, this application randomly samples small batches of samples from the replay buffer, breaking the correlation between samples and improving the stability of training.
[0102] In addition, this application introduces an L2 regularization term into the loss function, which applies an L2 norm penalty to the neural network's weight parameters to prevent overfitting. By adding a penalty term based on the sum of squares of the weight parameters to the loss function, L2 regularization limits the size of the weight parameters and encourages the model to learn simpler and smoother functions.
[0103] To further improve training efficiency, this application uses an asynchronous advantage actor-critic algorithm for distributed training. Multiple agents are deployed on different computing nodes, independently interacting with the environment to learn policy functions and value functions. Each agent maintains a local policy network and value network, generates trajectory samples through interaction with the environment, and uses these samples to update the local network. Agents synchronize parameters by sharing neural network parameters. The master node periodically obtains local network parameters from the agents, averages them, obtains global network parameters, and distributes the global network parameters to each agent.
[0104] By leveraging an asynchronous, dominant actor-critic algorithm, this application parallelizes model training, significantly improving training speed and efficiency. Distributed training also enhances the model's generalization capabilities, enabling it to adapt to diverse networking environments and task requirements.
[0105] In summary, this application has constructed an efficient, stable, and robust neural network model for evaluating network utility. It employs a series of advanced optimization techniques, including the combination of graph convolutional neural networks and deep Q-networks, the introduction of adversarial architectures, an ε-greedy exploration strategy, an attention mechanism, a target network, experience replay, L2 regularization, and an asynchronous dominant actor-critic algorithm. The integrated application of these technologies significantly improves the model's performance and adaptability, providing strong decision-making support for intelligent collaborative networking.
[0106] S103. Receive feedback from other three-in-one terminal devices in the candidate networking device list regarding the networking invitation. If the feedback indicates acceptance of the networking invitation and approval of the networking role assignment plan, add the three-in-one terminal device to the official networking device list until the number of three-in-one terminal devices in the official networking device list reaches a preset networking scale threshold. Based on the networking role assigned to each three-in-one terminal device in the official networking device list, establish a point-to-point networking communication link with each three-in-one terminal device via the wireless communication module, thereby forming an intelligent network with a star topology structure with the three-in-one terminal device as the central node.
[0107] For example, after obtaining the optimal networking topology and networking role allocation scheme, the three-in-one terminal device needs to negotiate and confirm with other devices in the candidate networking device list to ultimately form a stable and efficient intelligent network.
[0108] Based on a list of candidate networking devices, the three-in-one terminal sends a networking invitation to each device in the list. This invitation includes the initiating device's identification information and a networking role allocation scheme. This networking role allocation scheme is an optimal role allocation strategy derived from a long-short-term memory network model for networking role allocation, clarifying the roles and responsibilities of each device in the network.
[0109] After receiving a networking invitation, a candidate device performs a local evaluation and decision-making process. It first verifies the initiating device's identity to ensure its legitimacy and credibility. Then, based on its own capabilities and status, it evaluates the feasibility and benefits of the networking role allocation plan. The device considers factors such as its power consumption, computing resources, and communication capabilities before deciding whether to accept the networking invitation and approve the role allocation plan.
[0110] After completing the local evaluation, the device sends feedback to the initiating device. If the device accepts the network invitation and approves the proposed role assignment, it returns a confirmation message, indicating its willingness to join the network and fulfill the corresponding role responsibilities. If the device rejects the network invitation or disagrees with the proposed role assignment, it returns a rejection message or a correction suggestion, indicating that it cannot join the network or that the role assignment needs to be adjusted.
[0111] The three-in-one terminal receives and processes the feedback from the candidate devices. For devices that accept the networking invitation and approve the role assignment, the three-in-one terminal adds them to the official networking device list. The official networking device list contains information about all devices willing to participate in the networking and accept the role assignment, including device identification, role type, and communication parameters.
[0112] The three-in-one terminal continuously receives and processes feedback from candidate devices, continuously updating the list of officially connected devices. When the number of devices in the officially connected device list reaches the preset network size threshold, the three-in-one terminal stops receiving feedback and determines the final network members. The network size threshold is pre-set based on application requirements and the network environment to control the scale and complexity of the network. When the number of connected devices meets the threshold, the network is sufficient to support the target applications and services.
[0113] After the official list of networking devices is determined, the three-in-one terminal establishes a networking communication link with each device on the list. A networking communication link is a logical connection between devices for data transmission and control signaling, and it is the physical carrier of the networking topology.
[0114] The three-in-one terminal device establishes a point-to-point wireless link with each networking device through its wireless communication module. These point-to-point links utilize a direct communication mode, eliminating the need for forwarding through intermediate nodes, reducing communication latency and energy consumption. The three-in-one terminal device negotiates communication parameters with the networking device, including physical layer parameters (such as carrier frequency, modulation method, and transmit power) and MAC layer parameters (such as channel access, frame structure, and retransmission mechanism) to ensure link reliability and efficiency.
[0115] When establishing a network communication link, the three-in-one terminal device acts as a central node, forming a star topology with all networked devices. This star topology is centered around the three-in-one terminal device, with the networked devices directly connected to it as end nodes. The central node is responsible for network management and coordination, controlling the allocation and scheduling of network resources. End nodes exchange data and process service requests through the central node, reducing their processing burden. The star topology is simple, efficient, easy to manage and maintain, and suitable for intelligent networking scenarios centered around the three-in-one terminal device.
[0116] Through the aforementioned steps of network invitation and feedback, formal networking device list generation, and network communication link establishment, a star-shaped intelligent network topology with the three-in-one terminal device as the central node is ultimately formed. This intelligent network dynamically optimizes network performance based on device capabilities and the network environment, flexibly adapting to application needs.
[0117] To ensure the stability and sustainability of intelligent networking, three-in-one terminal devices require continuous monitoring and maintenance of the network. On the one hand, the three-in-one terminal devices monitor the status changes of networked devices in real time, including device availability, remaining energy, and communication quality, and promptly address any anomalies. On the other hand, the three-in-one terminal devices regularly evaluate network performance and determine whether adjustments to the network topology and resource allocation strategy are necessary based on metrics such as network throughput, latency, and reliability. When network performance degrades or a device exits, the three-in-one terminal device initiates the network adjustment process, re-initiating network invitations, re-assigning roles, and re-establishing links to ensure dynamic optimization and self-healing capabilities of the network.
[0118] Furthermore, devices in intelligent networking can dynamically select a central node through negotiation and voting. If the original central node fails or its capabilities decline, the networking devices reselect the optimal device as a new central node based on their respective capabilities and status, enabling autonomous management and resilient maintenance of the network.
[0119] In an optional embodiment,
[0120] Solve the 0-1 integer programming model based on the network utility matrix to obtain the optimal network topology as a list of candidate network devices, including:
[0121] Constructing a 0-1 integer programming model, the 0-1 integer programming model including decision variables, an objective function, and constraints, wherein the decision variables include a binary link establishment variable and a non-negative real flow variable, the binary link establishment variable indicating whether a direct link is established between three-in-one terminal devices, and the non-negative real flow variable indicating a data transmission rate between the three-in-one terminal devices; and the objective function is defined as maximizing network throughput, the network throughput being obtained by summing the products of the binary link establishment variable and the corresponding non-negative real flow variable on all three-in-one terminal devices, with the networking utility value matrix serving as a weight matrix in the summation.
[0122] Constraints include node degree constraints, connectivity constraints, and capacity constraints. The node degree constraint ensures that the number of direct links established by a single three-in-one terminal device does not exceed its maximum degree limit. The connectivity constraint establishes a mathematical model based on the law of network flow conservation to ensure that at least one end-to-end path exists between any three-in-one terminal devices in the network. The capacity constraint limits the flow rate limit of each direct link. The flow rate limit is represented by the product of the binary link establishment variable corresponding to the direct link and the maximum transmission rate of the link.
[0123] A heuristic algorithm is used to solve the 0-1 integer programming model to obtain an approximately optimal networking topology and traffic distribution solution. The heuristic algorithm relaxes the value range of the decision variable from a discrete 0-1 to a continuous real number interval through linear relaxation, converting it into a linear programming problem for solution. The optimal solution of the linear programming problem is used as an upper bound of the original 0-1 integer programming problem. The real number solution of the linear programming problem is mapped back to a 0-1 feasible solution through a deterministic rounding strategy. The deterministic rounding strategy determines the value of the binary variable based on the difference between the real number solution and 0 or 1;
[0124] Based on the initial 0-1 feasible solution obtained by the deterministic rounding strategy, a local search strategy is embedded to further optimize the solution. The local search strategy searches within the field to find new solutions that are better than the current solution. During the search process, strictly improved solutions are accepted and non-improved solutions are rejected. The search is iterated multiple times until the quality of the solution meets the convergence condition. Based on the network topology obtained by the solution, a list of candidate network devices is determined. The list of candidate network devices is the component nodes of the optimal network topology. The list of candidate network devices includes the identification, location coordinates, and node attributes of the three-in-one terminal device.
[0125] For example, first, the present application constructs a 0-1 integer programming model to characterize the network topology optimization problem. The 0-1 integer programming model consists of three parts: decision variables, objective function, and constraints.
[0126] The model contains two types of decision variables: a binary link establishment variable and a non-negative real flow variable. The binary link establishment variable indicates whether a direct link is established between terminal devices and takes a value of 0 or 1. When the binary link establishment variable takes a value of 1, a direct link is established between the corresponding two terminal devices; when it takes a value of 0, it indicates that a direct link is not established between the two terminal devices. The non-negative real flow variable represents the data transmission rate between terminal devices and takes a non-negative real value. The flow variable describes the data transmission rate on each link in the network under a given link topology.
[0127] This application takes maximizing network throughput as the optimization goal and constructs an objective function. Network throughput refers to the total amount of data transmitted by the network per unit time, and is obtained by summing the product of the link establishment variable and the corresponding traffic variable on all pairs of terminal devices. In the process of accumulation and summation, this application uses the networking utility value matrix as the weight matrix to distinguish the contributions of different links. The networking utility value matrix characterizes the utility of establishing links between different pairs of terminal devices, and comprehensively considers factors such as the bandwidth, latency, and reliability of the link. Introducing the networking utility value matrix as a weight can make the generated networking topology closer to actual needs and improve network performance.
[0128] In order to ensure that the generated network topology meets actual needs, this application introduces three types of constraints: node degree constraint, connectivity constraint and capacity constraint.
[0129] Node degree constraints limit the number of direct links established by a single end device to its maximum degree limit. This application sums the number of links established by each end device and limits this to the maximum degree limit. The maximum degree limit depends on the end device's hardware requirements, such as the number of interfaces, processing power, and energy budget.
[0130] Connectivity constraints are used to ensure that there is at least one end-to-end path between any pair of terminal devices in the network, thereby guaranteeing network connectivity. This application establishes connectivity constraints based on the network flow model, introducing a virtual source and sink for each terminal device. This application assumes that the source sends a unit of traffic to the terminal device, and the terminal device transmits this unit of traffic to the sink. At the same time, this application limits the maximum flow from the source to the sink to 1, which is equivalent to requiring that there is at least one end-to-end path between any pair of terminal devices in the network.
[0131] Capacity constraints impose an upper limit on the traffic flow of each link, which is determined by the product of the link establishment variable and the link's maximum transmission rate. This application limits the traffic flow of each link to within this upper limit to ensure that the link is not overloaded. The maximum transmission rate of a link is determined by the physical characteristics of the link, such as channel bandwidth and modulation method. Because the 0-1 integer programming problem is NP-hard and a direct solution is very complex, this application uses a heuristic algorithm to obtain a near-optimal solution.
[0132] This application uses linear relaxation to relax the range of decision variables from discrete 0-1 to a continuous real-number interval. Assuming all binary link establishment variables are relaxed to real numbers in the interval [0, 1], and all non-negative real-number traffic variables remain unchanged, the original 0-1 integer programming problem is transformed into a linear programming problem. The linear programming problem can be solved using a polynomial-time algorithm such as the simplex method, and the resulting optimal objective function value is an upper bound on the optimal objective function value of the original 0-1 integer programming problem.
[0133] The optimal solution to the linear programming problem is a real number solution, and this application needs to round it to a 0-1 feasible solution. This application adopts a deterministic rounding strategy to determine the value of the binary variable based on the closeness of the real number solution to 0 or 1. An adjustable rounding threshold parameter is introduced. When the real number solution is greater than the rounding threshold, the corresponding binary variable is set to 1, otherwise it is set to 0. The selection of the rounding threshold requires a balance between the connectivity of the network and the link utilization. The larger the rounding threshold, the more links are established and the stronger the network connectivity, but it may cause a decrease in link utilization; the smaller the rounding threshold, the higher the link utilization, but it may affect the connectivity of the network. This application selects the optimal threshold that takes into account both connectivity and utilization by performing a sensitivity analysis on the rounding threshold.
[0134] The network topology obtained by deterministic rounding is a 0-1 feasible solution, but not necessarily the optimal solution. To further optimize the network topology, this application embeds a local search strategy based on the rounded solution. Local search attempts to find a higher-quality solution by searching within the neighborhood of the current solution to improve the current solution.
[0135] To perform local search, this application needs to define the neighborhood of the current solution. An intuitive neighborhood definition is the new solution obtained by changing the value of a binary variable in the current solution (from 0 to 1, or from 1 to 0). This is equivalent to adding or removing a link based on the current network topology. The size of the neighborhood is proportional to the total number of potential links in the network.
[0136] In each iteration, this application randomly selects a candidate solution from the neighborhood of the current solution and evaluates its objective function value. If the candidate solution's objective function value is better than the current solution, the candidate solution is accepted as the new current solution; otherwise, the candidate solution is rejected and the current solution is retained. This acceptance criterion is called a strict improvement criterion, and only solutions with strictly better quality than the current solution are accepted.
[0137] To prevent local searches from falling into a loop, this application introduces a taboo strategy. Several recently visited solutions are added to a taboo table, and these solutions will not be visited again within the specified taboo period. The length of the taboo period depends on the scale of the problem and the characteristics of the solution. When a candidate solution is better than the current solution but is in the taboo table, this application considers whether to accept the candidate solution. If the candidate solution is better than the optimal solution found so far, the candidate solution is accepted; otherwise, the candidate solution is rejected. This criterion is called the global optimality criterion, which allows the search process to occasionally accept non-improved solutions to escape the local optimum.
[0138] The application repeats the above iterative process until a termination condition is met. Common termination conditions include: failure to improve the current solution after several consecutive iterations, or reaching a preset maximum number of iterations.
[0139] Based on the optimal networking topology obtained through local search, this application generates a list of candidate networking devices. This list contains the nodes that make up the optimal networking topology. This list provides important input and basis for subsequent networking decisions.
[0140] In an optional embodiment,
[0141] The network role allocation scheme is obtained based on the pre-trained long short-term memory network model, including:
[0142] Constructing a long short-term memory network model for network role allocation, wherein the long short-term memory network model for network role allocation adopts an encoder-decoder structure. The encoder is composed of multiple long short-term memory layers in a cascade manner, and is used to extract the temporal correlation features contained in the network role feature vector to obtain a semantic encoding vector. The decoder is composed of multiple long short-term memory layers in a cascade manner, and recursively generates a network role allocation scheme using the semantic encoding vector as the initial state.
[0143] A federated learning framework is used to train a long short-term memory network model for networking role assignment, wherein each three-in-one terminal device in the candidate networking device list trains the long short-term memory network model for networking role assignment based on local data. A reinforcement learning module is used to use network throughput, latency, and reliability as immediate rewards. Based on the difference between the currently generated networking role assignment solution and the optimal solution and the performance feedback after the networking role assignment solution is run in a network simulation environment, the training objective and gradient direction of the long short-term memory network model for networking role assignment are adjusted to obtain local model parameters.
[0144] The local model parameters are uploaded to the central server through an encrypted aggregation mechanism. The central server aggregates the uploaded local model parameters to obtain a global model, and distributes the global model to each three-in-one terminal device. The parameter update of the networking role allocation long and short-term memory network model is achieved through multiple rounds of communication iterations.
[0145] For example, this application proposes a pre-trained long short-term memory network model for network role allocation, which is used to automatically generate network role allocation solutions. This model uses an encoder-decoder structure, implements distributed training through a federated learning framework, and utilizes an attention mechanism to capture correlation features between different terminal devices, improving the accuracy of role allocation.
[0146] This application constructs a long short-term memory network model for network role allocation to achieve the mapping from network role feature vectors to network role allocation sequences. The model adopts an encoder-decoder structure and consists of two parts: an encoder and a decoder.
[0147] The encoder is composed of multiple long and short-term memory layers in a cascaded manner, which is used to extract the temporal correlation features contained in the network role feature vector. This application inputs the network role feature vector into the encoder, and uses a gating mechanism to achieve selective forgetting and memory of the input sequence, capturing the long-range dependencies in the feature vector. The hidden state of the encoder at the last time step is used as a semantic encoding vector, which characterizes the semantic representation of the input feature sequence.
[0148] The decoder is similarly constructed from multiple cascaded long and short-term memory layers, using the semantic encoding vector as its initial state to recursively generate a network role assignment sequence. At each time step, the decoder predicts the next terminal device's network role based on the current hidden state, attention aggregation features, and the generated role assignment history. The decoder is trained using a teacher forcing mechanism. During the training phase, the decoder inputs the actual role assignment sequence, while during the inference phase, the role predicted at the previous time step is used as the input for the current time step.
[0149] To fully leverage local data collected by different terminal devices and improve the model's generalization performance, this application uses a federated learning framework to perform distributed training on the network role allocation long short-term memory network model. Federated learning allows terminal devices to train the model locally using private data without uploading the original data to a central server, effectively protecting data privacy.
[0150] Each three-in-one terminal device in the candidate networking device list trains the long short-term memory network model for networking role allocation based on locally collected data. In order to guide the model to learn the optimal role allocation strategy, this application introduces a reinforcement learning module. Network throughput, latency, and reliability are used as immediate rewards to reflect the pros and cons of the currently generated role allocation scheme. This application adjusts the training objectives and gradient directions of the model based on the difference between the currently generated networking role allocation scheme and the optimal scheme, as well as the performance feedback after the role allocation scheme runs in a network simulation environment. By minimizing the difference between the long-term cumulative rewards and the actual role allocation, the model learns to generate the optimal role allocation sequence.
[0151] After each round of local training, the terminal device encrypts the local model parameters using homomorphic encryption and uploads them to the central server. The central server aggregates the local parameters uploaded by multiple terminal devices in the ciphertext space to obtain the ciphertext of the global model parameters. Due to the characteristics of homomorphic encryption, the aggregated parameter ciphertext is equivalent to the aggregated mean of the local parameter plaintext after decryption, thus achieving global model parameter updates.
[0152] The central server distributes the updated global model parameters to each terminal device, which serve as the initial parameters for the next round of local training. Through multiple rounds of communication iterations, the local and global models are continuously updated, ultimately resulting in a high-performance networking role allocation model. This federated learning framework protects data privacy while enabling collaborative model training and improving model generalization performance.
[0153] After the network role allocation long-term and short-term memory network model training is completed, the application inputs the network role feature vector into the model to start the generation process of the network role allocation sequence. In order to comprehensively consider the correlation characteristics between different terminal devices when allocating roles, the application introduces an attention mechanism.
[0154] At each time step in the generated networking role assignment sequence, this application calculates the association weight between the target terminal device of the current role to be assigned and the other terminal devices in the candidate networking device list. The association weight describes the correlation and complementarity between different terminal devices, providing prior knowledge for role assignment. This application calculates the association weight between devices from three dimensions:
[0155] Geographical similarity: Terminal devices with close geographical locations generally have greater synergy potential, which can be measured by indicators such as the distance between devices and the density of devices in the same area.
[0156] Link quality similarity: Link quality is an important factor affecting the collaborative effectiveness between devices, including indicators such as channel gain, interference level, and signal-to-noise ratio.
[0157] Matching degree between networking requirements and service capabilities: This method comprehensively considers the networking requirements of the target terminal device (such as service type, service level, etc.) and the service capabilities of other terminal devices (such as computing resources, cache resources, energy margin, etc.), and calculates the degree of matching between the two.
[0158] This application combines the indicators of the above three dimensions through weighted summation to obtain the association weight between the target terminal device and other terminal devices. The larger the association weight, the greater the synergy potential of the two terminal devices.
[0159] This application uses association weights as coefficients for aggregating the attribute features of other terminal devices in the candidate networking device list, and achieves information fusion between devices through an attention mechanism. The attribute features of the current target terminal device and each device in the candidate device list are multiplied by the corresponding association weights, and then the weighted features of all devices are summed to obtain the attention aggregation feature vector. This vector integrates the association information of the current target device and other devices, providing a more comprehensive decision basis for decoding roles.
[0160] At each time step, this application inputs the attention aggregation feature vector, semantic encoding vector, and generated role assignment history into the decoder to predict the networking role of the current target terminal device. Based on the current hidden state, the decoder generates a probability distribution of networking roles through a softmax layer and selects the role with the highest probability as the predicted role for the current device. Through recursive decoding, a complete network role assignment sequence is generated. The decoding process fully utilizes the correlation features between devices and the temporal dependencies of role assignments, making the generated role assignment solution more accurate and efficient.
[0161] In summary, this application proposes a pre-trained long short-term memory network model for networking role allocation, constructs a long short-term memory network model for networking role allocation, introduces an encoder-decoder structure, and realizes end-to-end mapping from networking role feature vectors to role allocation sequences; uses a federated learning framework to perform distributed training on the model, while protecting data privacy and improving the generalization performance of the model; captures the correlation features between terminal devices based on the attention mechanism, and integrates multi-dimensional information such as device attributes, location, and links to improve the accuracy of role decoding.
[0162] The pre-training paradigm gives the model powerful semantic understanding and sequence generation capabilities, enabling it to fully tap the prior knowledge contained in the networking role feature vectors and quickly generate high-quality networking role allocation plans.
[0163] Figure 2 FIG. 1 is a schematic diagram of the structure of a three-in-one terminal control system capable of intelligent networking according to an embodiment of the present invention. Figure 2 As shown, the system includes:
[0164] The first unit is configured to enable the three-in-one terminal device to broadcast a capability broadcast frame containing its own device identification, device capabilities, and current working status through the wireless communication module, monitor the capability broadcast frames broadcast by other three-in-one terminal devices in the environment, and parse and obtain the device identification, device capabilities, and current working status of the other three-in-one terminal devices; the three-in-one terminal device merges its own device identification, device capabilities, and current working status with the parsed device identification, device capabilities, and current working status of the other three-in-one terminal devices to generate a networking feature vector representing the current status of each three-in-one terminal device;
[0165] The second unit is used for the three-in-one terminal device to input the networking feature vector into a pre-trained networking utility evaluation neural network model, and in combination with the preset networking rules and performance optimization objective function, calculate the networking utility value matrix between each three-in-one terminal device through the networking utility evaluation neural network model, and solve the 0-1 integer programming model according to the networking utility value matrix to obtain the optimal networking topology as a candidate networking device list. The 0-1 integer programming model takes the networking utility value matrix as input, maximizes the network throughput as the goal, and is subject to node degree constraints, connectivity constraints, and link capacity constraints as conditions; based on the pre-trained networking role allocation long short-term memory network model, a networking role allocation scheme is obtained, and the three-in-one terminal device sends a networking invitation to each three-in-one terminal device in the candidate networking device list. The networking invitation carries the device identification of the three-in-one terminal device and the networking role allocation scheme;
[0166] The third unit is used to receive feedback information from other three-in-one terminal devices in the candidate networking device list regarding the networking invitation. If the feedback information is that the networking invitation is accepted and the networking role allocation plan is approved, the three-in-one terminal device will be added to the formal networking list until the number of three-in-one terminal devices in the formal networking device list reaches a preset networking scale threshold; based on the networking role assigned to each three-in-one terminal device in the formal networking device list, a point-to-point networking communication link is established with each three-in-one terminal device through the wireless communication module to form an intelligent network with a star topology structure with the three-in-one terminal device as the central node.
[0167] According to a third aspect of the embodiments of the present invention,
[0168] An electronic device is provided, comprising:
[0169] processor;
[0170] a memory for storing processor-executable instructions;
[0171] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0172] According to a fourth aspect of the embodiments of the present invention,
[0173] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described above is implemented.
[0174] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0175] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. Three-in-one terminal control method with intelligent networking, It is characterized in that include: The three-in-one terminal device broadcasts a capability broadcast frame including its own device identification, device capabilities and current working status through the wireless communication module, listens to the capability broadcast frames broadcast by other three-in-one terminal devices in the environment, and parses and obtains the device identification, device capabilities and current working status of other three-in-one terminal devices; The three-in-one terminal device combines its own device identification, device capability and current working status with the device identification, device capability and current working status of other three-in-one terminal devices obtained through analysis to generate a networking feature vector representing the current status of each three-in-one terminal device; The three-in-one terminal device inputs the networking feature vector into the pre-trained networking utility evaluation neural network model, and calculates the networking utility value matrix between each three-in-one terminal device through the networking utility evaluation neural network model in combination with the preset networking rules and performance optimization objective function. The 0-1 integer programming model is solved according to the networking utility value matrix to obtain the optimal networking topology as the candidate networking device list. The 0-1 integer programming model takes the networking utility value matrix as input, takes the maximization of network throughput as the goal, and takes the node degree constraint, connectivity constraint and link capacity constraint as conditions; A networking role allocation scheme is obtained based on a pre-trained long short-term memory network model for networking role allocation, and the three-in-one terminal device sends a networking invitation to each three-in-one terminal device in the candidate networking device list, wherein the networking invitation carries a device identifier of the three-in-one terminal device and a networking role allocation scheme; Receive feedback information from other three-in-one terminal devices in the candidate networking device list regarding the networking invitation. If the feedback information is to accept the networking invitation and approve the networking role allocation plan, add the three-in-one terminal device to the formal networking device list until the number of three-in-one terminal devices in the formal networking device list reaches a preset networking scale threshold; Based on the networking role assigned to each three-in-one terminal device in the official networking device list, a point-to-point networking communication link is established with each three-in-one terminal device through the wireless communication module, forming an intelligent network with a star topology structure with the three-in-one terminal device as the central node.
2. The method according to claim 1, It is characterized in that The three-in-one terminal device combines its own device identification, device capabilities, and current working status with the device identification, device capabilities, and current working status of other three-in-one terminal devices obtained through analysis to generate a networking feature vector representing the current status of each three-in-one terminal device, including: For each three-in-one terminal device, extract its device identification, device capability and current working status, perform unique-hot encoding on the device identification, build a multi-layer perceptron network for the device capability and the current working status respectively, and map the device identification, device capability and current working status to the preset embedding space through the feature embedding layer of the network to obtain the device identification vector, device capability embedding vector and current working status embedding vector; The device identification vector, device capability embedding vector and current working state embedding vector are concatenated along the feature dimension to form the state feature vector of the three-in-one terminal device. The device identification vector, device capability embedding vector and current working state embedding vector are input into three independent attention aggregation layers respectively. The vectors are weighted summed by the learned attention weights to obtain the attention-enhanced state feature vector. The above vectorization representation process is repeated for all three-in-one terminal devices to obtain a set of attention-enhanced state feature vectors. Each attention-enhanced state feature vector is used as a node of the graph, and the communication links between devices are used as edges of the graph. The attention weights between nodes are calculated through a multi-head attention mechanism. The graph attention aggregation process is iterated multiple times to model high-order neighbor relationships and obtain a graph attention network. Based on the graph attention network, a networking feature vector representing the current state of each three-in-one terminal device is generated.
3. The method according to claim 2, It is characterized in that Based on the graph attention network, the networking feature vectors representing the current status of each three-in-one terminal device are obtained, including: The updated state feature vectors output by the graph attention network are stacked vertically to form a second state feature matrix, and the state feature vectors of the three-in-one terminal device are converted into the first state feature matrix; the first state feature matrix and the second state feature matrix are respectively input into two independent multi-head self-attention layers in the Transformer attention model, and the multi-head self-attention layer includes multiple parallel scaled dot product attention heads. Each attention head performs a linear transformation on the first state feature matrix and the second state feature matrix to obtain a query matrix, a key matrix and a value matrix. The similarity between the query matrix and the key matrix is calculated through the scaled dot product attention mechanism to obtain the attention distribution. The value matrix is weighted and summed according to the attention distribution to obtain the output of the attention head. The outputs of multiple attention heads are spliced and linearly transformed to obtain the attention-enhanced representation of the state of itself and the state of other devices; Input the enhanced attention representation of its own state and other device states into the cross attention layer of the Transformer attention model. The cross attention layer performs a linear transformation on the enhanced attention representation of its own state to obtain a query matrix, and performs a linear transformation on the enhanced attention representation of other device states to obtain a key matrix and a value matrix. The similarity between the query matrix and the key matrix is calculated through the scaled dot product attention mechanism to obtain the attention distribution. The value matrix is weighted and summed according to the attention distribution. Each position in the self-state representation is fused with the relevant positions in the other device state representation to obtain the output of the cross attention layer. The output of the cross-attention layer is passed through two feedforward neural networks in succession. The first feedforward neural network includes a fully connected layer and a Gaussian error linear unit activation function. The output of the cross-attention layer is nonlinearly transformed. The second feedforward neural network includes a fully connected layer and a linear rectification function activation function. A residual connection is used between the two feedforward neural networks. The output of the first feedforward neural network is added to the output of the cross-attention layer as the input of the second feedforward neural network. The outputs of the two feedforward neural networks are both layer-normalized to obtain the final output of the feedforward neural network. The final output of the feedforward neural network is mapped to a feature space of a preset dimension through a linear transformation layer, and then each element of the final output of the feedforward neural network is mapped to between -1 and 1 through a hyperbolic tangent activation function to obtain a networking feature vector representing the current state of each three-in-one terminal device.
4. The method according to claim 1, It is characterized in that The three-in-one terminal device inputs the networking feature vector into the pre-trained networking utility evaluation neural network model, and calculates the networking utility value matrix between each three-in-one terminal device through the networking utility evaluation neural network model in combination with the preset networking rules and performance optimization objective function, including: The initial networking state feature vectors of all three-in-one terminal devices are constructed into an undirected weighted graph, where each vertex in the undirected weighted graph represents a three-in-one terminal device, the feature of the vertex is the networking state feature vector of the corresponding three-in-one terminal device, and the weight of the edge is the link quality metric between two three-in-one terminal devices, where the link quality is determined based on signal strength, interference level and channel capacity; Based on the constructed undirected weighted graph, a multi-layer graph convolutional neural network is used to update and aggregate the vertex features in the undirected weighted graph. Each layer in the graph convolutional neural network corresponds to a graph convolution operation. The graph convolution operation linearly transforms the vertex features through the normalized adjacency matrix and normalized degree matrix of the vertex, and then introduces nonlinearity through the activation function. The multi-layer graph convolutional neural network aggregates the neighborhood information of the vertex layer by layer by stacking multiple graph convolutional layers to obtain the high-order interaction relationship between the vertices; the vertex feature vectors output by the last layer of the graph convolutional neural network are extracted and input into a fully connected layer respectively. The fully connected layer maps the vertex feature vectors to the Q value space. The dimension of the Q value space is equal to the size of the networking action space. Each dimension of the Q value space represents the long-term utility estimate of selecting the corresponding networking action. The networking action space is generated according to the preset networking rules. Each networking action represents the establishment or disconnection of a connection with one or more other devices, and the corresponding power allocation, channel selection and routing strategies are attached; A networking utility evaluation neural network model is constructed. For a given networking state feature vector, the trained networking utility evaluation neural network model is used to forward propagate and calculate the Q value estimate. The networking action is selected based on the Q value estimate using the flexible maximum exploration strategy. The flexible maximum exploration strategy randomly samples the networking actions with the exponential function of the Q value estimate as the weight. The networking decision results based on all three-in-one terminal devices are summarized to obtain the networking utility value matrix. The elements in the networking utility value matrix represent the estimated values of the networking utility between two terminal devices.
5. The method according to claim 4, It is characterized in that Construct a neural network model for network utility evaluation, including: The architecture of the network utility evaluation neural network model is constructed, wherein a graph convolutional neural network and a deep Q network are combined, wherein the graph convolutional neural network extracts features and represents graph structure data by defining the operation of the convolution kernel on the graph domain, and the output of the graph convolutional neural network is used as the input of the deep Q network; the deep Q network adopts an adversarial architecture to decompose the Q value function into two parts: a state value function and an advantage function, wherein the state value function estimates the value of the state, and the advantage function estimates the advantage of each action relative to the average action; The networking utility evaluation neural network model is optimized by a deep Q learning algorithm, an ε-greedy exploration strategy is adopted to select networking actions, the action with the largest current Q value estimate is selected with a probability of 1-ε, and an action is randomly selected with a probability of ε; the intelligent agent executes the selected networking action to obtain an immediate reward and the next networking state, wherein the immediate reward is generated weightedly through an attention mechanism based on throughput, latency, energy consumption, Jain fairness index and proportional fairness metric; the Q value estimate is iteratively updated using the Bellman equation, and the Q value target is equal to the sum of the immediate reward and the discount factor of the next state Q value estimate; The mean square error loss function is used to measure the difference between the Q-value estimate and the Q-value target, and the neural network parameters are adjusted through the stochastic gradient descent algorithm to minimize the loss function; the target network is introduced, and the parameters of the target network track the online network parameters with a preset lag time to calculate the Q-value target; an experience replay buffer is constructed to store state transition samples in a first-in-first-out manner, and small batch training samples are randomly sampled from the replay buffer; the L2 regularization term is introduced in the loss function, and the weight parameters of the neural network are penalized by the L2 norm; the asynchronous advantage actor-critic algorithm is used for distributed training, and multiple agents interact with the environment independently to learn policy functions and value functions, and parameters are synchronized between agents by sharing neural network parameters.
6. The method according to claim 1, It is characterized in that According to the network utility value matrix, the 0-1 integer programming model is solved to obtain the optimal network topology as the candidate network device list, including: Constructing a 0-1 integer programming model, the 0-1 integer programming model includes decision variables, objective functions and constraints, wherein the decision variables include binary link establishment variables and non-negative real flow variables, the binary link establishment variables indicate whether a direct link is established between three-in-one terminal devices, the non-negative real flow variables indicate the data transmission rate between the three-in-one terminal devices, the objective function is defined as maximizing the network throughput, the network throughput is obtained by accumulating the product of the binary link establishment variable and the corresponding non-negative real flow variable on all three-in-one terminal devices, and the networking utility value matrix is used as the weight matrix during the accumulative summation; The constraint conditions include node degree constraint, connectivity constraint and capacity constraint. The node degree constraint is used to ensure that the number of direct links established by a single three-in-one terminal device does not exceed its maximum degree limit. The connectivity constraint establishes a mathematical model based on the network flow conservation law to ensure that there is at least one end-to-end path between any three-in-one terminal devices in the network. The capacity constraint limits the flow upper limit of each direct link, and the flow upper limit is represented by the product of the binary link establishment variable corresponding to the direct link and the maximum transmission rate of the link. A heuristic algorithm is used to solve the 0-1 integer programming model to obtain an approximately optimal networking topology and traffic distribution solution. The heuristic algorithm relaxes the value range of the decision variable from a discrete 0-1 to a continuous real number interval through linear relaxation, and converts it into a linear programming problem for solution. The optimal solution of the linear programming problem is used as an upper bound of the original 0-1 integer programming problem. The real number solution of the linear programming problem is mapped back to a 0-1 feasible solution through a deterministic rounding strategy. The deterministic rounding strategy determines the value of the binary variable according to the difference between the real number solution and 0 or 1; Based on the initial 0-1 feasible solution obtained by the deterministic rounding strategy, a local search strategy is embedded to further optimize the solution. The local search strategy searches within the field to find new solutions that are better than the current solution. During the search process, strictly improved solutions are accepted and non-improved solutions are rejected. The search is iterated multiple times until the quality of the solution reaches the convergence condition. According to the network topology obtained by the solution, a list of candidate networking devices is determined. The list of candidate networking devices is the constituent nodes of the optimal networking topology. The list of candidate networking devices includes the identification, location coordinates, and node attributes of the three-in-one terminal device.
7. The method according to claim 1, It is characterized in that The networking role allocation scheme is obtained based on the pre-trained long short-term memory network model for networking role allocation, including: Constructing a long short-term memory network model for network role allocation, wherein the long short-term memory network model for network role allocation adopts an encoder-decoder structure, wherein the encoder is composed of a plurality of long short-term memory layers in a cascade manner, and is used to extract the temporal correlation features contained in the network role feature vector to obtain a semantic coding vector, and the decoder is composed of a plurality of long short-term memory layers in a cascade manner, and recursively generates a network role allocation scheme with the semantic coding vector as an initial state; A federated learning framework is used to train a long short-term memory network model for networking role allocation, wherein each three-in-one terminal device in the candidate networking device list trains the long short-term memory network model for networking role allocation based on local data, and a reinforcement learning module is used to take network throughput, latency and reliability as immediate rewards, and based on the difference between the currently generated networking role allocation scheme and the optimal scheme and the performance feedback after the networking role allocation scheme is run in a network simulation environment, the training target and gradient direction of the long short-term memory network model for networking role allocation are adjusted to obtain local model parameters; The local model parameters are uploaded to the central server through an encrypted aggregation mechanism. The central server aggregates the uploaded local model parameters to obtain a global model, and distributes the global model to each three-in-one terminal device. The parameter update of the networking role allocation long and short-term memory network model is achieved through multiple rounds of communication iterations.
8. A three-in-one terminal control system capable of intelligent networking, used to implement the method described in any one of claims 1 to 7. It is characterized in that include: The first unit is used for the three-in-one terminal device to broadcast a capability broadcast frame including its own device identification, device capabilities and current working status through the wireless communication module, monitor the capability broadcast frames broadcast by other three-in-one terminal devices in the environment, and parse and obtain the device identification, device capabilities and current working status of other three-in-one terminal devices; The three-in-one terminal device combines its own device identification, device capability and current working status with the device identification, device capability and current working status of other three-in-one terminal devices obtained through analysis to generate a networking feature vector representing the current status of each three-in-one terminal device; The second unit is used for the three-in-one terminal device to input the networking feature vector into the pre-trained networking utility evaluation neural network model, and in combination with the preset networking rules and performance optimization objective function, the networking utility value matrix between each three-in-one terminal device is calculated through the networking utility evaluation neural network model, and the optimal networking topology is obtained as the candidate networking device list by solving the 0-1 integer programming model according to the networking utility value matrix. The 0-1 integer programming model takes the networking utility value matrix as input, takes the maximization of network throughput as the goal, and takes the node degree constraint, connectivity constraint and link capacity constraint as conditions; A networking role allocation scheme is obtained based on a pre-trained long short-term memory network model for networking role allocation, and the three-in-one terminal device sends a networking invitation to each three-in-one terminal device in the candidate networking device list, wherein the networking invitation carries a device identifier of the three-in-one terminal device and a networking role allocation scheme; The third unit is used to receive feedback information from other three-in-one terminal devices in the candidate networking device list regarding the networking invitation, and if the feedback information is to accept the networking invitation and approve the networking role allocation plan, then add the three-in-one terminal device to the formal networking list until the number of three-in-one terminal devices in the formal networking device list reaches a preset networking scale threshold; Based on the networking role assigned to each three-in-one terminal device in the official networking device list, a point-to-point networking communication link is established with each three-in-one terminal device through the wireless communication module, forming an intelligent network with a star topology structure with the three-in-one terminal device as the central node.
9. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 7.
10. A computer-readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
