A communication system and method based on temporary communication network

By establishing a node topology graph in the wireless temporary communication network and using the Q-learning algorithm, the problem of quickly determining the data forwarding path is solved, efficient data transmission and communication quality improvement are achieved, and it has good application prospects.

CN118488457BActive Publication Date: 2024-10-11BAIYIN POWER SUPPLY COMPANY STATE GRID GANSU ELECTRIC POWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410932051.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-11
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

In a wireless temporary communication network, how to quickly determine the path for each temporary communication node to forward data to the temporary communication base station.

Method used

The node position coordinates are obtained through the position acquisition module. The node topology module establishes a node topology diagram based on the preset optimal wireless communication distance. Combined with the reinforcement learning module, the optimal Q matrix is ​​established based on the Q-learning algorithm to control each temporary communication node to temporarily communicate. The base station sends data.

Benefits of technology

It achieves the optimal selection of data forwarding paths in wireless communication networks, improves communication efficiency and quality, and the process can be completed through machine self-learning without manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118488457B_ABST
    Figure CN118488457B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of wireless communication technology, and specifically discloses a communication system and method based on a temporary communication network, wherein the system includes a position acquisition module, a node topology module, a reinforcement learning module and a communication control module, which first obtains the position coordinates of each temporary communication node and the position coordinates of a temporary communication base station, and then establishes a node topology map, and then establishes an optimal Q matrix based on the node topology map based on the Q-learning algorithm, and controls each temporary communication node to send data to the temporary communication base station. Compared with the prior art, the present invention, on the one hand, realizes the state description of the temporary communication network, and on the other hand, based on the node topology map, further uses reinforcement learning to analyze the optimal path for each temporary communication node to forward data to the temporary communication base station, thereby solving the problems of the prior art. Moreover, the entire process can be completed through machine self-learning, without the need to manually sort out and input the topology results of the temporary communication network, and has a good application prospect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless communication, and in particular to a communication system and method based on a temporary communication network. Background Art

[0002] A wireless temporary communication network is a temporary wireless communication network used to achieve temporary communication connections and data transmission in a specific occasion or area. This type of network is usually established when temporary demand is large or the existing network cannot meet the demand, such as temporary event sites, emergency rescue occasions, or large-scale event gatherings. The characteristics of a wireless temporary communication network are flexible and fast deployment, and the ability to expand or reduce the network size according to demand, providing a convenient solution for temporary communications.

[0003] In this network, each temporary communication node plays an important role by collecting data from surrounding devices and forwarding it to the temporary communication base station to achieve data aggregation and transmission. This node-to-base station data transmission mode greatly improves the efficiency of data transmission and ensures the smooth flow and effective transmission of information in the network. In this way, the wireless temporary communication network can better adapt to changes in temporary needs, improve the stability and reliability of the overall network, and provide continuous support for temporary communications.

[0004] However, the actual deployment status of wireless temporary communication networks is highly uncertain. Under this randomness, how to quickly determine the path for each temporary communication node to forward data to the temporary communication base station is a problem that people hope to solve. Summary of the invention

[0005] The purpose of the present invention is to provide a communication system and method based on a temporary communication network to solve the following technical problems:

[0006] In a wireless temporary communication network, how to quickly determine the path for each temporary communication node to forward data to a temporary communication base station.

[0007] The purpose of the present invention can be achieved through the following technical solutions:

[0008] A communication system based on a temporary communication network, comprising a plurality of temporary communication nodes and a temporary communication base station, the communication system based on the temporary communication network further comprising:

[0009] A location acquisition module, used to acquire the location coordinates of each temporary communication node and the location coordinates of the temporary communication base station;

[0010] A node topology module is used to obtain a preset optimal wireless communication distance, and to establish a node topology map based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes, and the location coordinates of a temporary communication base station, wherein the nodes in the node topology map correspond to temporary communication nodes and temporary communication base stations, respectively, and the edges in the node topology map represent data forwarding relationships between different nodes;

[0011] A reinforcement learning module is used to establish an optimal Q matrix based on the Q-learning algorithm according to the node topology graph. The optimal Q matrix is ​​used to decide the forwarding path when each temporary communication node forwards data to the temporary communication base station;

