Data processing method and related equipment based on blockchain

Through the blockchain-based data processing method, driving information in the intelligent transportation system is evaluated and processed in real time, which solves the risk of single point failure and data tampering in the centralized system and achieves more efficient road safety management.

CN118522172BActive Publication Date: 2024-09-24GUANGDONG ICAR GUARD INFORMATION TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410973611.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-09-24
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The existing centralized data processing system is susceptible to single-point failures in intelligent transportation systems, has a high risk of data tampering, and has limited response speed, making it difficult to accurately assess road conditions in real time and detect potential hazards in a timely manner.

Method used

Using a data processing method based on the blockchain, path planning is performed by obtaining driving information, and the camera mounted on the vehicle is used to capture and analyze environmental information in real time. Safety assessment is performed based on the analyzed information. If the assessment value is not within the safe range, the code is converted and Enter blockchain smart contract matching to get solution strategies.

Benefits of technology

It significantly shortens the time from risk identification to implementation of countermeasures, improves driving safety and road management efficiency, and ensures data transparency and credibility through decentralized and non-tamperable blockchain technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118522172B
    Figure CN118522172B
Patent Text Reader

Abstract

The present invention relates to a data processing method based on blockchain, comprising the following steps: obtaining driving information, performing path planning on the driving information through a preset analysis algorithm to obtain a driving path; capturing the surrounding environment of the driving path in real time to obtain path image information, and parsing the path image information to obtain parsing information; performing a safety assessment on the road section corresponding to the image information based on the parsing information to obtain an assessment value; if the assessment value is not within the preset safety range, encoding and converting the path image information through a preset encoding rule to obtain a blockchain format code; inputting the blockchain format code into a smart contract in the blockchain for matching to obtain a solution strategy corresponding to the blockchain format code. The technical problem that the existing centralized system is easily affected by single point failures and has a high risk of data tampering is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a blockchain-based data processing method and related equipment. Background Art

[0002] With the rapid development of intelligent transportation systems, the widespread application of autonomous driving technology and vehicle networking has put forward higher requirements for road safety and driving efficiency. Traditional data processing methods often find it difficult to accurately assess road conditions in real time and detect potential dangers in a timely manner when faced with complex and changing driving environments, and the transparency and credibility of data processing have become a major challenge. In particular, for real-time risk assessment and response measures on driving paths, the existing centralized system is susceptible to single point failures, has a high risk of data tampering, and has limited response speed. Summary of the invention

[0003] The main purpose of the present invention is to provide a blockchain-based data processing method and related equipment, which solves the technical problems that the existing centralized system is easily affected by single point failures and has a high risk of data tampering.

[0004] To achieve the above object, the present invention provides a data processing method based on blockchain, comprising the following steps:

[0005] Acquire driving information, and perform path planning on the driving information through a preset analysis algorithm to obtain a driving path; wherein the driving path includes a plurality of road sections;

[0006] The surrounding environment of the driving path is captured in real time by a camera mounted on the vehicle to obtain path image information, and the path image information is analyzed to obtain analysis information;

[0007] Performing a safety assessment on the road section corresponding to the image information based on the analysis information to obtain an assessment value;

[0008] If the evaluation value is not within the preset security range, the path image information is encoded and converted according to the preset encoding rules to obtain the blockchain format encoding;

[0009] The blockchain format code is input into the smart contract in the blockchain for matching, and a solution strategy corresponding to the blockchain format code is obtained; wherein the blockchain stores a solution strategy corresponding to the path image.

[0010] As a further solution of the present invention, the driving information includes a starting position, an ending position and weather information, and the driving information is obtained, and a path is planned for the driving information through a preset analysis algorithm to obtain a driving path, including:

[0011] Use the GPS positioning system to determine the starting and ending positions of the vehicle;

[0012] Using a preset graph theory algorithm, a path map is obtained based on the starting position and the ending position; wherein the path map includes a road network, intersections, obstacle locations, and traffic rules;

[0013] Acquire weather information, classify the weather information to obtain classified weather information, and attach the classified weather information to the path map to obtain a weather path map;

[0014] Inputting the weather path map into a preset analysis algorithm for calculation to obtain multiple path lengths in the weather path map;

[0015] Obtaining the type of the vehicle and the amount of fuel remaining in the vehicle, and filtering the plurality of path lengths based on the type of the vehicle and the amount of fuel remaining in the vehicle by a preset A* algorithm to obtain an initial path;

[0016] The initial path is interpolated by cubic spline to obtain a driving path.

[0017] As a further solution of the present invention, the classified weather information is attached to a path map to obtain a weather path map, including:

[0018] Using a time series data sliding window and a positioning device, the classified weather information is matched with a path map in a time and space dimension to obtain a time and space path map;

[0019] Using dynamic layer technology, the space-time path map is visualized and enhanced to generate an intuitive visualization enhanced map;

[0020] Obtaining a standard fitting spectrum, and using a fitter to fit the visualization enhancement spectrum based on the standard fitting spectrum to obtain a fitting spectrum;

[0021] The preset GNN module is used to calculate the fitting degree of the fitting map. If the fitting degree is within the fitting range of the standard fitting map, the fitting map is rendered to obtain a rendered map, and the rendered map is used as a weather path map.

[0022] As a further solution of the present invention, the surrounding environment of the driving path is captured in real time by a camera mounted on the vehicle to obtain path image information, and the path image information is analyzed to obtain analysis information, including:

[0023] Adjusting the exposure parameters of the camera under different lighting conditions; wherein the different lighting conditions include daytime, nighttime, inside and outside a tunnel, strong light, and backlight;

[0024] The camera vehicle corresponding to the exposure parameter continuously photographs the surrounding environment at a set frame rate to obtain dynamically changing path scene image information, and uses the path scene image information as path image information;

