Wireless network resource allocation method and system based on artificial intelligence

Through an artificial intelligence-based method, real-time monitoring data and multi-level resource acquisition network are used to dynamically adjust the allocation of wireless network resources, solving the problem of unreasonable resource allocation in the existing technology and improving network performance and stability.

CN119676738APending Publication Date: 2025-03-21WECLOUDS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411925929.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The existing wireless network resource allocation methods rely too much on static data and cannot adjust resource allocation in time, resulting in unreasonable resource allocation and affecting network performance and stability.

Method used

Using an artificial intelligence-based method, a multi-level resource acquisition network is built by obtaining the real-time monitoring data and data transmission rate of the local terminal layer connection link, a multi-level resource acquisition network is built, the resource allocation limit and optimal value of each terminal are calculated, and resource allocation is dynamically adjusted.

Benefits of technology

It realizes dynamic and flexibility of resource allocation, can adapt to changes in the network environment, improves network performance and stability, and ensures the communication performance of the terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676738A_ABST
    Figure CN119676738A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless network resource allocation, and particularly discloses a wireless network resource allocation method and system based on artificial intelligence, and the method comprises the steps: obtaining real-time monitoring data and a data transmission rate of a connection link of a local terminal layer, the local terminal layer comprises a plurality of terminals, each terminal is provided with a plurality of link nodes, and each link node is provided with a plurality of link nodes; the link node is used for being connected with other terminals; acquiring data queue information of each terminal according to the real-time monitoring data; and obtaining the distributable quantity of the terminals according to the data queue information, and constructing a multi-level resource acquisition network according to the distributable quantity of the terminals corresponding to each terminal. The invention provides an efficient, flexible and dynamic wireless network resource allocation method and system, which can obviously improve the utilization efficiency of network resources, optimize the network performance, improve the communication quality and reliability, adapt to various complex network environments and ensure the user experience and the network stability.
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 network resource allocation, and in particular to a wireless network resource allocation method and system based on artificial intelligence. Background Art

[0002] The purpose of wireless network resource allocation is to maximize network performance, ensure service quality, improve user experience, support large-scale connections, protect data security, and achieve intelligent management through scientific and reasonable resource management.

[0003] The existing resource allocation field may rely too much on static data, such as preset resource collection cycles, fixed node coverage, etc. These static data may not accurately reflect the real-time status of the network in actual applications. If the network status changes and the resource allocation method cannot be adjusted in time, it may lead to unreasonable resource allocation. For example, some terminals are allocated too much or too little resources, affecting the performance and stability of the overall network. Summary of the invention

[0004] The purpose of the present invention is to provide a wireless network resource allocation method and system based on artificial intelligence to solve the technical problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solutions: A wireless network resource allocation method based on artificial intelligence, comprising: Acquire real-time monitoring data and data transmission rate of a local terminal layer connection link, wherein the local terminal layer includes multiple terminals, and each terminal has multiple link nodes, and the link nodes are used to connect with other terminals; Acquire data queue information of each terminal according to the real-time monitoring data; Acquire the terminal allocatable quantity according to the data queue information, and construct a multi-level resource acquisition network according to the terminal allocatable quantity corresponding to each terminal; Obtain resource allocation limits for each terminal according to the multi-level resource acquisition network, and obtain optimal resource allocation values ​​for each terminal according to the resource allocation limits; Acquire a resource allocation test range according to the optimal value of resource allocation, and acquire a data test communication rate of each terminal from the resource allocation test range based on the data transmission rate; Establishing a terminal balance table according to the corresponding data test communication rate of each terminal, and acquiring the corresponding terminal resource allocation processing range of each terminal based on the terminal balance table; The optimal test link information of the terminal is obtained according to the terminal resource allocation processing range, and link node resources are allocated to the terminal based on the optimal test link information of the terminal.

[0006] Preferably, the step of acquiring data queue information of each terminal according to the real-time monitoring data includes: The resource collection cycle for obtaining real-time monitoring data; Obtain link node sending information and link node receiving information of each terminal within a resource acquisition cycle; The sending frequency of each terminal in the resource acquisition period is obtained according to the link node sending information and the link node receiving information, and the number of data packets and the size of data packets are obtained according to the sending frequency; Get the sending frequency of the link node to send information; Obtaining a reception data packet delay rate of link node reception information; The resource acquisition cycle, link node sending information, link node receiving information, sending frequency, data packet number, data packet size and receiving data packet delay rate are summarized to obtain the data queue information of each terminal.

[0007] Preferably, the step of acquiring the terminal allocatable amount according to the data queue information, and constructing a multi-level resource acquisition network according to the terminal allocatable amount corresponding to each terminal, comprises: Cleaning the data queue information to obtain a first resource acquisition period, first link node sending information, first link node receiving information, a first sending frequency, a first data packet number, a first data packet size, and a first receiving data packet delay rate; Acquire real-time link node distance information according to the first link node sending information and the first link node receiving information; Acquire the number of other first link sending nodes within a preset range of the first link node sending information; Acquire the number of other first link receiving nodes within a preset range of the first link node receiving information; Acquire the link node collection range according to the number of other first link sending nodes and the number of other first link receiving nodes; Obtain link node coverage according to link node collection range; Obtaining the total amount of link nodes that can be allocated to each terminal according to the coverage of the link nodes, and using the total amount of link resources that can be allocated as the terminal allocation amount for each terminal; Obtaining the link node quantity range of each terminal according to the terminal allocatable quantity; Mark the link node collection points within the link node quantity range; All link node collection points are connected to build a circular collection network; Acquire multiple preset annular collection distances that are larger than the link node collection range, and the radius of each preset annular collection distance increases in sequence, and use the preset annular collection distances that increase in sequence as the multi-layer node coverage range; A multi-level resource acquisition network is constructed based on link nodes within the coverage range of multi-layer nodes and link nodes within the coverage range of nodes.

[0008] Preferably, the step of obtaining the resource allocation limit value of each terminal according to the multi-level resource acquisition network, and obtaining the optimal value of resource allocation for each terminal according to the resource allocation limit value comprises: Obtain the shortest distance between each terminal and the nearest resource collection node according to the multi-level resource collection network; Obtain the range of the number of multi-level link nodes for each terminal based on the shortest distance; Obtain the number of multi-level link nodes within the multi-level link node number range; Obtain resource conversion efficiency of each terminal; Obtain the controllable resource collection scope of each terminal; Get the total number of link connections within the coverage area of ​​the node; The resource allocation limit is calculated based on the shortest distance, the range of the number of multi-level link nodes, the number of multi-level link nodes, the resource conversion efficiency, the controllable resource acquisition range and the total number of link connections, where the calculation formula is: ; Among them, K is the resource allocation limit, μ is the closest distance, α is the range of the number of multi-level link nodes, β is the number of multi-level link nodes, γ is the resource conversion efficiency, δ is the controllable resource acquisition range, and ε is the total number of link connections; Obtain resource acquisition interference coefficient of each terminal; Obtaining the initial allocation benchmark value for each terminal; Get the error value of each terminal; The KM algorithm is used to assist in calculating the resource allocation limit, resource acquisition interference coefficient, initial allocation benchmark value and error value to obtain the optimal value of resource allocation.