[0012] The communication control module is used to control each temporary communication node to send data to the temporary communication base station based on the optimal Q matrix.

[0013] As a further solution of the present invention: the obtaining of the preset optimal wireless communication distance, and establishing a node topology map based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes and the location coordinates of the temporary communication base station, include:

[0014] According to the position coordinates of each temporary communication node, the distance between each two temporary communication nodes is calculated to obtain a distance set;

[0015] Calculate the proportion of distances in the distance set that are less than a preset optimal wireless communication distance to obtain a first proportion value;

[0016] If the first ratio value exceeds the preset ratio threshold, the location coordinates of the temporary communication node and the temporary communication base station are used as graph nodes, and a node topology graph is established based on the distance in the distance set that is less than the preset optimal wireless communication distance.

[0017] As a further solution of the present invention: the location coordinates of the temporary communication node and the temporary communication base station are used as graph nodes, and a node topology graph is established based on the distance in the distance set that is less than the preset optimal wireless communication distance, including:

[0018] Establish corresponding graph nodes for each temporary communication node and temporary communication base station respectively;

[0019] It is determined whether the corresponding distance between each two graph nodes in the distance set is less than the preset optimal wireless communication distance. If so, an edge is established between the two graph nodes whose corresponding distance is less than the preset optimal wireless communication distance, and finally a node topology graph is obtained.

[0020] As a further solution of the present invention: the preset ratio threshold satisfies the following conditions:

[0021] ;

[0022] Wherein, Tpre is a preset ratio threshold, and n is the total number of the temporary communication nodes and temporary communication base stations.

[0023] As a further solution of the present invention: the optimal Q matrix is ​​established based on the node topology graph and the Q-learning algorithm, including:

[0024] Step 1: Based on the node topology map, an initial Q matrix is ​​established to take the node corresponding to the temporary communication base station as the target state, wherein the horizontal axis of the initial Q matrix corresponds to each node in the node topology map, which is used to represent a state, and the vertical axis of the initial Q matrix also corresponds to each node in the node topology map, which is used to represent an action;

[0025] Step 2: Randomly select a state as the current state based on the initial Q matrix;

[0026] Step 3: Based on the current state, determine an action according to the preset selection rules to obtain the target action;

[0027] Step 4: Get the target reward value according to the element value corresponding to the target action in the initial Q matrix;

[0028] Step 5: Update the initial Q matrix according to the target reward value, and update the current state according to the target action;

[0029] Step 6: Repeat steps 3 to 5 until the current state is the target state;

[0030] Step 7: Repeat steps 2 to 6, and use the last updated initial Q matrix as the optimal Q matrix.

[0031] As a further solution of the present invention: in the initial Q matrix in step one, if the node corresponding to the horizontal coordinate of an element is connected to the node corresponding to its vertical coordinate, then the element value is 0, otherwise the element is a preset reward value, and the preset reward value is a negative number; the reward value for reaching the target state is a positive number, and the reward value for reaching the target state is n times the absolute value of the preset reward value, where n is the total number of multiple temporary communication nodes and temporary communication base stations.

[0032] As a further solution of the present invention: the preset selection rule includes:

[0033] Get the row of elements corresponding to the current state in the initial Q matrix and get the target element;

[0034] Based on the preset greedy rate, a non-negative number is selected from the target element, and the action corresponding to the ordinate corresponding to the non-negative number is taken as the target action.

[0035] The present invention further provides a communication method based on a temporary communication network, which is applied to any of the above communication systems based on a temporary communication network, and is characterized in that the communication method based on a temporary communication network includes:

[0036] Obtaining the location coordinates of each temporary communication node and the location coordinates of the temporary communication base station;

[0037] Obtain a preset optimal wireless communication distance, and establish a node topology graph based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes, and the location coordinates of a temporary communication base station, wherein the nodes in the node topology graph correspond to the temporary communication nodes and the temporary communication base station, respectively, and the edges in the node topology graph represent the data forwarding relationship between different nodes;