[0025] The HGNetv network in the preset HGTC-YOLOv8n model is used to extract scene features from the path scene image information to obtain scene features; wherein the scene features include lane lines, traffic signs, pedestrians, other vehicles, animals, obstacles, and road conditions, and the road conditions include wet, snowy, and potholes;

[0026] The scene features are enhanced using the triple attention mechanism module in the preset HGTC-YOLOv8n model to obtain enhanced features;

[0027] The content-aware feature reorganization module in the preset HGTC-YOLOv8n model is used to perform context information perception field analysis on the enhanced features to obtain analysis information.

[0028] As a further solution of the present invention, the parsed information includes potential threats to the vehicle from the surrounding environment, and the surrounding environment includes dropped objects, other vehicles, and traffic information; based on the parsed information, a safety assessment is performed on the road section corresponding to the image information to obtain an assessment value, including:

[0029] According to the position of the dropped object, a relative distance between the dropped object and the vehicle is calculated, and a first weight is assigned to the dropped object based on the relative distance to obtain a dropped object weight;

[0030] Evaluate the relative position between the vehicle and the other vehicle, assign a second weight to the other vehicle based on the relative distance, and obtain the weight of the other vehicle;

[0031] Analyze traffic information, and determine whether the vehicle is speeding based on the traffic information, and if the vehicle is speeding, assign a third weight to the vehicle to obtain the traffic information weight;

[0032] The dropped item weight, the other vehicle weight and the traffic information weight are weighted to obtain a total weight value, and the total weight value is used as an evaluation value.

[0033] As a further solution of the present invention, the path image information is encoded and converted according to a preset encoding rule to obtain a blockchain format encoding, including:

[0034] Performing vector conversion on the scene features of the path image information to obtain an image conversion vector;

[0035] The conversion vector is represented by using binary coding technology to obtain the representation vector feature;

[0036] Using a preset genetic algorithm, the preset coding rules are screened based on the representation vector features to obtain preliminary coding rules; wherein the preliminary coding rules have multiple ones;

[0037] A fitness value is set based on the representation vector feature; the preliminary coding rule is continuously iterated and selected based on the fitness value until the fitness value of the preliminary coding rule is within the range of the set fitness value, thereby obtaining an optimal coding rule; wherein the fitness includes coding efficiency, security, and tamper resistance;

[0038] The representation vector feature is encoded and converted using the optimal encoding rule to obtain a format for blockchain storage.

[0039] As a further solution of the present invention, the matching algorithm set in the smart contract includes a MobileNetv2 network, a strip pooling module and a CBAM attention mechanism; the blockchain format code is input into the blockchain for matching to obtain a solution strategy corresponding to the blockchain format code, including:

[0040] Encoding the blockchain format on the blockchain and storing it on the smart contract of the blockchain;

[0041] Perform channel compression on the blockchain format code in the smart contract through the MobileNetv2 network to obtain a channel compression code;

[0042] Through the strip pooling module, the solution strategy in the blockchain is contextually captured based on the channel compression coding to obtain a capture strategy;

[0043] Attention is paid to the capture strategy through the CABM attention mechanism to obtain an attention strategy;

[0044] Analyze the attention strategy to obtain an analysis result, perform hash processing on the analysis result, and generate an identifier;

[0045] The identifier is decoded to obtain a decoding result, and a corresponding candidate solution strategy is matched based on the decoding result. If the candidate solution strategy is a candidate solution strategy corresponding to the path image information, the candidate solution strategy is used as the solution strategy corresponding to the blockchain format encoding.

[0046] The present invention also provides a data processing device based on blockchain, comprising:

[0047] An acquisition module, used to acquire driving information, and perform path planning on the driving information through a preset analysis algorithm to obtain a driving path; wherein the driving path includes a plurality of road sections;

[0048] A parsing module, used to capture the surrounding environment of the driving path in real time through a camera carried by the vehicle to obtain path image information, and to parse the path image information to obtain parsing information;

[0049] An evaluation module, configured to perform a safety evaluation on the road section corresponding to the image information based on the analysis information to obtain an evaluation value;

[0050] An encoding module, used for encoding and converting the path image information to obtain a blockchain format code if the evaluation value is not within a preset security range;

[0051] The strategy module is used to input the blockchain format code into the smart contract in the blockchain for matching, and obtain a solution strategy corresponding to the blockchain format code; wherein the blockchain stores the solution strategy corresponding to the path image.

[0052] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0053] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0054] The data processing method based on blockchain provided by the present invention comprises the following steps: obtaining driving information, performing path planning on the driving information through a preset analysis algorithm to obtain a driving path; using a camera mounted on a vehicle to capture the surrounding environment of the driving path in real time to obtain path image information, and parsing the path image information to obtain parsing information; performing a safety assessment on the road section corresponding to the image information based on the parsing information to obtain an assessment value; if the assessment value is not within the preset safety range, encoding and converting the path image information through a pre-set encoding rule to obtain a blockchain format code; inputting the blockchain format code into a smart contract in the blockchain for matching to obtain a solution strategy corresponding to the blockchain format code; wherein the blockchain stores a solution strategy corresponding to the path image. The technical problem that the existing centralized system is easily affected by single point failures and has a high risk of data tampering is solved, and the time from risk identification to the implementation of countermeasures is significantly shortened, effectively improving driving safety and road management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 This is a schematic diagram of the steps of a data processing method based on blockchain in one embodiment of the present invention;

[0056] Figure 2 is a structural block diagram of a data processing system based on blockchain in one embodiment of the present invention;

[0057] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.

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

[0059] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0060] like Figure 1 As shown, Figure 1 This is a schematic diagram of the steps of a data processing method based on blockchain in one embodiment of the present invention;

[0061] In one embodiment of the present invention, a data processing method based on blockchain is provided, comprising the following steps:

[0062] Step S1, obtaining driving information, and performing path planning on the driving information through a preset analysis algorithm to obtain a driving path; wherein the driving path includes multiple road sections.

[0063] Specifically, in this technical solution, "obtaining driving information" is the starting point of the entire process. This step involves collecting a series of data related to driving activities, such as vehicle location, vehicle speed, traffic flow, road condition information (such as road conditions, traffic signal status), weather conditions, etc. This information can be provided by vehicle sensors, GPS systems, cameras, and other Internet of Things (IoT) devices. The subsequent step is "routing the driving information through a preset analysis algorithm". The "preset analysis algorithm" mentioned here is a pre-designed calculation method that can process and comprehensively analyze the collected driving information. The core function of the algorithm is to calculate one or more optimal driving routes based on multiple factors such as current traffic conditions, driver preferences, shortest journey time or lowest energy consumption. In this process, the algorithm may consider real-time traffic data to avoid congested sections, or predict future traffic flow changes based on historical data analysis, so as to make more reasonable route recommendations. The final result is a "driving path", which is a specific driving trajectory from the starting point to the end point. It is not just the shortest path in a straight line distance, but the best route determined after comprehensive consideration of various practical restrictions and optimization goals. It is worth noting that this "driving path" is subdivided into "multiple road sections", which means that the planning results have a certain granularity and can be specific to each drivable road in the road network. Such refinement will help to conduct more accurate analysis and evaluation of the environment of each road section in subsequent steps, such as safety risk assessment or dynamic adjustment of driving strategies.

[0064] Step S2, using a camera mounted on the vehicle, capturing the surrounding environment of the driving path in real time to obtain path image information, and analyzing the path image information to obtain analysis information.

[0065] Specifically, in this part of the process, "through the camera mounted on the vehicle" emphasizes the hardware basis of information collection, that is, using the camera installed on the vehicle as a sensing device. These cameras are usually equipped with high-definition imaging technology and wide-angle lenses, which can monitor the environment around the vehicle in all directions and without blind spots. "Real-time capture of the surrounding environment of the driving path" means that the camera continuously records or photographs the scene around the vehicle's route, including but not limited to road conditions, pedestrians, other vehicles, traffic signs, obstacles, etc. Real-time performance is the key to this link, ensuring that the system can respond to the changing external environment in a timely manner. "Obtaining path image information" means intercepting or processing image data related to the path from a continuous video stream or image sequence. These image information contains rich visual content and is the basic material for subsequent analysis. The subsequent step is "parsing the path image information", which is achieved through image processing algorithms and computer vision technology. The parsing process may include image enhancement (such as denoising, brightness adjustment), target detection (identifying vehicles, pedestrians, traffic signs, etc.), feature extraction (such as edge detection, color distribution analysis), etc. The purpose of these technologies is to extract useful information from the original image and convert it into structured data that can be understood and processed by the algorithm. Finally, "parsed information" is obtained, which is a highly abstract and condensed version of the original image information, including but not limited to the location, category, and direction of movement of obstacles, the recognition results of road signs, and any environmental factors that may affect driving safety. This parsed information provides the necessary input for subsequent decision support, safety assessment, and driving assistance functions.

[0066] Step S3: Based on the analysis information, a safety assessment is performed on the road section corresponding to the image information to obtain an assessment value.

[0067] Specifically, at this stage, "based on the parsed information" means using the key details extracted from the image information captured and parsed by the camera in the previous step, such as road conditions, traffic signs, pedestrian and vehicle behaviors, etc. This information is the direct basis for safety assessment. "Performing safety assessment on the road section corresponding to the image information" means using advanced algorithms and technologies to conduct in-depth analysis of the actual driving road section corresponding to the parsed image content. This step involves complex algorithm models, including but not limited to machine learning models, to assess the safety level of each road section. The assessment will take into account a variety of factors, such as the degree of road damage, traffic congestion, complexity of intersections, visual obstructions, past accident records, etc. "Obtaining an assessment value" means that after a comprehensive analysis, the system assigns a quantitative safety indicator or score to each assessed road section. This assessment value can intuitively reflect the safety level of the road section, and the higher the value, the safer it is, or it can be divided into risk levels, such as low risk, medium risk, high risk, etc. This assessment value is crucial for subsequent decision support because it directly indicates whether special safety measures need to be taken or whether the driving strategy needs to be adjusted to avoid potential dangers.

[0068] Step S4: If the evaluation value is not within the preset security range, the path image information is encoded and converted according to a preset encoding rule to obtain a blockchain format code.

[0069] Specifically, when "the evaluation value", that is, the safety score of the road section, does not meet the preset safety standard or range, it indicates that there are safety hazards in the road section, and further measures need to be taken to ensure safety or improve the reliability and efficiency of driving. At this time, the system will activate a special processing flow. Specifically, "through a pre-set encoding rule" means that there is a set of established and standardized methods for converting the "path image information" of the identified problem road section into a specific format. This encoding rule is designed to ensure effective compression of information, privacy protection and compatibility with the blockchain platform. The conversion process may include steps such as feature extraction of the image, data reduction, and encryption processing to adapt to the storage and processing requirements of the blockchain. "Obtaining blockchain format encoding" means that the path image information processed by the encoding rule is converted into a format suitable for storage and transmission on the blockchain. This encoding not only facilitates verification and sharing in a decentralized network, but also maintains the integrity and security of the data, laying the foundation for subsequent recording and utilization. In this way, even if the original image information may contain a large amount of data, it can be efficiently and securely integrated into the blockchain system, paving the way for subsequent smart contract matching and strategy application.

[0070] Step S5, inputting the blockchain format code into the smart contract in the blockchain for matching, and obtaining a solution strategy corresponding to the blockchain format code; wherein the blockchain stores a solution strategy corresponding to the path image.