[0009] Preferably, the step of acquiring a resource allocation test range according to the optimal value of resource allocation, and acquiring a data test communication rate of each terminal from the resource allocation test range based on the data transmission rate includes: Obtain the optimal value of resource allocation for each terminal; Obtain a resource allocation test range according to the optimal value of resource allocation for each terminal, and obtain a resource allocation point according to the resource allocation test range; Obtain the data transmission rate of each terminal, and allocate different resource amounts to each terminal at a resource allocation point within the resource allocation test range for testing, and obtain data test transmission information of each test point, wherein the data test transmission information includes transmission rate, data packet loss rate, and delay rate; Obtain the communication rate of the corresponding resource allocation point according to the transmission rate, packet loss rate, and delay rate; The resource allocation point with the maximum communication rate is obtained, and the communication rate corresponding to the resource allocation point is used as the data test communication rate.

[0010] Preferably, the step of establishing a terminal balance table according to the corresponding data test communication rate of each terminal, and acquiring the corresponding terminal resource allocation processing range of each terminal based on the terminal balance table includes: Obtaining the data test communication rate of each terminal at the corresponding resource allocation point; The data test communication rate obtains the actual data transmission information actually achieved by each terminal under the preset resource allocation, wherein the actual data transmission information includes the actual transmission rate, the actual packet loss rate, and the actual delay; Establishing a terminal balance table for each terminal according to the actual transmission rate, the actual packet loss rate, and the actual delay; Obtain resource allocation for each terminal according to the terminal balance table; The terminal resource allocation processing range is obtained according to the resource allocation amount of each terminal.

[0011] Preferably, the step of acquiring optimal test link information of the terminal according to the terminal resource allocation processing range, and allocating link node resources to the terminal based on the optimal test link information of the terminal includes: Obtaining a resource allocation range acceptable to each terminal in a test operation according to the terminal resource allocation processing range; Within the acceptable resource allocation range of each terminal, test the performance of different link nodes to obtain link information of multiple connected terminals and resource collection nodes; Acquire optimal test link information of each terminal under different resource allocations according to the multiple link information, wherein the optimal test link information includes an optimal test link node and its corresponding test resource allocation amount; Replace the link node of each terminal based on the optimal test link node; Allocate resources to each terminal based on the test resource allocation amount.

[0012] The present application also discloses a wireless network resource allocation system based on artificial intelligence, comprising: A first acquisition module is used to acquire real-time monitoring data and data transmission rate of a local terminal layer connection link, wherein the local terminal layer includes multiple terminals, and each terminal has multiple link nodes, and the link nodes are used to connect with other terminals; A second acquisition module, used to acquire data queue information of each terminal according to the real-time monitoring data; A third acquisition module is used to acquire the terminal allocatable amount according to the data queue information, and to construct a multi-level resource acquisition network according to the terminal allocatable amount corresponding to each terminal; A fourth acquisition module, used to acquire a resource allocation limit value of each terminal according to the multi-level resource acquisition network, and acquire an optimal value of resource allocation of each terminal according to the resource allocation limit value; A fifth acquisition module, configured to acquire a resource allocation test range according to the optimal resource allocation value, and acquire a data test communication rate of each terminal from the resource allocation test range based on a data transmission rate; A sixth acquisition module, configured to establish a terminal balance table according to the corresponding data test communication rate of each terminal, and acquire the corresponding terminal resource allocation processing range of each terminal based on the terminal balance table; The seventh acquisition module is used to acquire the optimal test link information of the terminal according to the terminal resource allocation processing range, and allocate link node resources to the terminal based on the optimal test link information of the terminal.

[0013] Preferably, the second acquisition module includes: A first acquisition unit, used to acquire a resource collection period of real-time monitoring data; A second acquisition unit, used to acquire link node sending information and link node receiving information of each terminal in a resource acquisition period; A third acquisition unit is used to acquire the transmission frequency of each terminal in the resource acquisition period according to the link node transmission information and the link node reception information, and acquire the number of data packets and the size of the data packets according to the transmission frequency; A fourth acquisition unit, used to acquire a sending frequency of information sent by the link node; A fifth acquisition unit, used to acquire a delay rate of a received data packet of received information of a link node; The sixth acquisition unit is used to summarize the resource acquisition cycle, link node sending information, link node receiving information, sending frequency, data packet number, data packet size and receiving data packet delay rate to obtain data queue information of each terminal.

[0014] Preferably, the third acquisition module includes: a seventh acquisition unit, configured to clean the data queue information to obtain a first resource acquisition period, first link node sending information, first link node receiving information, a first sending frequency, a first data packet number, a first data packet size, and a first receiving data packet delay rate; An eighth acquisition unit, configured to acquire real-time link node distance information according to the first link node sending information and the first link node receiving information; A ninth acquisition unit, configured to acquire the number of other first link sending nodes within a preset range from which the first link node sends information; A tenth obtaining unit, used to obtain the number of other first link receiving nodes within a preset range of the first link node receiving information; an eleventh acquiring unit, configured to acquire a link node acquisition range according to the number of other first link sending nodes and the number of other first link receiving nodes; A twelfth acquisition unit, used to acquire the link node coverage range according to the link node collection range; A thirteenth obtaining unit, configured to obtain the total allocatable amount of the link nodes for each terminal according to the coverage of the link nodes, and use the total allocatable amount of the link resources as the terminal allocatable amount for each terminal; A fourteenth obtaining unit, configured to obtain a link node quantity range of each terminal according to the terminal allocatable quantity; A fifteenth acquisition unit is used to mark the link node collection point within the link node quantity range; The sixteenth acquisition unit is used to overlap all link node collection points to build a cyclic collection network; A seventeenth acquisition unit is used to acquire a plurality of preset annular collection distances that are larger than the link node collection range, wherein the radius of each preset annular collection distance increases in sequence, and the preset annular collection distances that increase in sequence are used as the multi-layer node coverage range; The eighteenth acquisition unit is used to construct a multi-level resource acquisition network according to the link nodes within the multi-layer node coverage range and the link nodes within the node coverage range.

[0015] The beneficial effects of the present application are as follows: the present invention obtains the real-time monitoring data and data transmission rate of the local terminal layer connection link, and obtains the data queue information of each terminal in the connection link based on the real-time monitoring data, thereby ensuring the accuracy and integrity of the data. The data queue information includes key parameters such as resource acquisition cycle, link node sending information, link node receiving information, sending frequency, number of data packets, data packet size, and receiving data packet delay rate. Through the comprehensive collection and summarization of these data, a solid data foundation is provided for subsequent resource allocation, avoiding resource allocation errors caused by missing or inaccurate data, and constructing a multi-level resource acquisition network. The terminal allocatable amount is obtained according to the data queue information, and a multi-level resource acquisition network is constructed according to the terminal allocatable amount corresponding to each terminal. This process not only takes into account the real-time status of the terminal, but also ensures comprehensive coverage and efficient utilization of resources through multi-level design. The construction of a multi-level resource acquisition network makes resource allocation more flexible and dynamic, able to adapt to changes in the network environment, avoiding the limitations of traditional static resource configuration, calculating resource allocation limits, combining multiple factors such as the nearest distance, node coverage, number of connected nodes, resource conversion efficiency, controllable resource acquisition range, and total link connection, to ensure the scientificity and rationality of resource allocation. Through resource allocation testing, the resource allocation test range is obtained according to the optimal resource allocation value of each terminal, and different resource amounts are allocated to each terminal within the test range for testing. The data test transmission information of each test point is recorded, including transmission rate, packet loss rate, and delay rate. The performance of different link nodes is tested within the acceptable resource allocation range of each terminal, and the link information of multiple connected terminals and resource acquisition nodes is obtained, and then the optimal test link information of each terminal under different resource allocation is obtained. The optimal test link information includes the optimal test link node and its corresponding test resource allocation amount. By selecting the link node with the best performance, the connection path between the terminal and the link node is optimized, the efficiency and reliability of data transmission are improved, and the communication performance of the terminal is ensured. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 The figure is a schematic diagram of a method flow of an embodiment of the present application.