[0038] According to the node topology graph, the optimal Q matrix is ​​established based on the Q-learning algorithm. The optimal Q matrix is ​​used to decide the forwarding path when each temporary communication node forwards data to the temporary communication base station.

[0039] Based on the optimal Q matrix, each temporary communication node is controlled to send data to the temporary communication base station.

[0040] Beneficial effects of the present invention:

[0041] The present invention provides a communication system and method based on a temporary communication network, wherein the system includes a position acquisition module, a node topology module, a reinforcement learning module and a communication control module, which first obtains the position coordinates of each temporary communication node and the position coordinates of a temporary communication base station, and then obtains a preset optimal wireless communication distance, and establishes a node topology map based on the preset optimal wireless communication distance, the position coordinates of multiple temporary communication nodes and the position coordinates of the temporary communication base station, and then establishes an optimal Q matrix based on the node topology map based on the Q-learning algorithm, and finally controls each temporary communication node to send data to the temporary communication base station based on the optimal Q matrix. Compared with the prior art, the present invention, on the one hand, virtually establishes a node topology map that can characterize the best wireless communication quality in multiple temporary communication nodes of wireless communication by presetting the optimal wireless communication distance, and realizes the state description of the temporary communication network, and on the other hand, further utilizes reinforcement learning, that is, Q-learning algorithm, on the basis of the node topology map to analyze the optimal path for each temporary communication node to forward data to the temporary communication base station, solving the problems of the prior art. And the whole process can be completed by machine self-learning, without the need to manually sort out and input the topology results of the temporary communication network, and has good ease of use and good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The present invention will be further described below in conjunction with the accompanying drawings.

[0043] Figure 1It is a structural schematic diagram of a communication system based on a temporary communication network of the present invention;

[0044] Figure 2 It is a method flow chart of the communication method based on the temporary communication network of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 creative work are within the scope of protection of the present invention.

[0046] See also Figure 1 As shown, the present invention is a communication system based on a temporary communication network, characterized in that it includes a plurality of temporary communication nodes and a temporary communication base station, and the communication system based on the temporary communication network also includes:

[0047] A location acquisition module 110, used to acquire the location coordinates of each temporary communication node and the location coordinates of the temporary communication base station;

[0048] The node topology module 120 is used to obtain a preset optimal wireless communication distance, and to establish a node topology map based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes, and the location coordinates of the temporary communication base station, wherein the nodes in the node topology map correspond to the temporary communication nodes and the temporary communication base station, respectively, and the edges in the node topology map represent the data forwarding relationship between different nodes;

[0049] A reinforcement learning module 130 is used to establish an optimal Q matrix based on a Q-learning algorithm according to the node topology graph, and the optimal Q matrix is ​​used to determine a forwarding path when each temporary communication node forwards data to a temporary communication base station;

[0050] The communication control module 140 is used to control each temporary communication node to send data to the temporary communication base station based on the optimal Q matrix.

[0051] In a temporary communication network, temporary communication nodes and temporary communication base stations can use different types of devices to realize their functions. Temporary communication nodes usually refer to portable wireless communication devices, such as smartphones, tablets or mobile communication devices, which have the ability to receive, process and transmit data. These devices can communicate and exchange data with other nodes through built-in wireless communication modules, such as Wi-Fi, Bluetooth or mobile networks, and play the role of data collection and transmission. Temporary communication base stations usually refer to devices with stronger signal coverage and data processing capabilities, such as wireless routers, repeaters or dedicated communication base station devices. Temporary communication base stations are responsible for receiving data from various temporary communication nodes, aggregating and processing the data, and transmitting it to the target device or other networks. By distinguishing the differences in functions and performance, temporary communication nodes and temporary communication base stations together constitute the infrastructure of the temporary communication network, realizing the effective transmission of data and the coordinated operation of the network.

[0052] In addition, the optimal wireless communication distance in the above process is a pre-known parameter, which represents a relatively stable and achievable communication distance between multiple temporary communication nodes. It can be obtained based on information such as the device model and signal transmission method in the actual application scenario.