[0071] Specifically, at this stage, "the blockchain format code", that is, the coded data of the path image information that has been specifically converted to fit the blockchain architecture, is "entered into the smart contract in the blockchain". Smart contracts are automatically executed programs on the blockchain, which can be triggered under predefined conditions to execute a series of instructions without human intervention. "Matching" means that the smart contract contains logic that can identify and compare the input blockchain format code with various path image codes stored on the blockchain. This process is based on a preset matching algorithm and aims to quickly and accurately locate specific records or strategies related to the current input code. "Obtaining a solution strategy corresponding to the blockchain format code" means that the smart contract automatically retrieves the strategy suggestions or countermeasures that match the input code and are stored in advance on the blockchain based on the matching results. These solution strategies may include but are not limited to detour suggestions, speed adjustments, emergency stop instructions, etc., which are intended to respond to identified path safety issues in real time and ensure vehicle driving safety. "Wherein, the blockchain stores the solution strategy corresponding to the path image", which means that in the blockchain, a decentralized, transparent and tamper-proof database, not only the coded information of the path image is saved, but also a series of pre-designed solution strategies for different path conditions are stored in association. In this way, once a safety hazard is detected on a certain road section, the corresponding strategy can be quickly called, which reflects the efficiency and practicality of the system.

[0072] In a specific embodiment, the driving information includes a starting position, an ending position, and weather information. Acquiring the driving information and performing path planning on the driving information through a preset analysis algorithm to obtain a driving path includes:

[0073] Use the GPS positioning system to determine the starting and ending positions of the vehicle;

[0074] Using a preset graph theory algorithm, a path map is obtained based on the starting position and the ending position; wherein the path map includes a road network, intersections, obstacle locations, and traffic rules;

[0075] Acquire weather information, classify the weather information to obtain classified weather information, and attach the classified weather information to the path map to obtain a weather path map;

[0076] Inputting the weather path map into a preset analysis algorithm for calculation to obtain multiple path lengths in the weather path map;

[0077] Obtaining the type of the vehicle and the amount of fuel remaining in the vehicle, and filtering the plurality of path lengths based on the type of the vehicle and the amount of fuel remaining in the vehicle by a preset A* algorithm to obtain an initial path;

[0078] The initial path is interpolated by cubic spline to obtain a driving path.

[0079] Specifically, the scheme elaborates on the whole process from collecting driving information to generating driving routes. The specific steps are as follows: Obtain driving information: First, the basic driving information collected covers the starting position and the ending position, which are the starting point and destination of the planned route. In addition, it also includes real-time weather information, which is an important external factor affecting driving decisions. Determine the location: Use the GPS positioning system to accurately identify the current location (starting position) and destination (ending position) of the vehicle, providing accurate geographic coordinates for route planning. Path map generation: Using a preset graph theory algorithm, based on the determined starting and ending positions, a basic path map is constructed on a comprehensive map containing road networks, intersection layouts, obstacle locations, and traffic rules to be followed. This step constructs the framework of path planning. Weather impact fusion: After the weather information obtained is classified and processed, it is attached to the above-mentioned path map to form a "weather path map" that takes weather factors into account. This can adjust the path selection according to different weather conditions (such as rainy days, foggy days, etc.), avoid potential dangerous areas or improve driving efficiency. Calculate the path length: Input the weather path map into the analysis algorithm to calculate the length of all possible paths connecting the starting point and the end point in the map. This process takes into account the impact of weather on driving speed and road conditions. Path screening: According to the type of vehicle (such as sedan, SUV, electric car, etc.) and the current remaining fuel of the vehicle, the A algorithm is used to optimize and screen the calculated multiple path lengths. The A algorithm can comprehensively consider the cost of the path (such as distance), vehicle performance and fuel economy to find the path that best suits the current vehicle conditions. Path smoothing: The final selected initial path is processed by cubic spline interpolation, which is a mathematical method used to smooth the broken lines on the path, making the driving path smoother and more natural, and improving the driving experience. Through this process, the driving path obtained not only ensures optimization, but also takes into account driving comfort. In short, by integrating GPS positioning, graph theory algorithms, weather data analysis, A* path search algorithm and path smoothing technology, this solution realizes the whole process from basic information collection to personalized driving path planning that adapts to current conditions, and fully considers driving safety, efficiency and comfort.

[0080] In a specific embodiment, the classified weather information is attached to a path map to obtain a weather path map, including:

[0081] Using a time series data sliding window and a positioning device, the classified weather information is matched with a path map in a time and space dimension to obtain a time and space path map;

[0082] Using dynamic layer technology, the space-time path map is visualized and enhanced to generate an intuitive visualization enhanced map;

[0083] Obtaining a standard fitting spectrum, and using a fitter to fit the visualization enhancement spectrum based on the standard fitting spectrum to obtain a fitting spectrum;

[0084] The preset GNN module is used to calculate the fitting degree of the fitting map. If the fitting degree is within the fitting range of the standard fitting map, the fitting map is rendered to obtain a rendered map, and the rendered map is used as a weather path map.