[0017] Figure 2 A schematic diagram of the system structure of an embodiment of the present application.

[0018] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0019] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0020] like Figure 1 As shown, the present application provides a wireless network resource allocation method based on artificial intelligence, comprising: S1. Acquire real-time monitoring data and data transmission rate of a connection link of a local terminal layer, wherein the local terminal layer includes a plurality of terminals, and each terminal has a plurality of link nodes, and the link nodes are used to connect with other terminals; S2. Acquire data queue information of each terminal according to the real-time monitoring data; S3, obtaining the terminal allocatable amount according to the data queue information, and constructing a multi-level resource acquisition network according to the terminal allocatable amount corresponding to each terminal; S4. Obtaining a resource allocation limit value of each terminal according to the multi-level resource acquisition network, and obtaining an optimal value of resource allocation for each terminal according to the resource allocation limit value; S5. Obtain a resource allocation test range according to the optimal value of resource allocation, and obtain a data test communication rate of each terminal from the resource allocation test range based on the data transmission rate; S6. Establish a terminal balance table according to the corresponding data test communication rate of each terminal, and obtain the corresponding terminal resource allocation processing range of each terminal based on the terminal balance table; S7. Acquire optimal test link information of the terminal according to the terminal resource allocation processing range, and allocate link node resources to the terminal based on the optimal test link information of the terminal.

[0021] As described in the above steps S1-S7, in modern wireless networks and industrial Internet of Things, a large number of devices and sensors need to collect, transmit and process data in real time. In order to meet the communication needs of these applications, reasonable network resource allocation becomes crucial. Existing resource allocation methods are often affected by changes in the external environment and specific factors, resulting in unsatisfactory allocation results, and wireless network resource allocation methods are usually based on static or semi-static configurations. In this way, wireless communication network resource allocation is based on a fixed resource allocation strategy and cannot adapt to the dynamic changes of the network environment. For example, when the network traffic suddenly increases, resource allocation may not be adjusted in time, resulting in network congestion or service interruption. In the present invention, in the industrial Internet of Things and wireless networks, terminal devices (such as sensors, mobile devices) need to send and receive data frequently. In order to ensure the efficiency and reliability of data transmission, it is necessary to monitor the connection link status and data transmission rate of each terminal in real time, where a link node refers to a device or node directly connected to a wireless network in the network. The terminal can be various types of devices, such as smart phones, sensors, computers, Internet of Things devices, etc., and the local terminal layer is Refers to a network layer composed of multiple local terminals. The local terminal layer covers all terminal devices directly connected to the wireless network. By collecting real-time monitoring data of the terminal, including the number of data packets, data packet size, sending frequency, receiving delay, etc., the data queue information of each terminal is formed for subsequent resource allocation and optimization. Then, based on the data queue information, the link allocatable amount of each terminal can be obtained, that is, the amount of resources that each terminal can use in the current network environment, which helps to reasonably allocate network resources and avoid resource waste and congestion. Then, a multi-level resource acquisition network is constructed. By marking the link node acquisition points within the range of the link node number of the terminal, a cyclic acquisition network is formed. Then, based on the multi-level resource acquisition network, the resource allocation limit of each terminal is calculated, that is, the maximum amount of available resources for each terminal in the current network environment. Through the KM algorithm, combined with the resource allocation limit, resource acquisition interference coefficient, initial allocation benchmark value and error value, the optimal resource allocation value of each terminal is calculated. This helps to achieve optimal resource allocation and improve network performance. According to the optimal resource allocation value, the resource allocation test range is determined, that is, the test range of each terminal under different resource allocations. Within the resource allocation test range, different amounts of resources are allocated to each terminal for testing, and the data test transmission information of each test point is recorded, including transmission rate, packet loss rate, and delay rate, so as to obtain the communication rate of each test point. According to the data test communication rate, a terminal balance table for each terminal is established, and the actual transmission rate, packet loss rate, delay and other information of each terminal under different resource allocations are recorded.This helps to evaluate the performance of each terminal. According to the terminal balance table, the resource allocation processing range of each terminal is obtained, that is, the resource allocation range that each terminal can accept in actual operation. Within the resource allocation processing range of each terminal, the performance of different link nodes is tested to obtain the optimal test link information of each terminal under different resource allocations, including the optimal test link node and its corresponding test resource allocation amount. Based on the optimal test link information, link node replacement resource allocation is performed for each terminal to ensure that each terminal is connected to the optimal link node and the corresponding resources are allocated.

[0022] In one embodiment, the step of acquiring data queue information of each terminal in the connection link according to the real-time monitoring data includes: S201, obtaining a resource collection cycle for real-time monitoring data; S202, obtaining link node sending information and link node receiving information of each terminal in a resource collection period; S203, obtaining the transmission frequency of each terminal in the resource acquisition period according to the link node transmission information and the link node reception information, and obtaining the number of data packets and the size of the data packets according to the transmission frequency; S204, obtaining the sending frequency of the link node sending information; S205, obtaining a delay rate of a received data packet of information received by a link node; S206, summarizing the resource acquisition period, link node sending information, link node receiving information, sending frequency, data packet number, data packet size and received data packet delay rate to obtain data queue information of each terminal.