[0053] In addition, the Q-learning algorithm in the above process is a reinforcement learning algorithm that aims to enable the agent to learn the optimal strategy by interacting with the environment to achieve the goal. The algorithm is based on the Q-value function, that is, the value function of the state-action pair, which is used to represent the cumulative reward that can be obtained by performing a specific action in a specific state. Q-learning gradually optimizes the behavior strategy of the agent by continuously updating the Q value, so that it can find the optimal strategy in the environment to obtain the maximum cumulative reward. In each interaction with the environment, the agent selects actions according to a certain strategy and observes the feedback from the environment, and then updates the corresponding Q value based on the feedback. Through repeated iterative learning and updating of the Q value, the Q-learning algorithm can eventually enable the agent to learn the optimal strategy and realize intelligent decision-making and behavior in an unknown environment. It can be understood that the terms such as Q matrix, state, action, etc. related to Q-learning are all prior art that can be understood by those skilled in the art, so this article will not explain too much.

[0054] Through this embodiment, the optimal path for each temporary communication node to forward data to the temporary communication base station can be finally obtained, and the total distance of the signal propagation in the air on this path is minimized. In this way, when the data is aggregated to the temporary communication base station, it is possible to control the data to the greatest extent, and errors such as jumps are not likely to occur, thereby ensuring communication efficiency and quality.

[0055] Compared with the prior art, the present invention, on the one hand, by presetting the optimal wireless communication distance, virtually establishes a node topology map that can characterize the optimal wireless communication quality in multiple temporary communication nodes of wireless communication, and realizes the state description of the temporary communication network. On the other hand, based on the node topology map, it further uses reinforcement learning, that is, Q-learning algorithm to analyze the optimal path for each temporary communication node to forward data to the temporary communication base station, solving the problems of the prior art. And the whole process can be completed by machine self-learning, without the need to manually sort out and input the topology results of the temporary communication network, it is easy to use and has a good application prospect.

[0056] Further, in a preferred embodiment, in the node topology module 120, the step of obtaining a preset optimal wireless communication distance and establishing a node topology map based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes, and the location coordinates of temporary communication base stations includes:

[0057] According to the position coordinates of each temporary communication node, the distance between each two temporary communication nodes is calculated to obtain a distance set;

[0058] Calculate the proportion of distances in the distance set that are less than a preset optimal wireless communication distance to obtain a first proportion value;

[0059] If the first ratio value exceeds the preset ratio threshold, the location coordinates of the temporary communication node and the temporary communication base station are used as graph nodes, and a node topology graph is established based on the distance in the distance set that is less than the preset optimal wireless communication distance.

[0060] Since multiple temporary communication nodes in this embodiment are wireless communication, the node topology map established in this embodiment is actually a virtual topology map. On the one hand, it can show the transmission state relationship of the temporary communication nodes and reflect the potential communication path of the temporary communication nodes. On the other hand, it also provides a data basis for the subsequent Q-learning algorithm. This embodiment assists in establishing a node topology map by presetting the optimal wireless communication distance. The optimal wireless communication distance refers to a communication distance that can ensure the quality of wireless communication. If the distance between two temporary communication nodes is less than the preset optimal wireless communication distance, it means that the two temporary communication nodes can have more reliable wireless communication, and the transmission data error rate is low at this time, and vice versa.

[0061] In this embodiment, the probability of whether a temporary communication network can establish a node topology map is measured by the first ratio value, that is, the first ratio represents the ratio of nodes in the wireless communication network that can communicate reliably. If the value is too low, it means that multiple temporary communication nodes are distributed far away. At this time, there are defects in the network distribution, which cannot meet the standard of establishing a node topology map, and it is also impossible to realize the function of forwarding data to a temporary communication base station, and manual intervention is required for processing. If the first ratio is high, it means that the temporary communication network has reached the standard of establishing a node topology map. At this time, the network can realize the function of forwarding data to a temporary communication base station, thereby performing functions such as data synchronization and data verification.

[0062] Further, in a preferred embodiment, the above step: taking the location coordinates of the temporary communication node and the temporary communication base station as graph nodes, and establishing a node topology graph based on the distance in the distance set that is less than the preset optimal wireless communication distance, specifically includes:

[0063] Establish corresponding graph nodes for each temporary communication node and temporary communication base station respectively;

[0064] It is determined whether the corresponding distance between each two graph nodes in the distance set is less than the preset optimal wireless communication distance. If so, an edge is established between the two graph nodes whose corresponding distance is less than the preset optimal wireless communication distance, and finally a node topology graph is obtained.

[0065] The node topology graph obtained through the above process ensures that each edge in the graph is a path that can carry out stable data transmission, so that the subsequent path determined by each temporary communication node to forward data to the temporary communication base station is optimal.

[0066] Furthermore, in a preferred embodiment, the preset ratio threshold satisfies the following conditions:

[0067] ;

[0068] Wherein, Tpre is a preset ratio threshold, and n is the total number of the temporary communication nodes and temporary communication base stations.

[0069] The above conditions ensure that each temporary communication node will be connected to ensure the integrity of the network. Because, assuming there are n temporary communication nodes and temporary communication base stations, then a graph formed by these n nodes has at most n(n-1) edges, and the edges of the minimum connected tree formed by n nodes are (n-1), so naturally the minimum value of the preset ratio threshold should be 1 / n, so that the established node topology can include all temporary communication nodes and temporary communication base stations, ensuring the integrity of the data.

[0070] Further, in a preferred embodiment, in the reinforcement learning module 130, the optimal Q matrix is ​​established based on the Q-learning algorithm according to the node topology graph, specifically including:

[0071] Step 1: Based on the node topology map, an initial Q matrix is ​​established to take the node corresponding to the temporary communication base station as the target state, wherein the horizontal axis of the initial Q matrix corresponds to each node in the node topology map, which is used to represent a state, and the vertical axis of the initial Q matrix also corresponds to each node in the node topology map, which is used to represent an action;

[0072] Step 2: Randomly select a state as the current state based on the initial Q matrix;

[0073] Step 3: Based on the current state, determine an action according to the preset selection rules to obtain the target action;

[0074] Step 4: Get the target reward value according to the element value corresponding to the target action in the initial Q matrix;

[0075] Step 5: Update the initial Q matrix according to the target reward value, and update the current state according to the target action;

[0076] Step 6: Repeat steps 3 to 5 until the current state is the target state;

[0077] Step 7: Repeat steps 2 to 6, and use the last updated initial Q matrix as the optimal Q matrix.

[0078] The above process realizes the process of finding the best path, that is, based on the optimal Q matrix finally obtained, the best forwarding path from any temporary communication node to the temporary communication base station can be obtained.

[0079] Specifically, in a preferred embodiment, in the initial Q matrix in step one, if the node corresponding to the horizontal coordinate of an element is connected to the node corresponding to its vertical coordinate, then the element value is 0, otherwise the element is a preset reward value, and the preset reward value is a negative number; the reward value for reaching the target state is a positive number, and the reward value for reaching the target state is n times the absolute value of the preset reward value, where n is the total number of multiple temporary communication nodes and temporary communication base stations.

[0080] Furthermore, the preset selection rules include:

[0081] Get the row of elements corresponding to the current state in the initial Q matrix and get the target element;

[0082] Based on the preset greedy rate, a non-negative number is selected from the target element, and the action corresponding to the ordinate corresponding to the non-negative number is taken as the target action.

[0083] The above content pre-sets the elements of the initial Q matrix so that the Q-learning algorithm learning process will only select the paths existing in the node topology graph, and will not select other paths that affect the algorithm convergence time, thereby improving the efficiency of the operation iteration and enabling people to obtain the optimal Q matrix faster.

[0084] Combination Figure 2 As shown, the present invention also provides a communication method based on a temporary communication network, which is applied to the above-mentioned communication system based on a temporary communication network. The communication method based on a temporary communication network includes:

[0085] S201, obtaining the location coordinates of each temporary communication node and the location coordinates of the temporary communication base station;

[0086] S202, obtaining a preset optimal wireless communication distance, and establishing a node topology map based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes, and the location coordinates of the temporary communication base station, wherein the nodes in the node topology map correspond to the temporary communication nodes and the temporary communication base station respectively, and the edges in the node topology map represent the data forwarding relationship between different nodes;