[0085] Specifically, the solution further refines how to integrate classified weather information into route planning. Through highly refined data processing and visual optimization, it ensures that the driving route not only considers the actual road conditions, but also closely combines real-time weather changes to improve the accuracy and practicality of the route. The specific steps are as follows: Spatiotemporal dimension matching: First, using the time series data sliding window technology, select the weather data fragments that match the driving time period according to the weather changes in the time series. Combined with the dynamic location information provided by the vehicle's positioning device, these classified weather information are accurately attached to the corresponding path map to form a spatiotemporal path map. This step ensures that each route corresponds to the specific weather conditions in its time period. Visual enhancement: Using dynamic layer technology, the spatiotemporal path map is processed, and different weather types or intensities are represented by different colors, icons or transparency, so that drivers can intuitively understand the weather conditions of each section of the road visually. This enhanced visualization map helps to quickly identify potential driving risk areas. Standard fitting and optimization: Next, a set of pre-set standard fitting maps is obtained as a reference, and the visualization enhancement map is fitted using a fitter. The purpose is to unify the presentation form and ensure that the presentation of weather effects is both in line with the actual situation and within a readable and standardized display framework. If the fitting results are consistent with the standard, it means that the weather information has been effectively and reasonably integrated into the path map. GNN calculates the degree of fit: Using the preset graph neural network (GNN) module, the fitted map is deeply calculated to evaluate the degree of integration of weather information and path information. GNN can handle complex relationships in graph data, so as to more accurately judge the quality of fitting. Rendering map generation: If the GNN calculation results show that the degree of fit reaches the range of the preset standard fitting map, it means that the integration of weather information and path information is effective. At this time, the fitting map is finally rendered, and the necessary visual effects and details are added to generate the final rendering map, which is the so-called weather path map. This map combines the driving path, real-time weather conditions and the precise matching of the two in time and space, providing drivers with the most intuitive and safe navigation guide. In summary, this solution deeply integrates complex weather information with driving routes through a series of advanced data processing and visualization technologies. The generated weather route map provides drivers with highly accurate and easy-to-understand navigation information, effectively improving driving safety and efficiency.

[0086] In a specific embodiment, the surrounding environment of the driving path is captured in real time by a camera mounted on the vehicle to obtain path image information, and the path image information is analyzed to obtain analysis information, including:

[0087] Adjusting the exposure parameters of the camera under different lighting conditions; wherein the different lighting conditions include daytime, nighttime, inside and outside a tunnel, strong light, and backlight;

[0088] The camera vehicle corresponding to the exposure parameter continuously photographs the surrounding environment at a set frame rate to obtain dynamically changing path scene image information, and uses the path scene image information as path image information;

[0089] The HGNetv network in the preset HGTC-YOLOv8n model is used to extract scene features from the path scene image information to obtain scene features; wherein the scene features include lane lines, traffic signs, pedestrians, other vehicles, animals, obstacles, and road conditions, and the road conditions include wet, snowy, and potholes;

[0090] The scene features are enhanced using the triple attention mechanism module in the preset HGTC-YOLOv8n model to obtain enhanced features;

[0091] The content-aware feature reorganization module in the preset HGTC-YOLOv8n model is used to perform context information perception field analysis on the enhanced features to obtain analysis information.

[0092] Specifically, the solution aims to capture and analyze the environmental information around the driving path in real time through the camera system on the vehicle, so as to improve the safety and reliability of autonomous driving or assisted driving. The specific implementation steps are as follows: Adaptive exposure control: For different lighting conditions (such as daytime, night, inside and outside the tunnel, strong light, backlight, etc.), the vehicle camera will automatically adjust its exposure parameters to ensure that clear images can be captured in various lighting environments. This dynamic adjustment mechanism is the basis for achieving all-weather environmental perception and helps to overcome the problem of image quality degradation caused by light changes. Continuous dynamic image acquisition: Under the optimized exposure setting, the camera continuously captures the environment around the vehicle at a set high frame rate to capture dynamically changing scenes. These continuous image streams constitute the "path scene image information", which provides a rich visual data foundation for subsequent analysis. Scene feature extraction: The collected path scene images are deeply analyzed using an advanced model called "HGTC-YOLOv8n", especially its core component, the HGNetv network. This process can extract key scene features from the image, including lane lines, traffic signs, pedestrians, other vehicles, animals, obstacles, and road conditions (such as slippery, snowy, and potholes). These features are important bases for the autonomous driving system to make decisions. Feature enhancement: After extracting the basic features, the solution further uses the "triple attention mechanism" module to enhance these features. This mechanism highlights key information and suppresses irrelevant noise by assigning different attention weights to different feature areas, thereby improving the effectiveness of features and the model's ability to understand complex environments. Content-aware feature reorganization: Finally, the "content-aware feature reorganization" module is used to perform a deep analysis of the contextual information of the enhanced features. This process not only considers individual features, but also analyzes the spatial relationship and contextual dependency between them, enhancing the understanding of the overall scene and the accuracy of prediction. The resulting "analysis information" is a more refined and structured understanding of the environment, which directly serves the vehicle's path planning, obstacle avoidance strategy, and driving decision-making. In summary, by integrating advanced visual algorithms and deep learning models, the solution achieves comprehensive, real-time, and accurate perception of the environment around the driving path, providing strong technical support for the environmental adaptability and safety of the autonomous driving system.

[0093] In a specific embodiment, the parsed information includes potential threats to the vehicle from the surrounding environment, and the surrounding environment includes dropped objects, other vehicles, and traffic information; based on the parsed information, a safety assessment is performed on the road section corresponding to the image information to obtain an assessment value, including:

[0094] According to the position of the dropped object, a relative distance between the dropped object and the vehicle is calculated, and a first weight is assigned to the dropped object based on the relative distance to obtain a dropped object weight;

[0095] Evaluate the relative position between the vehicle and the other vehicle, assign a second weight to the other vehicle based on the relative distance, and obtain the weight of the other vehicle;

[0096] Analyze traffic information, and determine whether the vehicle is speeding based on the traffic information, and if the vehicle is speeding, assign a third weight to the vehicle to obtain the traffic information weight;

[0097] The dropped item weight, the other vehicle weight and the traffic information weight are weighted to obtain a total weight value, and the total weight value is used as an evaluation value.