[0023] As described in the above steps S201-S206, the present invention obtains a resource collection cycle. The selection of the resource collection cycle should be determined according to the actual needs of the network and the resource management strategy. In each resource collection cycle, the system will regularly collect real-time monitoring data from each terminal and network node. By setting the resource collection cycle, the real-time monitoring data in the network can be regularly obtained to ensure the timeliness and accuracy of the data. Then, the node information of each terminal sending data in the resource collection cycle is collected, including the identification, location, connection status, etc. of the sending node. The node information of each terminal receiving data in the resource collection cycle is collected, including the identification, location, connection status, etc. of the receiving node. By obtaining the link node sending information and link status of each terminal, the system can obtain the real-time monitoring data from each terminal and the network node. The link node receives information, where the link node sends information that refers to the relevant information of the node that sends data during the data transmission process, and the link node receives information that refers to the relevant information of the node that receives data during the data transmission process. Suppose we have a wireless network, which includes two terminal devices: terminal A and terminal B. Each terminal device has multiple link nodes for communicating with other terminal devices. Our goal is to determine the communication status between a sending node of terminal A (denoted as A1) and a receiving node of terminal B (denoted as B1). In this way, we can fully understand the communication status of each terminal. Through detailed node information, we can more accurately analyze the communication behavior of each terminal, and solve the problem that the existing technology may only focus on the information of some nodes. The result is incomplete resource allocation and lack of detailed node information, which may lead to insufficient resource allocation accuracy. Then, according to the information sent by the link nodes, the sending frequency of each terminal in the resource collection cycle is calculated, that is, the number of times data is sent per unit time. According to the sending frequency, the number of data packets sent by each terminal in the resource collection cycle is counted, the size of each data packet is recorded, and the average data packet size and the total data packet size are calculated. By analyzing the sending frequency, the communication activity of each terminal can be understood, which provides a basis for resource allocation. By obtaining the number and size of data packets, the data transmission requirements of each terminal can be evaluated to ensure the rationality of resource allocation, which solves the problem that the communication activity of each terminal may not be accurately evaluated in the prior art, resulting in resource allocation. The resource allocation is unreasonable. By obtaining the sending frequency and recording the number of times each sending node sends during the resource collection cycle, the distribution of sending frequencies is analyzed to identify high-frequency sending nodes and low-frequency sending nodes. According to the changes in the sending frequency, the resource allocation strategy is dynamically adjusted to ensure that high-frequency sending nodes obtain sufficient resource support. By monitoring the sending frequency in real time, the resource allocation strategy can be dynamically adjusted to improve resource utilization efficiency. According to the information received by the link node, the delay rate of each terminal receiving the data packet during the resource collection cycle is calculated, that is, the time interval from the sending to the receiving of the data packet, the delay distribution of the received data packet is analyzed, and high-delay nodes and low-delay nodes are identified. By obtaining the delay rate of the received data packet, the communication quality of each terminal can be evaluated.Ensure the timeliness of data transmission.

[0024] In one embodiment, the step of obtaining the terminal allocatable amount according to the data queue information and constructing a multi-level resource acquisition network according to the terminal allocatable amount corresponding to each terminal includes: S301, performing data cleaning on the data queue information to obtain a first resource acquisition period, first link node sending information, first link node receiving information, a first sending frequency, a first data packet number, a first data packet size, and a first received data packet delay rate; S302, acquiring real-time link node distance information according to the first link node sending information and the first link node receiving information; S303, obtaining the number of other first link sending nodes within a preset range where the first link node sends information; S304, obtaining the number of other first link receiving nodes within a preset range of the first link node receiving information; S305, acquiring a link node collection range according to the number of other first link sending nodes and the number of other first link receiving nodes; S306, obtaining the link node coverage range according to the link node collection range; S307, acquiring the total amount of link nodes that can be allocated to each terminal according to the coverage of the link nodes, and using the total amount of link resources that can be allocated as the terminal allocation amount for each terminal; S308, obtaining the link node quantity range of each terminal according to the terminal allocatable quantity; S309, marking the link node collection points within the link node quantity range; S310, connecting all link node collection points to build a cyclic collection network; S311, obtaining a plurality of preset annular collection distances that are larger than the link node collection range, wherein the radius of each preset annular collection distance increases in sequence, and using the preset annular collection distances that increase in sequence as the multi-layer node coverage range; S312: construct a multi-level resource acquisition network based on link nodes within the coverage range of the multi-layer nodes and link nodes within the coverage range of the nodes.

[0025] As described in the above steps S301-S312, the present invention removes duplicates and filters invalid data from the data queue information to ensure the accuracy and consistency of the data, and ensures the accuracy and consistency of the data by data cleaning (data cleaning includes operations such as removing noise, correcting errors, filling missing values, and deleting duplicate data), reducing the impact of errors and redundant data, and then determines the real-time link node distance information of each node based on the first link node sending information and the first link node receiving information (the real-time link node distance information refers to the actual distance between the sending node and the receiving node at a certain moment), and uses methods such as geometry or signal strength to calculate the real-time distance information between each sending node and the receiving node. Through node positioning, assuming that we have a A wireless network includes two terminal devices: terminal A and terminal B. Each terminal device has multiple link nodes for communicating with other terminal devices. Our goal is to determine the real-time distance between a sending link node (denoted as A1) of terminal A and a receiving link node (denoted as B1) of terminal B. By understanding the location of each node, accurate geographic location information is provided for resource allocation, solving the problem that the location of the node cannot be accurately determined in the prior art, resulting in inaccurate resource allocation. After that, the neighboring sending nodes are searched near the first link node sending information, the number of neighboring sending nodes is counted, and the number of other sending nodes around each sending node is recorded. By searching the neighboring nodes, the surrounding nodes of each sending node can be identified. The communication environment is then searched for adjacent receiving nodes near the first link node receiving information, the number of adjacent receiving nodes is counted, and the number of other receiving nodes around each receiving node is recorded. By searching the adjacent nodes, the communication environment around each receiving node can be identified, and then the node collection range of each terminal is calculated according to the number of other first link sending nodes and the number of other first link receiving nodes (the terminal node collection range refers to the geographical area where the terminal node can effectively collect data and communicate in the wireless network), the node collection range of each terminal is evaluated, and the range of resource allocation is determined. By calculating the node collection range, the resource allocation range of each terminal can be determined, providing a clear boundary for resource allocation, and solving the problem in the prior art. It may not be possible to accurately determine the node collection range, resulting in unclear resource allocation range. Then, based on the terminal node collection range, the link coverage range of each node is calculated. By calculating the link coverage range, the effective range of resource allocation for each node can be determined, providing a clear coverage area for resource allocation. According to the link node coverage range, the total amount of link node allocatable for each terminal is calculated (this can be achieved by analyzing the communication capability and bandwidth of the node). The total amount of link resource allocatable is used as the terminal allocatable amount. By calculating the total amount of link resource allocatable, the resource demand of each terminal can be quantified. After that, by calculating the node coverage range, the effective range of resource allocation for each terminal can be determined, providing a clear coverage area for resource allocation, and evaluating the node coverage range.It helps to optimize resource allocation and improve resource utilization efficiency. Then, by marking the link node collection points, these points refer to the edge resource collection points marked by the link nodes of each terminal in the network within the coverage range of its nodes. These points are used to collect real-time data in the network. These edge resource collection points are connected to form a continuous network structure, so that each collection point not only collects data by itself, but also maintains communication and data exchange with adjacent collection points. The constructed collection network is a closed-loop structure, ensuring that each node can transmit data through other nodes in the network to form a complete, breakpoint-free network, which can ensure the comprehensiveness and accuracy of resource collection and avoid missing important nodes. After that, all link node collection points are overlapped to form a continuous collection network, and then multiple preset ring collection distances are set. For example, You can set 50-100 meters, 100-200 meters, 200-300 meters, etc. as preset ring collection distances. New edge resource collection points are marked within the preset ring collection distances of these three rings. Starting from the node coverage of the terminal, they are gradually expanded outward. Each ring collection distance increases in sequence. This means that outside the node coverage of each terminal, multiple concentric ring collection distances are set. These ring distances are used to expand the coverage of the network. Through these ring collection distances (the ring collection distance indicates the radius of the ring collection area), the network is divided into multiple levels, and the coverage of each level is gradually increased. Gradually expand, used to expand the node coverage range, this distance can be determined according to the specific needs of the network and the physical environment, based on the preset node distance, use the search algorithm (such as breadth-first search or depth-first search) to find the unmarked nodes outside the node coverage range within the preset node distance range, by incorporating the unmarked nodes outside the node coverage range into the multi-level resource acquisition network, expand the coverage range of the entire network, divide the nodes into different levels, form a multi-level coverage range, which is conducive to the hierarchical management and optimization of resources, solve the problem of incomplete resource collection in the traditional method in the prior art, avoid the problem that the node coverage range is usually static and lacks a dynamic adjustment mechanism, resulting in rigid resource allocation, and then divide the nodes into different levels to form a multi-level resource acquisition network, according to the network status and environmental changes, adjust the structure of the multi-level resource acquisition network in real time to ensure the dynamic adaptability of the network, optimize the multi-level resource acquisition network, ensure the efficiency and stability of resource acquisition, and then optimize the connection path between nodes through the path planning algorithm (such as Dijkstra algorithm) to ensure the efficiency and reliability of data transmission, according to the network status and environmental changes, adjust the structure of the multi-level resource acquisition network in real time to ensure the dynamic adaptability of the network.