[0087] S203, according to the node topology diagram, based on the Q-learning algorithm, establish an optimal Q matrix, the optimal Q matrix is ​​used to decide the forwarding path when each temporary communication node forwards data to the temporary communication base station;

[0088] S204. Control each temporary communication node to send data to the temporary communication base station based on the optimal Q matrix.

[0089] The present invention provides a communication system and method based on a temporary communication network, wherein the system includes a position acquisition module, a node topology module, a reinforcement learning module and a communication control module, which first obtains the position coordinates of each temporary communication node and the position coordinates of a temporary communication base station, and then obtains a preset optimal wireless communication distance, and establishes a node topology map based on the preset optimal wireless communication distance, the position coordinates of multiple temporary communication nodes and the position coordinates of the temporary communication base station, and then establishes an optimal Q matrix based on the node topology map based on the Q-learning algorithm, and finally controls each temporary communication node to send data to the temporary communication base station based on the optimal Q matrix. Compared with the prior art, the present invention, on the one hand, virtually establishes a node topology map that can characterize the best wireless communication quality in multiple temporary communication nodes of wireless communication by presetting the optimal wireless communication distance, and realizes the state description of the temporary communication network, and on the other hand, further utilizes reinforcement learning, that is, Q-learning algorithm, on the basis of the node topology map to analyze the optimal path for each temporary communication node to forward data to the temporary communication base station, solving the problems of the prior art. And the whole process can be completed by machine self-learning, without the need to manually sort out and input the topology results of the temporary communication network, and has good ease of use and good application prospects.

[0090] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A communication system based on a temporary communication network, It is characterized in that Comprising a plurality of temporary communication nodes and temporary communication base stations, the communication system based on the temporary communication network further comprises: A location acquisition module, used to acquire the location coordinates of each temporary communication node and the location coordinates of the temporary communication base station; A node topology module is used to obtain a preset optimal wireless communication distance, and to establish a node topology map based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes, and the location coordinates of a temporary communication base station, wherein the nodes in the node topology map correspond to temporary communication nodes and temporary communication base stations, respectively, and the edges in the node topology map represent data forwarding relationships between different nodes; A reinforcement learning module is used to establish an optimal Q matrix based on the Q-learning algorithm according to the node topology graph. The optimal Q matrix is ​​used to decide the forwarding path when each temporary communication node forwards data to the temporary communication base station; A communication control module, used for controlling each temporary communication node to send data to a temporary communication base station based on an optimal Q matrix; The obtaining of the preset optimal wireless communication distance, and establishing a node topology map based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes, and the location coordinates of the temporary communication base station, includes: According to the position coordinates of each temporary communication node, the distance between each two temporary communication nodes is calculated to obtain a distance set; Calculate the proportion of distances in the distance set that are less than a preset optimal wireless communication distance to obtain a first proportion value; If the first ratio value exceeds a preset ratio threshold, a node topology graph is established based on the position coordinates of the temporary communication node and the temporary communication base station as graph nodes and based on the distances in the distance set that are less than a preset optimal wireless communication distance; The method of establishing an optimal Q matrix based on a Q-learning algorithm according to the node topology graph includes: Step 1: Based on the node topology map, an initial Q matrix is ​​established to take the node corresponding to the temporary communication base station as the target state, wherein the horizontal axis of the initial Q matrix corresponds to each node in the node topology map, which is used to represent a state, and the vertical axis of the initial Q matrix also corresponds to each node in the node topology map, which is used to represent an action; Step 2: Randomly select a state as the current state based on the initial Q matrix; Step 3: Based on the current state, determine an action according to the preset selection rules to obtain the target action; Step 4: Get the target reward value according to the element value corresponding to the target action in the initial Q matrix; Step 5: Update the initial Q matrix according to the target reward value, and update the current state according to the target action; Step 6: Repeat steps 3 to 5 until the current state is the target state; Step 7: Repeat steps 2 to 6, and use the last updated initial Q matrix as the optimal Q matrix.