[0098] Specifically, the solution details how to quantitatively evaluate the safety of the road section where the vehicle is traveling based on the image information of the vehicle's surrounding environment. The specific steps are as follows: Dropped object analysis: First, the system identifies dropped objects on the road by analyzing the information and calculates the relative distance between the object and the vehicle based on its position. Dropped objects that are closer pose a greater threat to driving safety, so the system assigns a weight (first weight) to the dropped object based on this relative distance. The closer the distance, the higher the weight, to reflect the severity of the potential risk. Other vehicle evaluation: Next, the system analyzes the relative position and distance of the vehicle to other vehicles and assigns a weight (second weight) to other vehicles in a similar way. If the distance between vehicles is too close or there is a potential risk of collision, the weight will also increase accordingly to reflect the safety hazards caused by close driving or improper following. Traffic rule compliance check: The system also analyzes traffic information, especially monitoring whether the vehicle is speeding. If the vehicle is speeding, the system will assign it an additional weight (third weight) because speeding significantly increases the probability and severity of an accident. This evaluation ensures that violations of traffic rules are considered to promote safe driving. Comprehensive weight calculation: Finally, the system aggregates and calculates the above three independent weights (dropped item weight, other vehicle weight, and traffic information weight) to obtain a total weight value. This total weight value is the evaluation value of the road section, which reflects the safety evaluation after comprehensive consideration of multiple potential threats. The higher the value, the greater the safety risk of the road section, and corresponding measures need to be taken to avoid accidents. Through this series of steps, the solution can systematically evaluate driving safety based on real-time image information of the vehicle's surroundings, provide early warnings to drivers, assist safe driving decisions, or automatically trigger the vehicle's preventive safety measures, thereby improving the safety level of road driving.

[0099] In a specific embodiment, the path image information is encoded and converted according to a pre-set encoding rule to obtain a blockchain format encoding, including:

[0100] Performing vector conversion on the scene features of the path image information to obtain an image conversion vector;

[0101] The conversion vector is represented by using binary coding technology to obtain the representation vector feature;

[0102] Using a preset genetic algorithm, the preset coding rules are screened based on the representation vector features to obtain preliminary coding rules; wherein the preliminary coding rules have multiple ones;

[0103] A fitness value is set based on the representation vector feature; the preliminary coding rule is continuously iterated and selected based on the fitness value until the fitness value of the preliminary coding rule is within the range of the set fitness value, thereby obtaining an optimal coding rule; wherein the fitness includes coding efficiency, security, and tamper resistance;

[0104] The representation vector feature is encoded and converted using the optimal encoding rule to obtain a format for blockchain storage.

[0105] Specifically, the scheme details the high-level process of converting path image information into a format suitable for blockchain storage. The specific steps are as follows: Vector conversion: First, the scene features (such as lane lines, traffic signs, pedestrians, etc.) in the path image information are extracted and converted into a digital representation, namely the "image conversion vector". This process simplifies the complex image data into a set of numerical values ​​for further processing and storage. Binary encoding: Then, the "image conversion vector" is converted into a "representation vector feature" using binary encoding technology, that is, each element in the vector is converted into binary form. This step is to be compatible with the underlying data representation of the blockchain, because blockchain data is usually stored in binary form. Coding rule screening: Multiple preset coding rules are screened through genetic algorithms. Genetic algorithm is an optimization algorithm that simulates natural selection and genetic mechanisms. It is used here to find the most suitable coding rules. The algorithm evaluates the coding rules based on the "representation vector feature" and gradually optimizes the rule set through iterative selection. Fitness value setting and iterative selection: A fitness value is set for each preliminary coding rule, which reflects the coding efficiency, security and tamper-proofness of the coding rule. Through continuous iteration, rules with low fitness are continuously eliminated, and rules with high fitness are retained and improved until the "optimal encoding rule" with a fitness value within the preset range is found. This process ensures the superiority of the encoding scheme in multiple dimensions. Final encoding conversion: Using the determined "optimal encoding rule", the "representation vector feature" is finally encoded and converted to obtain a format designed specifically for blockchain storage. This format can not only be stored efficiently on the blockchain, but also ensure the integrity and immutability of the data, providing a safe and reliable storage solution for path image information. In summary, through a series of complex conversion and optimization processes, the scheme ensures that the original path image information can be stored in an efficient, secure and blockchain-friendly format, providing a solid data foundation for using blockchain technology to strengthen road safety assessment, path planning and other applications.

[0106] In a specific embodiment, the matching algorithm set in the smart contract includes a MobileNetv2 network, a strip pooling module, and a CBAM attention mechanism; the blockchain format code is input into the blockchain for matching to obtain a solution strategy corresponding to the blockchain format code, including:

[0107] Encoding the blockchain format on the blockchain and storing it on the smart contract of the blockchain;

[0108] Perform channel compression on the blockchain format code in the smart contract through the MobileNetv2 network to obtain a channel compression code;

[0109] Through the strip pooling module, the solution strategy in the blockchain is contextually captured based on the channel compression coding to obtain a capture strategy;

[0110] Attention is paid to the capture strategy through the CABM attention mechanism to obtain an attention strategy;

[0111] Analyze the attention strategy to obtain an analysis result, perform hash processing on the analysis result, and generate an identifier;

[0112] The identifier is decoded to obtain a decoding result, and a corresponding candidate solution strategy is matched based on the decoding result. If the candidate solution strategy is a candidate solution strategy corresponding to the path image information, the candidate solution strategy is used as the solution strategy corresponding to the blockchain format encoding.

[0113] Specifically, the solution describes a highly integrated and innovative smart contract application framework that combines deep learning models with blockchain technology to optimize the matching efficiency and accuracy of solution strategies. The following is a detailed explanation of the steps of the solution:

[0114] Blockchain format encoding and storage on the chain: First, prepare the problem or demand in a specific structured format (i.e., "blockchain format encoding") and store it on the chain in the smart contract of the blockchain. This ensures the immutability and transparency of the data, and provides a safe and reliable environment for subsequent processing. MobileNetv2 network channel compression: The MobileNetv2 network embedded in the smart contract is a lightweight convolutional neural network that is used to process the format encoding on the blockchain. Through this network, the original high-dimensional data is channel compressed, reducing the data dimension while retaining key features to generate "channel compression encoding". This step improves processing efficiency and makes subsequent processing more efficient. Strip pooling module context capture: Next, the "strip pooling" (a custom or improved pooling technology) module is used to analyze the potential solution strategies within the blockchain based on channel compression encoding. Strip pooling not only reduces the amount of data, but also captures the contextual relationship between different parts, thereby generating a "capture strategy" and enhancing the contextual understanding and global view of the solution. Attention strategy of CBAM attention mechanism: The "CBAM (Convolutional Block Attention Module) attention mechanism" is introduced to carefully screen the captured strategies. By assigning different attention weights to different parts, important features are strengthened and irrelevant details are weakened, thereby obtaining the "attention strategy". The CBAM mechanism improves the model's attention to key information and improves the pertinence of the strategy. Analysis results and hash processing: The attention strategy is deeply analyzed to extract the core information and hash it. The hash processing generates a unique "identifier", which is concise and unique, facilitating subsequent rapid search and verification. Decoding and matching candidate solution strategies: Finally, the above identifier is decoded to obtain the "decoding result". Based on the decoding result, matching items are found in the preset candidate strategy library. If the candidate solution strategy found is directly related to the "path image information" currently being processed, it means that the most suitable solution has been found. At this time, the candidate strategy is confirmed as the "solution strategy corresponding to the blockchain format encoding". The entire process realizes automated and intelligent processing from data chaining to strategy generation by organically combining deep learning models with blockchain technology.

[0115] The above describes the data processing method based on blockchain in the embodiment of the present invention. The following describes the data processing system based on blockchain in the embodiment of the present invention. Figure 2 , an embodiment of the data processing system based on blockchain in the embodiment of the present invention includes:

[0116] The acquisition module 21 is used to acquire driving information, and perform path planning on the driving information through a preset analysis algorithm to obtain a driving path; wherein the driving path includes multiple road sections;

[0117] The parsing module 22 is used to capture the surrounding environment of the driving path in real time through a camera carried by the vehicle to obtain path image information, and to parse the path image information to obtain parsing information;

[0118] An evaluation module 23, configured to perform a safety evaluation on the road section corresponding to the image information based on the analysis information to obtain an evaluation value;

[0119] The encoding module 24 is used to encode the path image information to obtain a blockchain format code if the evaluation value is not within a preset security range;

[0120] The strategy module 25 is used to input the blockchain format code into the smart contract in the blockchain for matching, and obtain a solution strategy corresponding to the blockchain format code; wherein the blockchain stores a solution strategy corresponding to the path image.

[0121] In this embodiment, for the specific implementation of each unit in the above system embodiment, please refer to the above method embodiment, which will not be repeated here.

[0122] Reference Figure 3 The present invention also provides a computer device in an embodiment, wherein the internal structure of the computer device can be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input device system, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0123] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.

[0124] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0125] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed 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, database or other media provided by the present invention 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. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed 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.

[0126] 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.

[0127] 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 structure or equivalent process transformation made by using the contents of the present invention specification 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 data processing method based on blockchain, characterized in that: The following steps are involved: Acquire driving information, and perform path planning on the driving information through a preset analysis algorithm to obtain a driving path; wherein the driving path includes a plurality of road sections; The surrounding environment of the driving path is captured in real time by a camera mounted on the vehicle to obtain path image information, and the path image information is analyzed to obtain analysis information; Performing a safety assessment on the road section corresponding to the image information based on the analysis information to obtain an assessment value; If the evaluation value is not within the preset security range, the path image information is encoded and converted according to the preset encoding rules to obtain the blockchain format encoding; Input the blockchain format code into the smart contract in the blockchain for matching, and obtain a solution strategy corresponding to the blockchain format code; wherein the blockchain stores a solution strategy corresponding to the path image; The path image information is encoded and converted according to the pre-set encoding rules to obtain the blockchain format encoding, including: Performing vector conversion on the scene features of the path image information to obtain an image conversion vector; The conversion vector is represented by using binary coding technology to obtain the representation vector feature; Using a preset genetic algorithm, the preset coding rules are screened based on the representation vector features to obtain preliminary coding rules; wherein the preliminary coding rules have multiple ones; A fitness value is set based on the representation vector feature; the preliminary coding rule is continuously iterated and selected based on the fitness value until the fitness value of the preliminary coding rule is within the range of the set fitness value, thereby obtaining an optimal coding rule; wherein the fitness includes coding efficiency, security, and tamper resistance; The representation vector feature is encoded and converted using the optimal encoding rule to obtain a blockchain format encoding.

2. The data processing method based on blockchain according to claim 1 is characterized in that: The driving information includes a starting position, an ending position, and weather information. The driving information is acquired, and a path is planned for the driving information through a preset analysis algorithm to obtain a driving path, including: Use the GPS positioning system to determine the starting and ending positions of the vehicle; Using a preset graph theory algorithm, a path map is obtained based on the starting position and the ending position; wherein the path map includes a road network, intersections, obstacle locations, and traffic rules; Acquire weather information, classify the weather information to obtain classified weather information, and attach the classified weather information to the path map to obtain a weather path map; Inputting the weather path map into a preset analysis algorithm for calculation to obtain multiple path lengths in the weather path map; Obtaining the type of the vehicle and the amount of fuel remaining in the vehicle, and filtering the plurality of path lengths based on the type of the vehicle and the amount of fuel remaining in the vehicle by a preset A* algorithm to obtain an initial path; The initial path is interpolated by cubic spline to obtain a driving path.