[0026] In one embodiment, the step of obtaining the resource allocation limit value of each terminal according to the multi-level resource acquisition network, and obtaining the optimal value of resource allocation for each terminal according to the resource allocation limit value includes: S401, obtaining the shortest distance between each terminal and the nearest resource collection node according to the multi-level resource collection network; S402, obtaining the range of the number of multi-level link nodes of each terminal based on the shortest distance; S403, obtaining the number of multi-level link nodes within the multi-level link node number range; S404, obtaining resource conversion efficiency of each terminal; S405, obtaining the controllable resource collection range of each terminal; S406, obtaining the total number of link connections within the coverage area of ​​the node; S407, calculating the resource allocation limit according to the shortest distance, the range of the number of multi-level link nodes, the number of multi-level link nodes, the resource conversion efficiency, the controllable resource acquisition range and the total number of link connections, wherein the calculation formula is: ; Among them, K is the resource allocation limit, μ is the closest distance, α is the range of the number of multi-level link nodes, β is the number of multi-level link nodes, γ is the resource conversion efficiency, δ is the controllable resource acquisition range, and ε is the total number of link connections; S408, obtaining a resource acquisition interference coefficient of each terminal; S409, obtaining an initial allocation reference value for each terminal; S410, obtaining an error value of each terminal; S411. Use the KM algorithm to assist in calculating the resource allocation limit, resource acquisition interference coefficient, initial allocation reference value and error value to obtain the optimal value of resource allocation.

[0027] As described in the above steps S401-S411, the present invention can accurately determine the relationship between each terminal and the nearest resource collection node by calculating the nearest distance, and provide accurate geographical location information for resource allocation. The calculation of the nearest distance helps to optimize the data transmission path, reduce transmission delay and energy consumption, and then obtain the node coverage range, wherein the relationship between the node and the terminal refers to the communication connection and coverage relationship between the terminal device and the nodes in the network (such as base stations, routers, repeaters, etc.), the effective range of resource allocation for each terminal can be determined, and a clear coverage area can be provided for resource allocation, and then the number of connected nodes within the range of the number of multi-level link nodes for each terminal is counted. By counting the number of connected nodes, resource allocation can be optimized to ensure that each terminal obtains sufficient resources, and then the resource conversion efficiency of each terminal is calculated according to the hardware performance and communication protocol of the terminal. By calculating the resource conversion efficiency, the resource utilization efficiency of the terminal can be evaluated. The calculation of the resource conversion efficiency helps to optimize the performance of the terminal and improve the efficiency of the overall network. Then, according to the communication capability and resource allocation strategy of the terminal, the range of the number of multi-level link nodes for each terminal is calculated, and resource management can be optimized to ensure that each The resource allocation of each terminal is within a controllable range, which solves the problem that the controllable resource collection range of the terminal cannot be accurately determined in the prior art, resulting in poor resource management. Then, the total number of link connections within the coverage range of each terminal node is counted. The total number of link connections can help evaluate the connection density and resource requirements within the coverage range of the node. By counting the total number of link connections, resource allocation can be optimized to ensure that each terminal obtains sufficient resources. Then, by calculating the resource allocation limit, it is helpful to optimize resource allocation and improve resource utilization efficiency. By calculating the resource collection interference coefficient, the interference degree around the terminal can be evaluated to provide a basis for resource allocation. According to the basic needs of the terminal and the network configuration, the initial allocation benchmark value of each terminal is set. By setting the initial allocation benchmark value, it can be ensured that the basic needs of each terminal are met. Then, by calculating the error value, the difference between the actual performance and the theoretical performance can be evaluated. Finally, the KM algorithm (Kuhn-Munkres algorithm) is used to assist in calculating the resource allocation limit, the resource collection interference coefficient, the initial allocation benchmark value and the error value to obtain the optimal value of resource allocation. The KM algorithm is used to find the optimal match in the resource allocation matrix to ensure the optimal value of resource allocation.

[0028] In one embodiment, the step of acquiring a resource allocation test range according to the optimal resource allocation value, and acquiring a data test communication rate of each terminal from the resource allocation test range based on the data transmission rate includes: S501, obtaining the optimal value of resource allocation for each terminal; S502, obtaining a resource allocation test range according to the optimal value of resource allocation for each terminal, and obtaining a resource allocation point according to the resource allocation test range; S503, obtaining the data transmission rate of each terminal, and allocating different resource amounts to each terminal at a resource allocation point within the resource allocation test range for testing, to obtain data test transmission information of each test point, wherein the data test transmission information includes transmission rate, data packet loss rate, and delay rate; S504, obtaining the communication rate of the corresponding resource allocation point according to the transmission rate, the packet loss rate, and the delay rate; S505: Obtain a resource allocation point with a maximum communication rate, and use the communication rate corresponding to the resource allocation point as a data test communication rate.

[0029] As described in the above steps S501-S505, the present invention calculates the optimal value of resource allocation for each terminal through the KM algorithm or other optimization algorithms described above. The optimal value of resource allocation for each terminal represents the most appropriate resource allocation amount for each terminal under current conditions. By calculating the optimal value of resource allocation, it is possible to ensure that each terminal obtains the most appropriate resource allocation and improve resource utilization efficiency. Then, according to the optimal value of resource allocation for each terminal, the resource allocation test range is determined, and then a reasonable test range is set, including the amount of resources that fluctuate above and below the optimal value by a certain proportion. Within the resource allocation test range, multiple resource allocation points are selected for testing, and several evenly distributed resource allocation points are selected to ensure the comprehensiveness and accuracy of the test. By setting the resource allocation test range and selecting multiple resource allocation points, the performance under different resource allocation conditions can be fully tested, and then the data transmission rate of each terminal is obtained as the basic data for the test. According to the data, the data transmission rate of each terminal is obtained through actual measurement or simulation, and then different amounts of resources are allocated to each terminal at the resource allocation point within the resource allocation test range for testing. After that, the data test transmission information of each test point is recorded, including the transmission rate, packet loss rate, and delay rate. Then, according to the transmission rate, packet loss rate, and delay rate of each test point, the communication rate of the corresponding resource allocation point is calculated. By calculating the communication rate, the communication performance under different resource allocation conditions can be comprehensively evaluated. Among all the test points, the resource allocation point with the highest communication rate is selected. By comparing the communication rate of each test point, the point with the highest communication rate is selected, and the communication rate corresponding to the resource allocation point with the highest communication rate is used as the data test communication rate. The communication rate of the point with the highest communication rate is recorded as the final basis for resource allocation. By selecting the resource allocation point with the highest communication rate, the optimal effect of resource allocation can be ensured.