2. The communication system based on the temporary communication network according to claim 1, It is characterized in that The method uses the position coordinates of the temporary communication node and the temporary communication base station as graph nodes, and establishes a node topology graph based on the distance in the distance set that is less than the preset optimal wireless communication distance, including: Establish corresponding graph nodes for each temporary communication node and temporary communication base station respectively; It is determined whether the corresponding distance between each two graph nodes in the distance set is less than the preset optimal wireless communication distance. If so, an edge is established between the two graph nodes whose corresponding distance is less than the preset optimal wireless communication distance, and finally a node topology graph is obtained.

3. The communication system based on the temporary communication network according to claim 1, It is characterized in that The preset ratio threshold meets the following conditions: ; Wherein, Tpre is a preset ratio threshold, and n is the total number of the temporary communication nodes and temporary communication base stations.

4. The communication system based on a temporary communication network according to claim 1, It is characterized in that In the initial Q matrix in step one, if the node corresponding to the horizontal coordinate of an element is connected to the node corresponding to its vertical coordinate, then the element value is 0, otherwise the element is a preset reward value, and the preset reward value is a negative number; the reward value for reaching the target state is a positive number, and the reward value for reaching the target state is n times the absolute value of the preset reward value, where n is the total number of multiple temporary communication nodes and temporary communication base stations.

5. The communication system based on the temporary communication network according to claim 4, It is characterized in that The preset selection rules include: Get the row of elements corresponding to the current state in the initial Q matrix and get the target element; Based on the preset greedy rate, a non-negative number is selected from the target element, and the action corresponding to the ordinate corresponding to the non-negative number is taken as the target action.

6. A communication method based on a temporary communication network, applied to the communication system based on a temporary communication network as claimed in any one of claims 1 to 5, It is characterized in that The communication method based on the temporary communication network includes: Obtaining the location coordinates of each temporary communication node and the location coordinates of the temporary communication base station; Obtain a preset optimal wireless communication distance, and establish a node topology graph based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes, and the location coordinates of a temporary communication base station, wherein the nodes in the node topology graph correspond to the temporary communication nodes and the temporary communication base station, respectively, and the edges in the node topology graph represent the data forwarding relationship between different nodes; According to the node topology graph, the optimal Q matrix is ​​established based on the Q-learning algorithm. The optimal Q matrix is ​​used to decide the forwarding path when each temporary communication node forwards data to the temporary communication base station. Control each temporary communication node to send data to the temporary communication base station based on the optimal Q matrix; The obtaining of the preset optimal wireless communication distance, and establishing a node topology map based on the preset optimal wireless communication distance, the location coordinates of multiple temporary communication nodes, and the location coordinates of the temporary communication base station, includes: According to the position coordinates of each temporary communication node, the distance between each two temporary communication nodes is calculated to obtain a distance set; Calculate the proportion of distances in the distance set that are less than a preset optimal wireless communication distance to obtain a first proportion value; If the first ratio value exceeds a preset ratio threshold, a node topology graph is established based on the position coordinates of the temporary communication node and the temporary communication base station as graph nodes and based on the distances in the distance set that are less than a preset optimal wireless communication distance; The method of establishing an optimal Q matrix based on a Q-learning algorithm according to the node topology graph includes: Step 1: Based on the node topology map, an initial Q matrix is ​​established to take the node corresponding to the temporary communication base station as the target state, wherein the horizontal axis of the initial Q matrix corresponds to each node in the node topology map, which is used to represent a state, and the vertical axis of the initial Q matrix also corresponds to each node in the node topology map, which is used to represent an action; Step 2: Randomly select a state as the current state based on the initial Q matrix; Step 3: Based on the current state, determine an action according to the preset selection rules to obtain the target action; Step 4: Get the target reward value according to the element value corresponding to the target action in the initial Q matrix; Step 5: Update the initial Q matrix according to the target reward value, and update the current state according to the target action; Step 6: Repeat steps 3 to 5 until the current state is the target state; Step 7: Repeat steps 2 to 6, and use the last updated initial Q matrix as the optimal Q matrix.