Data secure transmission method and system based on artificial intelligence
Through the HMAC algorithm and the back-tracking rescheduling algorithm based on artificial intelligence, the problems of data transmission security and efficiency in complex network environments are solved, and the security and efficiency of data transmission are improved, ensuring the integrity and credible source of data sex.
Patent Information
- Application Number
- CN202411668421.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2024-12-17
AI Technical Summary
In complex network environments, attacks such as data theft, tampering, and forgery occur frequently. The existing technologies such as public key encryption system and MIMO collaborative model have shortcomings in data transmission security and efficiency, especially in big data transmission, and are not applicable.
Using artificial intelligence-based data security transmission method, data authentication code is generated through the HMAC algorithm, cluster transmission and traceability rescheduling algorithm are used to ensure the security and efficiency of data during transmission.
The security and efficiency of data transmission are improved. Through encryption protection and dynamic path optimization, resource congestion is avoided and transmission rate is improved, ensuring data integrity and source credibility.
Smart Images

Figure CN119155130A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and specifically to an artificial intelligence-based data security transmission method and system. Background Art
[0002] Artificial intelligence refers to a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence based on deep learning algorithms, neural network algorithms or other intelligent algorithms. Data transmission is the communication process of transmitting data from one place to another. The data transmission system usually consists of a transmission channel and data circuit termination equipment at both ends of the channel. The transmission channel can be a dedicated communication channel, or it can be provided by a data exchange network, a telephone exchange network or other types of exchange networks, thereby providing users with high-quality data communication services. In the process of data transmission, it is often necessary to use artificial intelligence technology to analyze and ensure the security of data transmission. However, in a complex network environment, attacks such as data theft, tampering and forgery occur frequently, which seriously threaten the security of data transmission in wireless communication networks.
[0003] In the prior art, public key encryption is used to encrypt communication network data to ensure the security of data transmission. However, this method is computationally complex and requires a long key, making it unsuitable for big data encryption. In addition, MIMO collaboration and multi-hop relay models are constructed to address the risk of data transmission interruption, but this requires that the antenna and channel are in good condition.
[0004] Therefore, we propose an artificial intelligence-based data security transmission method and system to solve the above problems. Summary of the invention
[0005] The purpose of the present invention is to provide a data security transmission method and system based on artificial intelligence to solve the current market problems raised by the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solution: a data security transmission method based on artificial intelligence, comprising the following steps: Step 1. Collect all transmission node information within the communication range, determine the number of nodes n, determine the number of cluster heads m according to data transmission requirements, and divide the entire communication area into m areas; Step 2. Perform a hash operation on the data block and the public key agreed upon by both parties through the HMAC algorithm to generate a data authentication code; Step 3. The data and authentication code are transmitted between clusters. When they reach the destination, another check code is generated through the HMAC algorithm. The two numbers match to ensure the secure transmission of data. Step 4. If an error occurs in the data transmission process or it is terminated, a backtracking rescheduling algorithm is used to trace back to the previous execution state and reschedule the execution until the execution is successful.
[0007] Preferably, in step 1, the number of cluster heads m is determined according to data transmission requirements, specifically as follows: .
[0008] Preferably, in step 1, after determining the number of cluster heads, cluster head election is performed based on energy consumption, network topology, and node location factors, and the specific steps are: Initialization: setting network parameters, such as node energy and network radius; Energy sensing: Each node senses its own energy status and reports it to the network; Distance perception: Each node perceives the distance to other nodes and reports it to the network; Data perception: Each node perceives the amount of data it receives and reports it to the network; Cluster head election: Based on energy perception, distance perception and data perception information, a distributed algorithm and an optimization algorithm are used to select a suitable node as the cluster head; Cluster head update: Regularly update the cluster head to adapt to changes in the network environment.
[0009] Preferably, the specific steps of step 2 are: Initialize the register cache inside the HMAC algorithm; Iterate the hash value of the data block and the public key to obtain the operation variable; After using the hash function to perform hash operations on the data blocks and public keys of the original communication data, the hash value obtained by iterative operations on the last data block and public key is used as the final output of the HMAC algorithm to generate a data authentication code.
[0010] Preferably, in step 3, the specific steps of transmitting data and authentication codes between clusters are: Construct a set of candidate paths from the source cluster to the target cluster; Calculate the quality index of each candidate path and select the best path; Following the selected optimal path, the cluster source sends the data to the next node until the data reaches the target cluster, ensuring the integrity and source credibility of the data.
[0011] Preferably, in the candidate path set, the number of hops of all paths does not exceed the maximum number of hops allowed by the communication network data transmission path.
[0012] Preferably, the specific steps of step 4 are: When a transmission process fails or is terminated, the backtracking rescheduling algorithm replans the data transmission path and communication timing, and traces the transmission process back to the previous node; If the transmission fails at the previous node, the backtracking process is repeated until the transmission is successful.
[0013] A data security transmission system based on artificial intelligence includes a processor and a memory that communicate with each other, and the processor is used to read and execute a computer program from the memory to implement the above-mentioned transmission method.
[0014] Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention adopts the HMAC algorithm so that each cluster is encrypted and protected during the data transmission process until the authentication code and the check code are successfully matched and the data transmission is completed. During the transmission process, the third party cannot know the output in advance and therefore cannot give a consistent response, thereby ensuring the security of data transmission.
[0015] (2) The present invention improves the cluster head election algorithm, improves network performance, reduces energy consumption, and improves data transmission efficiency. Clustering can also avoid resource congestion during data transmission. By limiting the data transmission activities within each cluster, the transmission rate can be improved. Through the back-tracking rescheduling algorithm, the data transmission path and communication timing are re-planned, thereby achieving the purpose of optimizing data transmission efficiency.
[0016] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present invention will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The present invention is a flowchart of a method for secure data transmission based on artificial intelligence. DETAILED DESCRIPTION
[0018] 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.
[0019] See also Figure 1 , a data security transmission method based on artificial intelligence, comprising the following steps: Step 1. Collect all transmission node information within the communication range, determine the number of nodes n, determine the number of cluster heads m according to data transmission requirements, and divide the entire communication area into m areas; Specifically, the number of cluster heads m is determined according to the data transmission requirements, as shown in the following formula: .
[0020] Specifically, after determining the number of cluster heads, cluster head election is performed based on energy consumption, network topology, and node location factors. The specific steps are as follows: Initialization: setting network parameters, such as node energy and network radius; Energy sensing: Each node senses its own energy status and reports it to the network; Distance perception: Each node perceives the distance to other nodes and reports it to the network; Data perception: Each node perceives the amount of data it receives and reports it to the network; Cluster head election: Based on energy perception, distance perception and data perception information, a distributed algorithm and an optimization algorithm are used to select a suitable node as the cluster head; Cluster head update: Regularly update the cluster head to adapt to changes in the network environment.
[0021] By improving the cluster head election algorithm, network performance can be improved, energy consumption can be reduced, and data transmission efficiency can be improved. Clustering can also avoid resource congestion during data transmission. By limiting data transmission activities within each cluster, the transmission rate can be increased.
[0022] Step 2. Perform a hash operation on the data block and the public key agreed upon by both parties through the HMAC algorithm to generate a data authentication code; Specifically, the specific steps of step 2 are: Initialize the register cache inside the HMAC algorithm; Iterate the hash value of the data block and the public key to obtain the operation variable; After using the hash function to perform hash operations on the data blocks and public keys of the original communication data, the hash value obtained by iterative operations on the last data block and public key is used as the final output of the HMAC algorithm to generate a data authentication code.
[0023] Step 3. The data and authentication code are transmitted between clusters. When they reach the destination, another check code is generated through the HMAC algorithm. The two numbers match to ensure the secure transmission of data. Specifically, the specific steps for transmitting data and authentication codes between clusters are: Construct a set of candidate paths from the source cluster to the target cluster; Calculate the quality index of each candidate path and select the best path; Following the selected optimal path, the cluster source sends the data to the next node until the data reaches the target cluster, ensuring the integrity and source credibility of the data.
[0024] Specifically, in the candidate path set, the number of hops of all paths does not exceed the maximum number of hops allowed by the communication network data transmission path.
[0025] By adopting the HMAC algorithm, each cluster is encrypted and protected during the data transmission process until the authentication code and the check code match successfully and the data transmission is completed. During the transmission process, the third party cannot know the output in advance and therefore cannot give a consistent response, thereby ensuring the security of data transmission.
[0026] Step 4. If an error occurs in the data transmission process or it is terminated, a backtracking rescheduling algorithm is used to trace back to the previous execution state and reschedule the execution until the execution is successful.
[0027] Specifically, the specific steps of step 4 are: When a transmission process fails or is terminated, the backtracking rescheduling algorithm replans the data transmission path and communication timing, and traces the transmission process back to the previous node; If the transmission fails at the previous node, the backtracking process is repeated until the transmission is successful.
[0028] A data security transmission system based on artificial intelligence includes a processor and a memory that communicate with each other, and the processor is used to read and execute a computer program from the memory to implement the above-mentioned data security transmission method.
[0029] In order to verify the actual effect of the present invention, the transmission method of the present invention is compared with the transmission method based on the DES algorithm (method 1) and the transmission method based on the AEC algorithm (method 2). The above three methods are used to transmit 100MB~500MB of data respectively, and simulated attacks are carried out during the transmission process. The amount of data successfully transmitted by each method in the simulated attack is counted to evaluate the security of data transmission. The specific results are shown in the following table.
[0030]
[0031] It can be seen from the above that the transmission method of the present invention has the best effect in terms of data transmission security and has higher transmission security than traditional methods.
[0032] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0033] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0034] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0035] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0036] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by hardware associated with program instructions, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps in the method embodiment.
[0037] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0038] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A data security transmission method based on artificial intelligence, characterized in that: The steps include: Step 1. Collect all transmission node information within the communication range, determine the number of nodes n, determine the number of cluster heads m according to data transmission requirements, and divide the entire communication area into m areas; Step 2. Perform a hash operation on the data block and the public key agreed upon by both parties through the HMAC algorithm to generate a data authentication code; Step 3. The data and authentication code are transmitted between clusters. When they reach the destination, another check code is generated through the HMAC algorithm. The two numbers match to ensure the secure transmission of data. Step 4. If an error occurs in the data transmission process or it is terminated, a backtracking rescheduling algorithm is used to trace back to the previous execution state and reschedule the execution until the execution is successful.
2. The method for secure data transmission based on artificial intelligence according to claim 1, characterized in that: In step 1, the number of cluster heads m is determined according to the data transmission requirements, as shown in the following formula: 。 3. The method for secure data transmission based on artificial intelligence according to claim 1, characterized in that: In step 1, after the number of cluster heads is determined, cluster head election is performed based on factors such as energy consumption, network topology, and node location. The specific steps are as follows: Initialization: setting network parameters, such as node energy and network radius; Energy sensing: Each node senses its own energy status and reports it to the network; Distance perception: Each node perceives the distance to other nodes and reports it to the network; Data perception: Each node perceives the amount of data it receives and reports it to the network; Cluster head election: Based on energy perception, distance perception and data perception information, a distributed algorithm and an optimization algorithm are used to select a suitable node as the cluster head; Cluster head update: Regularly update the cluster head to adapt to changes in the network environment.
4. The method for secure data transmission based on artificial intelligence according to claim 1, characterized in that: The specific steps of step 2 are: Initialize the register cache inside the HMAC algorithm; Iterate the hash value of the data block and the public key to obtain the operation variable; After using the hash function to perform hash operations on the data blocks and public keys of the original communication data, the hash value obtained by iterative operations on the last data block and public key is used as the final output of the HMAC algorithm to generate a data authentication code.
5. The method for secure data transmission based on artificial intelligence according to claim 1, characterized in that: In step 3, the specific steps of transmitting data and authentication codes between clusters are: Construct a set of candidate paths from the source cluster to the target cluster; Calculate the quality index of each candidate path and select the best path; Following the selected optimal path, the cluster source sends the data to the next node until the data reaches the target cluster, ensuring the integrity and source credibility of the data.
6. The method for secure data transmission based on artificial intelligence according to claim 5, characterized in that: In the candidate path set, the number of hops of all paths does not exceed the maximum number of hops allowed by the communication network data transmission path.
7. The method for secure data transmission based on artificial intelligence according to claim 1, characterized in that: The specific steps of step 4 are: When a transmission process fails or is terminated, the backtracking rescheduling algorithm replans the data transmission path and communication timing, and traces the transmission process back to the previous node; If the transmission fails at the previous node, the backtracking process is repeated until the transmission is successful.
8. A data security transmission system based on artificial intelligence, characterized by: It comprises a processor and a memory communicating with each other, wherein the processor is used to read a computer program from the memory and execute it to implement the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Self-adaptive clustering algorithm for heterogeneous network based on node level
CN106413031A
Topology management method based on event-driven wireless sensor network
CN111836335A
Wireless sensor network clustering routing method based on quantum reef shark mechanism
CN113596951A
Wireless sensor node clustering and cluster head election method based on network division
CN114449610A
Method for balancing cluster head node energy in wireless sensor network
CN115150915A