[0030] In one embodiment, the step of establishing a terminal balance table according to the corresponding data test communication rate of each terminal, and acquiring the corresponding terminal resource allocation processing range of each terminal based on the terminal balance table includes: S601, obtaining a data test communication rate of each terminal at a corresponding resource allocation point; S602, data test communication rate: obtaining actual data transmission information actually achieved by each terminal under preset resource allocation, wherein the actual data transmission information includes actual transmission rate, actual data packet loss rate, and actual delay; S603, establishing a terminal balance table for each terminal according to the actual transmission rate, the actual packet loss rate, and the actual delay; S604, obtaining the resource allocation amount of each terminal according to the terminal balance table; S605: Obtain a terminal resource allocation processing range according to the resource allocation amount of each terminal.

[0031] As described in the above steps S601-S605, the present invention obtains the data test communication rate of each terminal at the resource allocation point corresponding to each terminal, records the communication rate of each terminal at different resource allocation points, ensures the accuracy and completeness of the data, and records the communication rate of each test point. By obtaining the communication rate of each terminal at different resource allocation points, the communication performance under different resource allocation conditions can be comprehensively evaluated, and the problem that the communication performance under different resource allocation conditions may not be comprehensively evaluated in the prior art, resulting in inaccurate evaluation results, is solved. Then, according to the optimal value of resource allocation described above, a preset resource allocation scheme is set. Under the preset resource allocation scheme, a specific amount of resources is allocated to each terminal, the actual data transmission information actually achieved by each terminal is obtained, the actual transmission rate of each terminal is recorded, the actual data packet loss rate of each terminal is recorded, and the actual delay of each terminal is recorded. By obtaining the actual transmission information, the feasibility of the preset resource allocation scheme can be verified. Then, according to the actual transmission rate, actual data packet loss rate and actual delay of each terminal, its balance is calculated, and the balance of each terminal is recorded in the terminal average In the measurement table, a table containing the balance of each terminal is then constructed to facilitate subsequent analysis and optimization. By calculating the balance, the overall performance of each terminal under the preset resource allocation can be comprehensively evaluated. Then, according to the terminal balance table, the resource allocation amount of each terminal is determined, and the resource allocation scheme with the highest balance is selected as the resource allocation amount of each terminal. According to the network status and environmental changes, the resource allocation amount of each terminal is dynamically adjusted to ensure the optimal effect of resource allocation. By selecting the resource allocation scheme with the highest balance, it can be ensured that each terminal obtains the most appropriate resource allocation and improves resource utilization efficiency. Then, according to the resource allocation amount of each terminal, its resource allocation processing range is determined, and then a reasonable resource allocation processing range is set to ensure that the resource allocation of each terminal is within a reasonable range. The boundaries of the resource allocation processing range are checked to ensure that it does not exceed the physical limitations and performance requirements of the network. By determining the resource allocation processing range, resource management can be optimized to ensure that the resource allocation of each terminal is within a controllable range. The setting of the resource allocation processing range helps to ensure the communication performance of the terminal and improve the efficiency and stability of the overall network.

[0032] In one embodiment, the step of acquiring optimal test link information of the terminal according to the terminal resource allocation processing range, and performing link node resource allocation to the terminal based on the optimal test link information of the terminal includes: S701, obtaining a resource allocation range acceptable to each terminal in a test operation according to the terminal resource allocation processing range; S702, testing the performance of different link nodes within the acceptable resource allocation range of each terminal, and obtaining link information of multiple connected terminals and resource acquisition nodes; S703, obtaining optimal test link information of each terminal under different resource allocations according to the multiple link information, wherein the optimal test link information includes an optimal test link node and its corresponding test resource allocation amount; S704, replacing the link node of each terminal based on the optimal test link node; S705: Allocate resources to each terminal based on the test resource allocation amount.

[0033] As described in the above steps S701-S705, the present invention determines the acceptable resource allocation range of each terminal in the test operation according to the terminal resource allocation processing range described above, and ensures that the resource allocation of each terminal is within a reasonable range by setting a reasonable resource allocation range, checks the boundary of the resource allocation processing range to ensure that it does not exceed the physical limitations and performance requirements of the network, and determines the acceptable resource allocation range of each terminal in the test operation within the resource allocation processing range. According to the actual test requirements, the acceptable resource allocation range is appropriately adjusted to ensure the comprehensiveness and accuracy of the test. By determining the acceptable resource allocation range, the performance under different resource allocation conditions can be fully tested. Within the acceptable resource allocation range of each terminal, the performance of different link nodes is tested. Through actual measurement or simulation, the performance of different link nodes is tested, including transmission rate, data packet loss rate, delay, etc., and then the link information of each test point is recorded, including the link information connecting the terminal and the resource acquisition node. By testing the performance of different link nodes, the communication performance of different link nodes can be fully evaluated, and the optimal test link information of each terminal under different resource allocation is obtained according to multiple link information. Then compare the performance of different link nodes, select the link node with the best performance, obtain and record the test resource allocation amount corresponding to the best test link node, including the best test link node and its corresponding test resource allocation amount, then record the identification and position of the best test link node, and finally record the test resource allocation amount corresponding to the best test link node. By selecting the link node with the best performance, the optimal effect of resource allocation can be ensured. According to the optimal test link information, the link node of each terminal is optimized. First, the optimal test link node is selected as the main link node of each terminal, and then the connection path between the terminal and the optimal test link node is optimized to ensure the efficiency and reliability of data transmission. By optimizing the link nodes, the efficiency and reliability of data transmission can be improved. According to the test resource allocation amount in the optimal test link information, resources are allocated to each terminal, and then the test resource allocation amount corresponding to the best test link node is allocated to each terminal. After that, the resource allocation amount of each terminal is dynamically adjusted according to the network status and environmental changes to ensure the optimal effect of resource allocation. By allocating resources based on the test resource allocation amount, it can be ensured that each terminal obtains the most appropriate resource allocation and improves resource utilization efficiency.

