Portable port truck water tank detection control system based on ultrasonic waves
Through the portable ultrasonic liquid level detection system combined with the BP-AG neural network genetic algorithm, the problem of convenience and accuracy of liquid level detection in port truck water tanks has been solved, rapid and accurate detection and unified supervision of port cargo have been achieved, and multi-modal monitoring has been improved. Intermodal transportation efficiency.
Patent Information
- Application Number
- CN202410813937.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology cannot conveniently, quickly and accurately detect the liquid level of port trucks' water tanks, resulting in the loss of port cargo. Moreover, traditional non-contact measurement methods such as ultrasonic liquid level meters need to be installed on each truck, making it difficult to achieve unified supervision.
Design a portable port truck water tank detection and control system based on ultrasonic, combining Nvidia Jetson TX2 controller, portable ultrasonic device and gate equipment, using BP-AG neural network genetic algorithm to correct non-linear errors, and using handheld portable ultrasonic device to The liquid level is detected when the truck enters the detection area, and the truck is controlled to leave the port through the gate equipment.
It achieves fast, convenient and accurate detection of the water tank level of port trucks, avoids the loss of port cargo, and improves the transportation efficiency of multimodal transport through a unified supervision system.
Smart Images

Figure CN118759904A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of detection and control, and in particular relates to a portable port truck water tank detection and control system based on ultrasonic waves. Background Art
[0002] In recent years, the country has vigorously developed multimodal transport, promoted the deep integration of various modes of transportation (such as railways, roads, waterways and air transport), further optimized and adjusted the transportation structure, improved the comprehensive transportation efficiency, reduced the social logistics costs, and met the transportation needs of different regions and distances. Through multimodal transport, goods can seamlessly switch between different modes of transportation during transportation, thus achieving fast, safe and efficient transportation. In multimodal transport, road transport is an important link, and the cargo damage problem of port "water to road" operation is crucial. In the actual "water to road" operation, there is a situation where the weight of the water tank is artificially reduced to load more goods, resulting in port cargo losses. In response to this phenomenon, the staff needs to judge whether there is water in the truck water tank when the truck leaves the port. The traditional method is mainly to roughly judge by knocking on the water tank and listening to the sound, but it cannot accurately and quickly detect the liquid level and is not conducive to the unified supervision of the port system. Therefore, a port truck water tank detection and control system is designed to connect to the port system to achieve accurate and rapid detection of the water tank liquid level, thereby improving the efficiency of multimodal "water to road" transportation operations and realizing unified supervision of the port system.
[0003] Traditional liquid level detection methods are generally divided into contact measurement and non-contact measurement. The contact measurement method requires the sensor to contact the liquid for measurement. If this method is used for detection, the truck needs to open the truck water tank for detection when it enters the detection area. The operation is complicated and it is impossible to detect the water tank liquid level in a portable and rapid manner. Therefore, the contact method cannot be used for detection. Non-contact measurement methods include laser ranging sensor level meter, radar level meter method and ultrasonic level meter method. Chang Fengyun et al. used
[0004] Laser range-finding sensor level meters are used to detect the liquid level stored in containers in real time, but a reflective float needs to be placed on the liquid surface to measure the liquid level during measurement, so it is not possible to detect the liquid level quickly; Hao Yujing and others used radar level meters to measure the dynamic changes of the material level of chemical storage tanks in real time during chlor-alkali production, but the radar level meter is relatively complicated to install, so it is not possible to detect the liquid level quickly. Wang Peng uses ultrasonic level meters to detect the level of radioactive waste liquid in nuclear power plants; Cheng Jun uses ultrasonic level meters to detect the level of cooling towers in power plants. Ultrasonic level meters are easy to install and have fast detection speeds, but this type of ultrasonic level meter is to fix the ultrasonic probe at a certain position above the liquid to be measured for detection. If this type of ultrasonic level meter is used to detect the liquid level of the water tank of a port truck, it is required that each truck water tank be installed with an ultrasonic level meter, which is difficult to achieve in reality. Therefore, a portable detection and control system based on ultrasound is proposed. This system is an independent detection system for the port. When a truck enters the detection area, the staff will hold a portable ultrasonic level meter to detect the liquid level of the truck water tank, and control whether the truck can leave the port through the gate equipment, thereby realizing the unified supervision of the port. Since the accuracy of ultrasonic detection is affected by non-target factors such as temperature, dust, and the structure of the water tank itself, nonlinear errors will be generated during the detection of the water tank level, affecting the detection results. Relying solely on hardware to compensate for the measurement accuracy is not particularly ideal. Therefore, the BP-AG neural network genetic algorithm is introduced to correct the nonlinear errors generated during the detection.
[0005] Based on the above analysis, this patent proposes a portable port truck water tank detection and control system based on ultrasound, and introduces BP-AGA to realize the nonlinear error correction of the portable ultrasonic device, aiming to quickly, conveniently and accurately detect the liquid level of the port truck water tank, and determine whether the truck water tank liquid level is qualified, thereby controlling whether the truck can leave the port and realizing unified supervision of the port system. Summary of the invention
[0006] The present invention provides a portable port truck water tank detection and control system based on ultrasound, thereby solving the practical problems that have arisen above. In order to achieve the above purpose, the technical solution of the present invention is as follows:
[0007] A portable port truck water tank detection and control system based on ultrasound comprises a Nvidia Jetson TX2 controller, a portable ultrasonic device and a gate device. The Nvidia Jetson TX2 controller is data-connected with the portable ultrasonic device and the gate device to control the entire detection system. The portable ultrasonic device is used to detect the water tank liquid level of a truck leaving the port. The measured data is transmitted to the Nvidia Jetson TX2 controller. A BP-AGA algorithm is introduced to optimize the measurement accuracy. The portable ultrasonic device also comprises a key module and a temperature sensor. The key module is used to control the portable ultrasonic device. The temperature sensor is a digital temperature sensor used to measure the temperature of the truck water tank. The BP-AGA accuracy optimization algorithm is used to correct and optimize the nonlinear error of the portable ultrasonic device. The gate device is used to determine whether the detected water tank liquid level is qualified according to the Nvidia Jetson TX2 controller and control the opening and closing of the gate. The gate device comprises a display screen and a broadcaster. The display screen and the broadcaster are used to broadcast and display the detected truck water tank liquid level in real time.
[0008] Preferably, the Nvidia Jetson TX2 controller has the characteristics of high performance and low power consumption, and has a variety of standard hardware interfaces, which can realize the control of the entire port truck water tank detection system; it uses NVIDIA cuDNN and TensorRT libraries to accelerate cutting-edge deep neural network structures, so it can process and calculate the BP-AGA neural network genetic algorithm to achieve accuracy optimization of portable ultrasonic device measurements.
[0009] Preferably, the sensor of the portable ultrasonic device is HC-SR04, which is cheap and easy to use. When the port truck enters the detection area, the portable ultrasonic device is attached to the bottom of the truck water tank, and the button is controlled to perform ultrasonic liquid level measurement on the truck water tank. The principle is as follows:
[0010]
[0011] Among them, t is the flight time from transmitting the ultrasonic wave to receiving the echo electrical signal;
[0012] v is the current ultrasonic sound velocity;
[0013] L is the ultrasonic measurement of the water tank level;
[0014] H is the actual measured water tank level;
[0015] θ is the ultrasonic reflection angle;
[0016] M is half the distance between the ultrasonic transmitter and the receiver.
[0017] As a preferred option, the DS18B20 digital temperature sensor is selected, which has the advantages of low power consumption, high performance, and strong anti-interference ability. It can directly convert the temperature into a digital signal and transmit it to the Nvidia Jetson TX2 controller for processing.
[0018] As a preferred embodiment, the digital temperature sensor directly contacts the truck water tank, so the temperature of the water tank wall is measured. If the actual temperature of the water in the water tank is to be obtained, the measured temperature needs to be compensated. The formula is as follows:
[0019]
[0020] Among them, T1 is the temperature collected by the digital temperature sensor;
[0021] T is the actual temperature of the water in the measured water tank;
[0022] t is time, ρ is material density, C is material thermal melting coefficient, λ is material thermal conductivity, Φ is internal heat source term
[0023] As a preferred method, the BP-AGA algorithm is introduced to correct the nonlinear error of ultrasonic measurement. The specific steps are as follows:
[0024] (I) Establishment of mathematical model of portable ultrasonic device
[0025] Assume that the calibration value of the truck water tank is x; the relative change value of the non-target factor on the output of the portable ultrasonic device is agreed to be γ:
[0026] γ=(max|Δy|) / y fs
[0027] Among them, γ is the relative change value;
[0028] max|Δy| is the maximum change value of the output of the portable ultrasonic device;
[0029] y fs It is the output value of the portable ultrasonic device when there is no external influencing factor, that is, the saturation value.
[0030] When the portable ultrasonic device is affected by temperature T, water tank shape ε and non-target parameter γ, the actual output of the ultrasonic wave can be expressed as:
[0031] y=f(x,T,ε,γ)
[0032] The purpose of improving the measurement accuracy is to make the measured value y of the portable ultrasonic device as close as possible to the actual measured value x, that is:
[0033] x=g(y,T,ε,γ)
[0034] The level output after compensation adjustment can be expressed as:
[0035] p=kx=kg(y,T,ε,γ)
[0036] Wherein, k is the compensation coefficient; p is the output of the liquid level after compensation, and g(*) is the mapping function.
[0037] (II) Constructing the BP neural network structure based on the mathematical model of the portable ultrasonic device
[0038] BP neural network mainly has three layers, including input layer, middle layer and output layer. The input layer mainly receives external information, the middle layer is responsible for exchanging information, and the output layer is responsible for the prediction output of the entire neural network.
[0039] (1) Initialization: Let the normalized input and output samples be
[0040] {x hk ,d k (h=1,2,..,n;k=1,2,..,N} assign random values in the interval (-1,1) to each link weight and threshold;
[0041] (2) Set k = 1, and take the sample pair (x hk ,d k ) provided to the network;
[0042] (3) Calculate the input x of each hidden layer node i , output y i ,
[0043]
[0044] (4) Calculate the input x of the output layer node j , output y j ,
[0045]
[0046] (5) Calculate the single sample point error when calculating the total input change received by the output layer node
[0047] E k =0.5(y j -d k ) 2 Rate of change:
[0048]
[0049] (6) Calculate the total input change received by each hidden layer node when the single sample point E k The rate of change of error:
[0050]
[0051] (7) Modify the weights and thresholds of each connection:
[0052]
[0053] Where m is the number of corrections;
[0054] η is the learning rate and η∈(0,1);
[0055] α is the momentum factor and α∈(0,1).
[0056] (8) Set k = k + 1 and go to step (3) until all N sample points are trained. Go to (2) for a new round of learning until the global error function of the network is
[0057]
[0058] If the value is less than a preset smaller value or the number of learning times is greater than the preset value, the learning is terminated.
[0059] (III) Accelerating the optimization of BP algorithm by genetic algorithm
[0060] When the BP algorithm training network converges slowly, the accelerated genetic algorithm (AGA) is enabled to optimize the network parameters. The optimization results of AGA are used as the initial values of the BP neural network algorithm, and the network is trained with the BP algorithm. The BP algorithm and AGA algorithm are run alternately to speed up the network convergence speed, thereby improving the accuracy optimization of the portable ultrasonic device.
[0061] Preferably, the display screen in the gate equipment uses an OLED display screen to display whether the measured liquid level is qualified. When the measured liquid level in the truck water tank is qualified, the Nvidia Jetson TX2 controller controls the gate to open, and the truck can leave the port; when the measured liquid level in the truck water tank is unqualified, the Nvidia Jetson TX2 controller controls the gate to remain closed, and the truck cannot leave the port.
[0062] The beneficial effects of the present invention are:
[0063] 1. The present invention can effectively avoid the loss of port cargo by quickly, conveniently and accurately detecting the water tank of the truck leaving the port through ultrasonic detection to determine the liquid level value in the water tank of the truck leaving the port.
[0064] 2. The present invention uses the Nvidia JetsonTX2 controller, which has high performance, low power consumption and can process complex neural network genetic algorithms; uses the HC-SR04 ultrasonic device, which is cheap and easy to use; uses the DS18B20 digital temperature sensor, which has the advantages of low power consumption, high performance, strong anti-interference ability, etc., and can directly convert the temperature into a digital signal and transmit it to the central controller for processing.
[0065] 3. The present invention takes into account that in the external environment, the portable ultrasonic device is easily disturbed by factors such as the ambient temperature, its own structure, and the shape and position of the object being measured, resulting in large errors in the detection output signal. A portable ultrasonic device accuracy optimization model based on the BP-AGA neural network genetic algorithm is proposed to improve the accuracy of measuring the water tank liquid level.
[0066] 4. The present invention takes into account that the digital temperature sensor directly contacts the truck water tank, and thus detects the temperature of the truck water tank wall. Therefore, it is necessary to compensate the measured temperature to improve the accuracy of the measured temperature. The formula is as follows:
[0067]
[0068] Among them, T1 is the temperature collected by the digital temperature sensor;
[0069] T is the actual temperature of the water in the measured water tank;
[0070] t is time, ρ = 7.9 × 10 3 kg / m 3 is the material density;
[0071] C=(0.45~0.47)×10 3 J / (kg·℃) is the thermal melting coefficient of the material;
[0072] λ=45~50w / (m·℃) is the thermal conductivity of the material, and Φ is the internal heat source term.
[0073] 5. The present invention controls whether the truck can leave the port by setting up a gate device. When the water tank liquid level is qualified, the gate is controlled to open and the truck leaves the port. When the water tank liquid level is unqualified, the gate is controlled to be always in a closed state and the truck cannot leave the port. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 It is a structural schematic diagram of a port truck water tank detection and control system of the present invention.
[0075] Figure 2 It is a flow chart of the port truck water tank detection control system of the present invention.
[0076] Figure 3It is a modular design diagram of the port truck water tank detection and control system of the present invention.
[0077] Figure 4 It is a schematic diagram of transmitting and receiving of the portable ultrasonic device of the present invention.
[0078] Figure 5 It is the flow chart of the AGA-BP optimization algorithm of the present invention. DETAILED DESCRIPTION
[0079] The specific implementation modes of the present invention are described in detail below with reference to the accompanying drawings.
[0080] A portable port truck water tank detection and control system based on ultrasonic wave, such as Figure 1 As shown, the system includes an Nvidia Jetson TX2 controller 1, a portable ultrasonic device 9, a gate device 10, and a detection area 2. The portable ultrasonic device 9 is connected to the Nvidia Jetson TX2 controller 1 for data transmission, including a digital temperature sensor 6, a portable ultrasonic sensor 8, and a button module 7. The gate device 10 is controlled by the Nvidia Jetson TX2 controller 1, including an OLED display 3, a broadcaster 4, and a gate 5. When the port truck enters the detection area 2, the operator holds the portable ultrasonic device 9 to perform ultrasonic liquid level detection on the truck water tank. First, the portable ultrasonic sensor 8 is placed close to the bottom of the truck water tank, and the button module 7 is pressed to perform ultrasonic detection, while the digital temperature sensor 6 is controlled to measure the temperature of the truck water tank. Then, the measured data is transmitted to the Nvidia Jetson TX2 controller 1 for optimization processing. Finally, the Nvidia Jetson TX2 controller 1 judges the calibrated measurement data. If the liquid level in the truck water tank is qualified, the result is output to OLED 3 and the announcer 4, the gate 5 is controlled to be opened, and the truck leaves the port; if the liquid level in the truck water tank is unqualified, the gate 5 is controlled to be closed, the truck cannot leave the port, and the result is output to OLED 3 and the announcer 4.
[0081] Through the operation of the above system, the liquid level of the water tank of the truck leaving the port can be quickly and portable detected, and whether the truck can leave the port can be controlled. The flow chart of the system is as follows: Figure 2 As shown, when the port truck enters the detection area, the water tank liquid level of the truck is detected, nonlinear error correction is performed, and it is determined whether the measured liquid level is qualified. If the water tank liquid level of the truck is qualified, the announcer and the display screen display and broadcast it, and then the Nvidia Jetson TX2 controller controls the gate to open, and the truck drives out of the port. If the water tank liquid level of the truck is unqualified, the central controller controls the gate to be closed, and the vehicle cannot drive out of the port.
[0082] As a preferred choice, the Nvidia Jetson TX2 controller is selected. The modular design of the system is shown in the following figure. Figure 3 As shown, the input of the system includes a button module, an ultrasonic sampling module and a temperature sampling module, and the output of the system is a gate device.
[0083] As a preferred embodiment, the sensor probe of the portable ultrasonic device is selected from HC-SR04, including an ultrasonic transmitter and an ultrasonic receiver. Figure 4 As shown, the actual measured water tank liquid level H is calculated by the ultrasonic measurement distance L. The specific calculation is as follows:
[0084]
[0085]
[0086] Wherein, L is the ultrasonic measurement of the water tank level;
[0087] H is the actual measured water tank level;
[0088] θ is the ultrasonic reflection angle;
[0089] M is half the distance between the ultrasonic transmitter and the receiver.
[0090] As a preference, considering that the digital temperature sensor of the present invention directly contacts the truck water tank, and thus detects the temperature of the truck water tank wall, it is necessary to compensate the measured temperature to improve the accuracy of the measured temperature. The formula is as follows:
[0091]
[0092] Among them, T1 is the temperature collected by the digital temperature sensor;
[0093] T is the actual temperature of the water in the measured water tank;
[0094] t is time, ρ = 7.9 × 10 3 kg / m 3 is the material density;
[0095] C=(0.45~0.47)×10 3 J / (kg·℃) is the thermal melting coefficient of the material;
[0096] λ=45~50w / (m·℃) is the thermal conductivity of the material, and Φ is the internal heat source term.
[0097] As a preference, considering that in the actual measurement process, the measurement accuracy of the portable ultrasonic device is affected by other non-target factors such as its own structure, calibration error, noise, etc. Figure 5 As shown, the BP-AGA algorithm is introduced to correct nonlinear errors. The specific steps are as follows:
[0098] (I) Specific training process of BP neural network:
[0099] (1) Given network training parameters
[0100] (2) Online learning
[0101] (3) Error back propagation: If the error between the network prediction output and the actual expected value is large, the weights and thresholds are corrected, otherwise the network is returned for learning.
[0102] (4) Back propagation is the modification of weights and thresholds, and then returning to network learning.
[0103] (II) Steps of AGA algorithm:
[0104] The accuracy of the prediction value of the neural network is closely related to the input value, initial threshold and weight. In order to make the prediction error of the network as small as possible, the present invention adopts the GAG algorithm to correct the weight and threshold of the BP network.
[0105] (1) Population initialization;
[0106] (2) Calculate the population fitness f i ;
[0107] (3) The selection and crossover probability is P c , the mutation probability is P m , in the AGA genetic algorithm, and are adjusted according to the following formula:
[0108]
[0109] (4) According to the fitness f i Determine whether the evolution is complete. If not, recalculate the population fitness f i .
[0110] Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope defined by the claims.
Claims
1. A portable port truck water tank detection and control system based on ultrasound, comprising an Nvidia Jetson TX2 controller, a portable ultrasonic device and a gate device, wherein the Nvidia Jetson TX2 controller is data-connected with the portable ultrasonic device and the gate device to control the entire detection system, wherein the portable ultrasonic device is used to detect the water tank liquid level of the truck leaving the port, and the measured data is transmitted to the Nvidia Jetson TX2 controller and the BP-AGA algorithm is introduced to correct the nonlinear measurement error. It is characterized in that The portable ultrasonic device also includes a key module and a temperature sensor. The key module is used to control the portable ultrasonic device. The temperature sensor is a digital temperature sensor used to measure the temperature of the truck water tank. The BP-AGA precision optimization algorithm is used to correct the nonlinear error of the measurement. The gate device is used to determine whether the detected water tank liquid level is qualified according to the Nvidia Jetson TX2 controller and control the opening and closing of the gate. It is characterized in that the gate device includes a display screen and a broadcaster. The display screen and the broadcaster are used to display and broadcast the detected truck water tank liquid level in real time.
2. The portable port truck water tank detection and control system based on ultrasonic wave as claimed in claim 1, It is characterized in that The Nvidia Jetson TX2 controller has the characteristics of high performance and low power consumption, and has a variety of standard hardware interfaces, which can realize the control of the entire port truck water tank detection system; it can process and calculate the BP-AGA neural network genetic algorithm to realize the nonlinear error correction of the portable ultrasonic device.
3. As claimed in claim 1, when a truck enters the detection area, the portable ultrasonic device is attached to the bottom of the truck's water tank to measure the liquid level of the truck's water tank. It is characterized in that The portable ultrasonic device is an independent device for the port, which is easy to operate and does not require installation.
4. The portable port truck water tank detection and control system based on ultrasonic wave as claimed in claim 1, It is characterized in that The portable ultrasonic device is also provided with a temperature sensor and a key module. The key module controls the ultrasonic detection and at the same time controls the temperature sensor to measure the temperature of the truck water tank.
5. The portable port truck water tank detection and control system based on ultrasonic wave as claimed in claim 1, It is characterized in that The temperature sensor is in direct contact with the truck water tank and measures the water tank wall temperature. The measured temperature needs to be compensated. The formula is as follows: Among them, T 1 is the temperature collected by the temperature sensor; T is the actual temperature of the water in the measured water tank; t is the time, ρ is the material density, C is the material thermal melting coefficient, λ is the material thermal conductivity, and Φ is the internal heat source term.
6. The portable port truck water tank detection and control system based on ultrasonic wave as claimed in claim 1, It is characterized in that In the actual measurement process, the accuracy of the portable ultrasonic device is affected by its own structure, calibration error, noise and other non-target factors. Therefore, the BP-AGA algorithm is introduced to correct the nonlinear error. The specific steps are as follows: (1) Establishment of mathematical model of portable ultrasonic device; (2) Constructing the BP neural network structure based on the mathematical model of the portable ultrasonic device The BP neural network is mainly a three-layer structure, including the input layer, the middle layer and the output layer. The input layer mainly receives external information, the middle layer is responsible for exchanging information, and the output layer is responsible for the prediction output of the entire neural network. (3) Accelerating the optimization of BP algorithm by genetic algorithm When the BP algorithm training network converges slowly, AGA is enabled to optimize the network parameters. The optimization results of AGA are used as the initial values of the BP neural network algorithm. The BP algorithm is then used to train the network to speed up the network convergence, thereby improving the detection accuracy of the portable ultrasonic device.
7. As claimed in claim 1, the portable ultrasonic-based port truck water tank detection and control system, the portable ultrasonic device transmits data to the Nvidia Jetson TX2 controller for optimization and judgment. When the truck water tank liquid level is qualified, it is displayed and broadcast, and the gate is controlled to open the truck to drive out of the port; when the detected truck water tank liquid level is unqualified, it is displayed and broadcast, and the gate is controlled to be in a closed state.
Citation Information
Patent Citations
Method and system for ultrasonic dynamic liquid level measurement based on neural network
CN103499374A
Silicon microaccelerometer temperature compensation method and system based on GA-optimized BP neural network
CN108073075A
Ultrasonic dispersion instrument temperature control method based on neural network
CN109597449A
Machine tool thermal error modeling method based on deep learning
CN110083125A
Vehicle collision early warning system and method based on IGA-BP neural network in Internet of vehicles environment
CN111081067A