3. The data processing method based on blockchain according to claim 2 is characterized in that: The classified weather information is attached to a path map to obtain a weather path map, including: Using a time series data sliding window and a positioning device, the classified weather information is matched with a path map in a time and space dimension to obtain a time and space path map; Using dynamic layer technology, the space-time path map is visualized and enhanced to generate an intuitive visualization enhanced map; Obtaining a standard fitting spectrum, and using a fitter to fit the visualization enhancement spectrum based on the standard fitting spectrum to obtain a fitting spectrum; The preset GNN module is used to calculate the fitting degree of the fitting map. If the fitting degree is within the fitting range of the standard fitting map, the fitting map is rendered to obtain a rendered map, and the rendered map is used as a weather path map.

4. The data processing method based on blockchain according to claim 3 is characterized in that: The surrounding environment of the driving path is captured in real time by a camera mounted on the vehicle to obtain path image information, and the path image information is analyzed to obtain analysis information, including: Adjusting the exposure parameters of the camera under different lighting conditions; wherein the different lighting conditions include daytime, nighttime, inside and outside a tunnel, strong light, and backlight; The camera vehicle corresponding to the exposure parameter continuously photographs the surrounding environment at a set frame rate to obtain dynamically changing path scene image information, and uses the path scene image information as path image information; The HGNetv network in the preset HGTC-YOLOv8n model is used to extract scene features from the path scene image information to obtain scene features; wherein the scene features include lane lines, traffic signs, pedestrians, other vehicles, animals, obstacles, and road conditions, and the road conditions include wet, snowy, and potholes; The scene features are enhanced using the triple attention mechanism module in the preset HGTC-YOLOv8n model to obtain enhanced features; The content-aware feature reorganization module in the preset HGTC-YOLOv8n model is used to perform context information perception field analysis on the enhanced features to obtain analysis information.

5. The data processing method based on blockchain according to claim 1 is characterized in that: The parsed information includes potential threats to the vehicle from the surrounding environment, and the surrounding environment includes dropped objects, other vehicles, and traffic information; Performing a safety assessment on the road section corresponding to the image information based on the analysis information to obtain an assessment value includes: According to the position of the dropped object, a relative distance between the dropped object and the vehicle is calculated, and a first weight is assigned to the dropped object based on the relative distance to obtain a dropped object weight; evaluating the relative position of the vehicle and the other vehicles, assigning a second weight to the other vehicles based on the relative distance, and obtaining the weight of the other vehicles; Analyze traffic information, and determine whether the vehicle is speeding based on the traffic information, and if the vehicle is speeding, assign a third weight to the vehicle to obtain the traffic information weight; The dropped item weight, the other vehicle weight and the traffic information weight are weighted to obtain a total weight value, and the total weight value is used as an evaluation value.

6. The data processing method based on blockchain according to claim 1 is characterized in that: The matching algorithm set in the smart contract includes a MobileNetv2 network, a strip pooling module, and a CBAM attention mechanism; the blockchain format code is input into the blockchain for matching to obtain a solution strategy corresponding to the blockchain format code, including: Encoding the blockchain format on the blockchain and storing it on the smart contract of the blockchain; Perform channel compression on the blockchain format code in the smart contract through the MobileNetv2 network to obtain a channel compression code; Through the strip pooling module, the solution strategy in the blockchain is contextually captured based on the channel compression coding to obtain a capture strategy; Attention is paid to the capture strategy through the CABM attention mechanism to obtain an attention strategy; Analyze the attention strategy to obtain an analysis result, perform hash processing on the analysis result, and generate an identifier; The identifier is decoded to obtain a decoding result, and a corresponding candidate solution strategy is matched based on the decoding result. If the candidate solution strategy is a candidate solution strategy corresponding to the path image information, the candidate solution strategy is used as the solution strategy corresponding to the blockchain format encoding.

7. A data processing system based on blockchain, characterized in that: include: An acquisition module, used to acquire driving information, and perform path planning on the driving information through a preset analysis algorithm to obtain a driving path; wherein the driving path includes a plurality of road sections; A parsing module, used to capture the surrounding environment of the driving path in real time through a camera carried by the vehicle to obtain path image information, and to parse the path image information to obtain parsing information; An evaluation module, configured to perform a safety evaluation on the road section corresponding to the image information based on the analysis information to obtain an evaluation value; An encoding module, used for encoding and converting the path image information to obtain a blockchain format code if the evaluation value is not within a preset security range; A strategy module, used to input the blockchain format code into the smart contract in the blockchain for matching, and obtain a solution strategy corresponding to the blockchain format code; wherein the blockchain stores a solution strategy corresponding to the path image; The path image information is encoded and converted according to the pre-set encoding rules to obtain the blockchain format encoding, including: Performing vector conversion on the scene features of the path image information to obtain an image conversion vector; The conversion vector is represented by using binary coding technology to obtain the representation vector feature; Using a preset genetic algorithm, the preset coding rules are screened based on the representation vector features to obtain preliminary coding rules; wherein the preliminary coding rules have multiple ones; A fitness value is set based on the representation vector feature; the preliminary coding rule is continuously iterated and selected based on the fitness value until the fitness value of the preliminary coding rule is within the range of the set fitness value, thereby obtaining an optimal coding rule; wherein the fitness includes coding efficiency, security, and tamper resistance; The representation vector feature is encoded and converted using the optimal encoding rule to obtain a blockchain format encoding.

8. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Driving event recording method and system for non-image judgment

    CN111223205A

  • Method and system for obtaining real scene road condition in real time, and storage medium

    CN112802355A

  • Block chain-based vehicle blind area detection method and application system in Internet of Vehicles environment

    CN115052266A

  • Traffic node information management method based on block chain

    CN115601964A

  • Early warning method and device for vehicle environment perception, server and storage medium

    CN116704815A