[0034] like Figure 2 As shown, the present invention also provides a wireless network resource allocation system based on artificial intelligence, comprising: A first acquisition module 1 is used to acquire real-time monitoring data and data transmission rate of a local terminal layer connection link, wherein the local terminal layer includes multiple terminals, and each terminal has multiple link nodes, and the link nodes are used to connect with other terminals; A second acquisition module 2, used to acquire data queue information of each terminal according to the real-time monitoring data; A third acquisition module 3 is used to acquire the terminal allocatable quantity according to the data queue information, and to construct a multi-level resource acquisition network according to the terminal allocatable quantity corresponding to each terminal; A fourth acquisition module 4 is used to acquire a resource allocation limit value of each terminal according to the multi-level resource acquisition network, and acquire an optimal value of resource allocation of each terminal according to the resource allocation limit value; A fifth acquisition module 5, configured to acquire a resource allocation test range according to the optimal resource allocation value, and acquire a data test communication rate of each terminal from the resource allocation test range based on the data transmission rate; A sixth acquisition module 6, configured to establish a terminal balance table according to the corresponding data test communication rate of each terminal, and acquire the corresponding terminal resource allocation processing range of each terminal based on the terminal balance table; The seventh acquisition module 7 is used to acquire the optimal test link information of the terminal according to the terminal resource allocation processing range, and perform link node resource allocation to the terminal based on the optimal test link information of the terminal.

[0035] In one embodiment, the second acquisition module 2 includes: A first acquisition unit, used to acquire a resource collection period of real-time monitoring data; A second acquisition unit, used to acquire link node sending information and link node receiving information of each terminal in a resource acquisition period; A third acquisition unit is used to acquire the transmission frequency of each terminal in the resource acquisition period according to the link node transmission information and the link node reception information, and acquire the number of data packets and the size of the data packets according to the transmission frequency; A fourth acquisition unit, used to acquire a sending frequency of information sent by the link node; A fifth acquisition unit, used to acquire a delay rate of a received data packet of received information of a link node; The sixth acquisition unit is used to summarize the resource acquisition cycle, link node sending information, link node receiving information, sending frequency, data packet number, data packet size and receiving data packet delay rate to obtain data queue information of each terminal.

[0036] In one embodiment, the third acquisition module 3 includes: a seventh acquisition unit, configured to clean the data queue information to obtain a first resource acquisition period, first link node sending information, first link node receiving information, a first sending frequency, a first data packet number, a first data packet size, and a first receiving data packet delay rate; An eighth acquisition unit, configured to acquire real-time link node distance information according to the first link node sending information and the first link node receiving information; A ninth acquisition unit, configured to acquire the number of other first link sending nodes within a preset range from which the first link node sends information; A tenth obtaining unit, used to obtain the number of other first link receiving nodes within a preset range of the first link node receiving information; an eleventh acquiring unit, configured to acquire a link node acquisition range according to the number of other first link sending nodes and the number of other first link receiving nodes; A twelfth acquisition unit, used to acquire the link node coverage range according to the link node collection range; A thirteenth obtaining unit, configured to obtain the total allocatable amount of the link nodes for each terminal according to the coverage of the link nodes, and use the total allocatable amount of the link resources as the terminal allocatable amount for each terminal; A fourteenth obtaining unit, configured to obtain a link node quantity range of each terminal according to the terminal allocatable quantity; A fifteenth acquisition unit is used to mark the link node collection point within the link node quantity range; The sixteenth acquisition unit is used to overlap all link node collection points to build a cyclic collection network; A seventeenth acquisition unit is used to acquire a plurality of preset annular collection distances that are larger than the link node collection range, wherein the radius of each preset annular collection distance increases in sequence, and the preset annular collection distances that increase in sequence are used as the multi-layer node coverage range; The eighteenth acquisition unit is used to construct a multi-level resource acquisition network according to the link nodes within the multi-layer node coverage range and the link nodes within the node coverage range.

[0037] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, value library or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0038] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0039] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent results or equivalent process changes made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A wireless network resource allocation method based on artificial intelligence, characterized in that: include: Acquire real-time monitoring data and data transmission rate of a local terminal layer connection link, wherein the local terminal layer includes multiple terminals, and each terminal has multiple link nodes, and the link nodes are used to connect with other terminals; Acquire data queue information of each terminal according to the real-time monitoring data; Acquire the terminal allocatable quantity according to the data queue information, and construct a multi-level resource acquisition network according to the terminal allocatable quantity corresponding to each terminal; Obtain resource allocation limits for each terminal according to the multi-level resource acquisition network, and obtain optimal resource allocation values ​​for each terminal according to the resource allocation limits; Acquire a resource allocation test range according to the optimal value of resource allocation, and acquire a data test communication rate of each terminal from the resource allocation test range based on the data transmission rate; Establishing a terminal balance table according to the corresponding data test communication rate of each terminal, and acquiring the corresponding terminal resource allocation processing range of each terminal based on the terminal balance table; The optimal test link information of the terminal is obtained according to the terminal resource allocation processing range, and link node resources are allocated to the terminal based on the optimal test link information of the terminal.

2. The method for allocating wireless network resources based on artificial intelligence according to claim 1, characterized in that: The step of acquiring data queue information of each terminal according to the real-time monitoring data comprises: The resource collection cycle for obtaining real-time monitoring data; Obtain link node sending information and link node receiving information of each terminal within a resource acquisition cycle; The sending frequency of each terminal in the resource acquisition period is obtained according to the link node sending information and the link node receiving information, and the number of data packets and the size of data packets are obtained according to the sending frequency; Get the sending frequency of the link node to send information; Obtaining a reception data packet delay rate of link node reception information; The resource acquisition cycle, link node sending information, link node receiving information, sending frequency, data packet number, data packet size and receiving data packet delay rate are summarized to obtain the data queue information of each terminal.

3. The method for allocating wireless network resources based on artificial intelligence according to claim 1, characterized in that: The step of acquiring the terminal allocatable amount according to the data queue information, and constructing a multi-level resource acquisition network according to the terminal allocatable amount corresponding to each terminal, comprises: Cleaning the data queue information to obtain a first resource acquisition period, first link node sending information, first link node receiving information, a first sending frequency, a first data packet number, a first data packet size, and a first receiving data packet delay rate; Acquire real-time link node distance information according to the first link node sending information and the first link node receiving information; Obtaining the number of other first link sending nodes within a preset range of the first link node sending information; Acquire the number of other first link receiving nodes within a preset range of the first link node receiving information; Acquire the link node collection range according to the number of other first link sending nodes and the number of other first link receiving nodes; Obtain link node coverage according to link node collection range; Obtaining the total amount of link nodes that can be allocated to each terminal according to the coverage of the link nodes, and using the total amount of link resources that can be allocated as the terminal allocation amount for each terminal; Obtaining the link node quantity range of each terminal according to the terminal allocatable quantity; Mark the link node collection points within the link node quantity range; All link node collection points are connected to build a circular collection network; Acquire multiple preset annular collection distances that are larger than the link node collection range, and the radius of each preset annular collection distance increases in sequence, and use the preset annular collection distances that increase in sequence as the multi-layer node coverage range; A multi-level resource acquisition network is constructed based on link nodes within the coverage range of multi-layer nodes and link nodes within the coverage range of nodes.

4. The method for allocating wireless network resources based on artificial intelligence according to claim 1, characterized in that: The step of obtaining the resource allocation limit value of each terminal according to the multi-level resource acquisition network, and obtaining the optimal value of resource allocation for each terminal according to the resource allocation limit value comprises: Obtain the shortest distance between each terminal and the nearest resource collection node according to the multi-level resource collection network; Obtain the range of the number of multi-level link nodes for each terminal based on the shortest distance; Obtain the number of multi-level link nodes within the multi-level link node number range; Obtain resource conversion efficiency of each terminal; Obtain the controllable resource collection scope of each terminal; Get the total number of link connections within the coverage area of ​​the node; The resource allocation limit is calculated based on the shortest distance, the range of the number of multi-level link nodes, the number of multi-level link nodes, the resource conversion efficiency, the controllable resource acquisition range and the total number of link connections, where the calculation formula is: ; Among them, K is the resource allocation limit, μ is the closest distance, α is the range of the number of multi-level link nodes, β is the number of multi-level link nodes, γ is the resource conversion efficiency, δ is the controllable resource collection range, and ε is the total number of link connections; Obtain resource acquisition interference coefficient of each terminal; Obtaining the initial allocation benchmark value for each terminal; Get the error value of each terminal; The KM algorithm is used to assist in calculating the resource allocation limit, resource acquisition interference coefficient, initial allocation benchmark value and error value to obtain the optimal value of resource allocation.

5. The method for allocating wireless network resources based on artificial intelligence according to claim 4, characterized in that: The step of obtaining a resource allocation test range according to the optimal resource allocation value, and obtaining a data test communication rate of each terminal from the resource allocation test range based on the data transmission rate includes: Obtain the optimal value of resource allocation for each terminal; Obtain a resource allocation test range according to the optimal value of resource allocation for each terminal, and obtain a resource allocation point according to the resource allocation test range; Obtain the data transmission rate of each terminal, and allocate different resource amounts to each terminal at a resource allocation point within the resource allocation test range for testing, and obtain data test transmission information of each test point, wherein the data test transmission information includes transmission rate, data packet loss rate, and delay rate; Obtain the communication rate of the corresponding resource allocation point according to the transmission rate, packet loss rate, and delay rate; The resource allocation point with the maximum communication rate is obtained, and the communication rate corresponding to the resource allocation point is used as the data test communication rate.

6. The method for allocating wireless network resources based on artificial intelligence according to claim 1, characterized in that: The step of establishing a terminal balance table according to the corresponding data test communication rate of each terminal, and acquiring the corresponding terminal resource allocation processing range of each terminal based on the terminal balance table includes: Obtaining the data test communication rate of each terminal at the corresponding resource allocation point; The data test communication rate obtains the actual data transmission information actually achieved by each terminal under the preset resource allocation, wherein the actual data transmission information includes the actual transmission rate, the actual packet loss rate, and the actual delay; Establishing a terminal balance table for each terminal according to the actual transmission rate, the actual packet loss rate, and the actual delay; Obtain resource allocation for each terminal according to the terminal balance table; The terminal resource allocation processing range is obtained according to the resource allocation amount of each terminal.

7. The method for allocating wireless network resources based on artificial intelligence according to claim 1, characterized in that: The step of acquiring the optimal test link information of the terminal according to the terminal resource allocation processing range, and allocating link node resources to the terminal based on the optimal test link information of the terminal includes: Obtaining a resource allocation range acceptable to each terminal in a test operation according to the terminal resource allocation processing range; Within the acceptable resource allocation range of each terminal, test the performance of different link nodes to obtain link information of multiple connected terminals and resource collection nodes; Acquire optimal test link information of each terminal under different resource allocations according to the multiple link information, wherein the optimal test link information includes an optimal test link node and its corresponding test resource allocation amount; Replace the link node of each terminal based on the optimal test link node; Allocate resources to each terminal based on the test resource allocation amount.

8. A wireless network resource allocation system based on artificial intelligence, characterized in that: include: A first acquisition module is used to acquire real-time monitoring data and data transmission rate of a local terminal layer connection link, wherein the local terminal layer includes multiple terminals, and each terminal has multiple link nodes, and the link nodes are used to connect with other terminals; A second acquisition module, used to acquire data queue information of each terminal according to the real-time monitoring data; A third acquisition module is used to acquire the terminal allocatable amount according to the data queue information, and to construct a multi-level resource acquisition network according to the terminal allocatable amount corresponding to each terminal; A fourth acquisition module, used to acquire a resource allocation limit value of each terminal according to the multi-level resource acquisition network, and acquire an optimal value of resource allocation of each terminal according to the resource allocation limit value; A fifth acquisition module, configured to acquire a resource allocation test range according to the optimal resource allocation value, and acquire a data test communication rate of each terminal from the resource allocation test range based on a data transmission rate; A sixth acquisition module, configured to establish a terminal balance table according to the corresponding data test communication rate of each terminal, and acquire the corresponding terminal resource allocation processing range of each terminal based on the terminal balance table; The seventh acquisition module is used to acquire the optimal test link information of the terminal according to the terminal resource allocation processing range, and allocate link node resources to the terminal based on the optimal test link information of the terminal.

9. The wireless network resource allocation system based on artificial intelligence according to claim 8, characterized in that: The second acquisition module includes: A first acquisition unit, used to acquire a resource collection period of real-time monitoring data; A second acquisition unit, used to acquire link node sending information and link node receiving information of each terminal in a resource acquisition period; A third acquisition unit is used to acquire the transmission frequency of each terminal in the resource acquisition period according to the link node transmission information and the link node reception information, and acquire the number of data packets and the size of the data packets according to the transmission frequency; A fourth acquisition unit, used to acquire a sending frequency of information sent by the link node; A fifth acquisition unit, used to acquire a delay rate of a received data packet of received information of a link node; The sixth acquisition unit is used to summarize the resource acquisition cycle, link node sending information, link node receiving information, sending frequency, data packet number, data packet size and receiving data packet delay rate to obtain data queue information of each terminal.

10. The wireless network resource allocation system based on artificial intelligence according to claim 8, characterized in that: The third acquisition module includes: a seventh acquisition unit, configured to clean the data queue information to obtain a first resource acquisition period, first link node sending information, first link node receiving information, a first sending frequency, a first data packet number, a first data packet size, and a first receiving data packet delay rate; An eighth acquisition unit, configured to acquire real-time link node distance information according to the first link node sending information and the first link node receiving information; A ninth acquisition unit, configured to acquire the number of other first link sending nodes within a preset range from which the first link node sends information; A tenth obtaining unit, used to obtain the number of other first link receiving nodes within a preset range of the first link node receiving information; an eleventh acquiring unit, configured to acquire a link node acquisition range according to the number of other first link sending nodes and the number of other first link receiving nodes; A twelfth acquisition unit, used to acquire the link node coverage range according to the link node collection range; A thirteenth obtaining unit, configured to obtain the total allocatable amount of the link nodes for each terminal according to the coverage of the link nodes, and use the total allocatable amount of the link resources as the terminal allocatable amount for each terminal; A fourteenth obtaining unit, configured to obtain a link node quantity range of each terminal according to the terminal allocatable quantity; A fifteenth acquisition unit is used to mark the link node collection point within the link node quantity range; The sixteenth acquisition unit is used to overlap all link node collection points to build a cyclic collection network; A seventeenth acquisition unit is used to acquire a plurality of preset annular collection distances that are larger than the link node collection range, wherein the radius of each preset annular collection distance increases in sequence, and the preset annular collection distances that increase in sequence are used as the multi-layer node coverage range; The eighteenth acquisition unit is used to construct a multi-level resource acquisition network according to the link nodes within the multi-layer node coverage range and the link nodes within the node coverage range.