Road surface cover identification method and device based on peak and phase detection
By detecting the peak and phase characteristics of the sensitive capacitance and combining them with a narrow neural network model, the problem of distinguishing between ice and snow and dry road surfaces in traditional methods has been solved, achieving more accurate and real-time road surface cover identification, and improving road safety and detection reliability.
Patent Information
- Application Number
- CN202410461145.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-04-17
AI Technical Summary
Traditional methods for detecting road surface coverings based on sensitive capacitance suffer from insufficient accuracy in distinguishing between icy and dry road surfaces due to similarities, which affects the reliability and safety of road surface detection.
By detecting the peak and phase characteristics of the sensitive capacitor, and combining them with a narrow neural network model for intelligent classification and prediction, the peak attenuation factor, phase difference, and temperature characteristics of the high-pass filter circuit are extracted, and a narrow neural network model is constructed to identify road surface coverings.
It improves the accuracy and real-time performance of road surface cover detection, enhances sensitivity to road conditions, provides more reliable road condition information, reduces the risk of traffic accidents, and adapts to different road conditions and environmental changes.
Smart Images

Figure CN118296352B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the fields of electronic technology and sensor technology, and particularly relates to a method and device for identifying road surface coverings based on peak and phase detection. Background Technology
[0002] In the field of road cover detection, traditional methods primarily distinguish different types of road covers, such as ice, water, snow, and dry surfaces, by analyzing the capacitance values reflected in the charging and discharging waveforms of sensitive capacitors. However, while sensitive capacitor charging and discharging waveforms are widely used to differentiate between different road covers, in certain situations, particularly when there is similarity between snow and dry surfaces, traditional methods may face challenges in accurately distinguishing them. In some cases between snow and dry surfaces, the similarity of the sensitive capacitor charging and discharging waveforms can limit the application of traditional detection methods. This similarity may be due to specific weather or road conditions, making it difficult for the charging and discharging waveforms to clearly differentiate between the two types of road covers. This limitation can lead to uncertainty and unreliability in road cover detection, thus affecting road safety and vehicle reliability. Therefore, to address these limitations of using capacitance for differentiation in road cover detection, new technologies and methods are needed to improve the accuracy and reliability of road cover detection. New technologies and methods need to explore more characteristic quantities of sensitive capacitors and utilize more intelligent and accurate algorithms or detection methods to overcome the limitations of traditional methods in certain road cover situations. Summary of the Invention
[0003] Purpose of the Invention: The purpose of this invention is to provide a method and apparatus for identifying road surface coverings based on peak and phase detection. By detecting more features of sensitive capacitance and employing intelligent classification and prediction algorithms, it aims to overcome the limitations of traditional methods in distinguishing road surface coverings. This invention aims to improve the accuracy and real-time performance of road surface covering detection, providing more reliable road condition information for vehicle travel, thereby improving road safety and reducing the risk of traffic accidents. Simultaneously, this invention aims to achieve intelligent identification of road conditions, providing drivers and traffic managers with more comprehensive and reliable road condition detection and early warning services.
[0004] Technical solution: The present invention provides a method for identifying road surface coverings based on peak and phase detection, comprising the following steps:
[0005] Step 1, Sensitive Capacitor Signal Acquisition Stage: The sensitive capacitance of the sensitive capacitor is calculated by calculating the dielectric constant of the road surface cover. A high-pass filter circuit is formed by connecting the sensitive capacitor and a resistor in series. The changes in the equivalent series resistance and equivalent series capacitance are reflected by measuring the signal attenuation and phase shift of a sinusoidal signal of a certain frequency after passing through the high-pass filter circuit.
[0006] Step 2, Feature Extraction Stage: The peak attenuation factor, phase difference, and temperature of the high-pass filter circuit are extracted sequentially through the peak detection circuit, phase detection circuit, and platinum resistance temperature measurement circuit, and the three feature values are used to form a dataset.
[0007] Step 3, Neural Network Classification Stage: Construct a narrow neural network model, train the narrow neural network model using the dataset from Step 2, set the activation function, and obtain the trained narrow neural network model;
[0008] Step 4, Cover Classification Output: The trained narrow neural network model is used to identify and classify road surface covers.
[0009] Furthermore, in step 1, the calculation of the sensitive capacitance of the sensitive capacitor by calculating the dielectric constant of the road surface cover specifically involves:
[0010] Assuming the inner conductor radius is *a*, the outer conductor radius is *b*, the cylinder height is *l*, and the space between the inner and outer conductors is filled with a uniform dielectric material with a dielectric constant of ε, according to the formula for calculating a cylindrical capacitor, we can obtain:
[0011]
[0012] Where: C is the capacitance of the cylindrical capacitor, ε is the dielectric constant of the dielectric material filling the space between the cylinders, l is the height of the capacitor, a is the radius of the inner conductor, and b is the radius of the outer conductor.
[0013] Since the size of the capacitor and the dielectric constant of the filler are fixed, the capacitance of the sensitive capacitor itself remains unchanged. When the surface of the sensitive capacitor is covered with air, water, ice, snow, or other substances, its capacitance value is:
[0014] C 总 =C 圆柱 +C 上表面 +C 下表面
[0015] Where C 总 For the total capacitance of the sensitive capacitor, C 圆柱 The capacitance of the cylindrical portion remains fixed; C 上表面 C 下表面 Let C be the capacitance value of the upper and lower surfaces of the capacitor. Since the environment around the lower surface of a cylindrical capacitor remains essentially unchanged, C... 下表面 It also remains unchanged; at this point, only C needs to be considered. 上表面 ;
[0016] According to Gauss's law and the boundary conditions of the electrostatic field, assuming the inner conductor of the cylindrical capacitor carries a positive charge and the outer conductor carries a negative charge, the potential of the positive and negative plates of the cylindrical capacitor in an infinitely large uniform medium is obtained as follows:
[0017]
[0018] Where Q is the total surface charge of the cylindrical capacitor; a is the radius of the inner ring on the surface of the cylindrical capacitor; ε1 is the dielectric constant of the coating on the surface of the cylindrical capacitor; ε2 is the dielectric constant of the filling material in the middle of the cylindrical capacitor; r is the distance from the center of the cylindrical capacitor surface to a certain position on the plate; z is the thickness of the metal layer constituting the surface of the cylindrical capacitor; L is the distance between the outer edge of the inner ring and the outer ring on the surface of the cylindrical capacitor; l is the width of the cavity between the inner ring and the outer ring on the surface of the cylindrical capacitor.
[0019] Assuming the height of the metal layer in the cylindrical capacitor is z = 0, the potential difference between the positive and negative plates is:
[0020]
[0021] When a cylindrical capacitor has a covering, assuming the covering thickness is d, using the method of images, at a vertical distance z = 2d from the surface of the cylindrical capacitor, there is a virtual power source with a charge Q′, the size of which is expressed as:
[0022]
[0023] This power source superimposes the electric field on the surface of the cylindrical capacitor, applying a magnitude of U' at the positive plate r = a and the negative plate r = a + l on the surface of the cylindrical capacitor. + and U' - electric potential field:
[0024]
[0025] The potential difference generated on the surface of the cylindrical capacitor by this power source is:
[0026]
[0027] Where A is:
[0028]
[0029] At this point, the total potential difference generated on the surface of the cylindrical capacitor is:
[0030] U 总 =U+U'
[0031] Where U is the potential difference generated by the charge on the surface of the cylindrical capacitor itself, and U′ is the potential difference superimposed by the virtual power source induced above the surface of the cylindrical capacitor; then, according to the formula for capacitance and potential difference, the total capacitance C generated on the surface of the cylindrical capacitor is:
[0032]
[0033] According to the above formula, the capacitance value of the sensitive capacitor is only related to the dielectric constant ε1 of the covering material and the thickness d of the covering material. All other values are constant. When the dielectric constant and the thickness of the covering material change, the capacitance value will change.
[0034] Furthermore, in step 1, the high-pass filter circuit constructed by connecting the sensitive capacitor and the resistor in series, and the changes in the equivalent series resistance and equivalent series capacitance are reflected by measuring the signal attenuation and phase shift of a sinusoidal signal of a certain frequency after passing through the high-pass filter circuit, specifically:
[0035] The actual capacitor can be represented as an ideal capacitor C, a resistor R, and an inductor L connected in series. For this ideal capacitor, its impedance is:
[0036]
[0037] When the formula satisfies: When the capacitor exhibits capacitive behavior, it is capacitive.
[0038] When the formula satisfies: At low frequencies, capacitors exhibit inductive properties, while at high frequencies they display inductive-like characteristics.
[0039] When the formula satisfies: When the capacitive reactance vector equals the inductive reactance vector, the total impedance of the capacitor is at its minimum, exhibiting pure resistive characteristics. At this point, f is called the self-resonant frequency of the capacitor.
[0040] Furthermore, step 2 specifically involves:
[0041] The peak attenuation factors of the input and output high-pass filter circuits are:
[0042]
[0043] Where R represents the resistance in series with the capacitor in the high-pass filter circuit, Rs represents the equivalent series resistance, and Cs represents the equivalent series capacitance.
[0044] The phase difference is:
[0045]
[0046] In the current source measurement method, the platinum resistance thermometer in the platinum resistance temperature measuring circuit is connected to a constant current source circuit. The voltage across the platinum resistance is measured according to Ohm's law.
[0047] V = I × R
[0048] By measuring the voltage across the resistor and the known constant current, the resistance value of the platinum resistance is calculated. Using the temperature-resistance characteristic curve of the platinum resistance, the resistance value is converted into the corresponding temperature, thereby obtaining three characteristic values of the high-pass filter circuit: phase difference, peak attenuation factor, and temperature.
[0049] Furthermore, step 3 specifically includes the following steps:
[0050] Step 3.1, Data Preparation: First, prepare the dataset for training and testing. The dataset includes input features: temperature, phase difference, peak attenuation factor, and the label and category corresponding to each sample: ice, snow, water, dry.
[0051] Step 3.2, Neural Network Structure Definition: Determine the structure of the neural network. For narrow neural networks, set it to include a fully connected layer;
[0052] Step 3.3, Model Building: Using the predefined neural network, build and initialize the neural network model. The entire model includes an input layer with 3 neurons, a fully connected layer with 10 neurons, and an output layer with 4 neurons.
[0053] Step 3.4, Training: Use training data to train the neural network model. Through multiple iterations, set the number of iterations, feed the input data to the neural network model, perform forward and backward propagation, and continuously adjust the parameters in the neural network so that the model can adapt to and learn the features and patterns in the data.
[0054] Step 3.5, Activation Function: The ReLU function is used in the hidden layers of the neural network, which introduces non-linearity into the output of the neurons. The softmax function is used in the output layer to convert the output values into a form representing the probability of each class for classification prediction.
[0055] Step 3.6, Prediction: Use the trained model to predict new data. Feed the test data to the trained neural network model, obtain the probability distribution of each category through forward propagation, and select the category with the highest probability as the final prediction result.
[0056] Step 3.7, Model Evaluation: Adjust and improve the model based on the accuracy to achieve better performance.
[0057] Furthermore, step 3.5 specifically includes:
[0058] The hidden layer uses ReLU as its activation function. ReLU is a non-linear activation function, and its formula is:
[0059] f(x) = max(0,x)
[0060] For an input x, if x is positive or zero, the output of the activation function is x; if x is negative, the output of the activation function is 0. On the positive interval, the derivative of the ReLU function is 1.
[0061] The formula for the softmax function is as follows:
[0062]
[0063] Where, x i This represents the i-th element in the original output vector; K is the total number of categories;
[0064] The Softmax function applies each input element x i Exponentialization is performed by taking the exponent of e and then dividing by the sum of the exponentialized values of all input elements, thus converting the original output into a set of normalized probability values.
[0065] The present invention also discloses a road surface cover identification device based on peak and phase detection, including an MCU microcontroller and a high-pass filter circuit, a peak detection circuit, a phase detection circuit, a platinum resistance temperature measurement circuit, and a power supply circuit connected to the MCU microcontroller;
[0066] The high-pass filter circuit is composed of a sensitive capacitor and a resistor connected in series.
[0067] The peak detection circuit is used to detect the peak value of the signals input to and output to the high-pass filter circuits;
[0068] The phase detection circuit is used to detect the phase difference between the signals of the input and output high-pass filter circuits;
[0069] The platinum resistance temperature measurement circuit is used to measure real-time temperature.
[0070] The power supply circuit includes analog circuits and digital circuits.
[0071] The present invention also discloses a computer device / equipment / system, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method of the present invention.
[0072] The present invention also discloses a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implements the steps of the method of the present invention.
[0073] The present invention also discloses a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the method of the present invention.
[0074] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:
[0075] (1) Improved accuracy. The combination of sensitive capacitance peak and phase difference with intelligent classification and prediction algorithms can provide more multi-dimensional data information. This multi-dimensional data combination analysis can improve the accuracy of road surface cover classification. Compared with the traditional method of detecting charging and discharging waveforms from a single data source, combining multiple features can provide a more comprehensive understanding of road surface conditions and improve the accuracy of identifying different covers.
[0076] (2) Enhanced real-time performance and sensitivity. Sensitive capacitance peak and phase difference measurements provide sensitive feedback on the physical characteristics of the overlay. Combined with intelligent classification and prediction algorithms, these features can be analyzed quickly and in real time, enabling rapid response and monitoring of road conditions. This enhanced real-time performance and sensitivity help to identify road changes more quickly and take appropriate measures.
[0077] (3) Improve road safety. More accurate and real-time identification of road surface coverings helps drivers better understand road conditions, warn of potential hazards, and thus reduce the risk of accidents. Data analysis combined with intelligent classification and prediction algorithms can provide vehicles with more reliable road information, helping drivers make more informed driving decisions and improving road safety.
[0078] (4) Intelligent classification and prediction algorithms have been introduced into road surface cover detection. These algorithms allow for more accurate analysis of the characteristics reflected in the output of sensitive capacitors, and, combined with machine learning or deep learning models, enable intelligent classification of road surface covers. Intelligent classification and prediction algorithms can utilize deeper features in the output data of sensitive capacitors to establish complex pattern recognition and classification models, achieving accurate identification of road surface covers. This method overcomes the difficulty of identifying the similarity of charging and discharging waveforms in traditional methods, improving the accuracy and robustness of cover detection. Furthermore, intelligent classification and prediction algorithms have the advantage of adapting to different road conditions and environmental changes, providing more reliable support for road safety and vehicle driving stability. Attached Figure Description
[0079] Figure 1 This is a diagram of the actual capacitance equivalent model in an embodiment of the present invention.
[0080] Figure 2 The graph shows the equivalent series capacitance and resistance of the capacitors at -20℃ and 20℃ as a function of frequency in the embodiments of the present invention.
[0081] Figure 3 This is a schematic diagram of the detection circuit design in an embodiment of the present invention.
[0082] Figure 4 This is a diagram of a high-pass filter constructed from sensitive capacitors according to an embodiment of the present invention.
[0083] Figure 5This is a schematic diagram of the overall application scenario of an embodiment of the present invention.
[0084] Figure 6 This is a hardware block diagram of an embodiment of the present invention.
[0085] Figure 7 This is a circuit diagram of a platinum resistance temperature measurement system according to an embodiment of the present invention.
[0086] Figure 8 This is a peak detection circuit diagram according to an embodiment of the present invention.
[0087] Figure 9 This is a phase detection circuit diagram according to an embodiment of the present invention.
[0088] Figure 10 This is a power supply circuit diagram according to an embodiment of the present invention.
[0089] Figure 11 The figure shows the test results at 60°C in an embodiment of the present invention.
[0090] Figure 12 This is a graph showing the test results at 40℃ in an embodiment of the present invention.
[0091] Figure 13 This is a graph showing the test results at 20℃ in an embodiment of the present invention.
[0092] Figure 14 This is a graph showing the test results at 0°C in an embodiment of the present invention.
[0093] Figure 15 This is a graph showing the test results at -20℃ in an embodiment of the present invention.
[0094] Figure 16 The image shows the test results at -30℃ in an embodiment of the present invention.
[0095] Figure 17 The image shows the test results of an embodiment of the present invention.
[0096] Figure 18 This is a neural network topology diagram according to an embodiment of the present invention.
[0097] Figure 19 This is a neural network prediction classification diagram from an embodiment of the present invention. Detailed Implementation
[0098] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
[0099] This invention distinguishes road surface coverings based on an equivalent model of a sensitive capacitor. The capacitance of the sensitive capacitor is calculated as follows:
[0100] Assume the radius of the inner conductor of the coaxial cylinder is *a*, the radius of the outer conductor is *b*, the height of the cylinder is *l*, and the space between the inner and outer conductors is filled with a uniform dielectric material with a dielectric constant of ε. According to the formula for calculating a cylindrical capacitor, we can obtain:
[0101]
[0102] Where: C is the capacitance of the cylindrical capacitor, ε is the dielectric constant of the dielectric material filling the space between the cylinders, l is the height of the capacitor, a is the radius of the inner conductor, and b is the radius of the outer conductor.
[0103] Since the size of the capacitor and the dielectric constant of the filler are fixed, the capacitance of the sensitive capacitor itself will not change. When the surface of the sensitive capacitor is covered with substances such as air, water, ice, or snow, its capacitance value is:
[0104] C 总 =C 圆柱 +C 上表面 +C 下表面
[0105] Where C 总 For the total capacitance of the sensitive capacitor, C 圆柱 The capacitance of the cylindrical portion remains constant. C 上表面 C 下表面 Let C be the capacitance value of the upper and lower surfaces of the capacitor. Since the environment around the lower surface of a cylindrical capacitor remains essentially unchanged, C... 下表面 It also remains unchanged; at this point, only C needs to be considered. 上表面 .
[0106] According to Gauss's law and the boundary conditions of the electrostatic field, assuming the inner conductor of the cylindrical capacitor carries a positive charge and the outer conductor carries a negative charge, the potential of the positive and negative plates of the cylindrical capacitor in an infinitely large uniform medium can be obtained as follows:
[0107]
[0108] Where Q is the total surface charge of the cylindrical capacitor; a is the radius of the inner ring on the surface of the cylindrical capacitor; ε1 is the dielectric constant of the coating on the surface of the cylindrical capacitor; ε2 is the dielectric constant of the filling material in the middle of the cylindrical capacitor; r is the distance from the center of the cylindrical capacitor surface to a certain position on the plate; z is the thickness of the metal layer constituting the surface of the cylindrical capacitor; L is the distance between the outer edge of the inner ring and the outer edge of the outer ring on the surface of the cylindrical capacitor; and l is the width of the cavity between the inner ring and the outer ring on the surface of the cylindrical capacitor.
[0109] Assuming the height of the metal layer in the cylindrical capacitor is z = 0, the potential difference between the positive and negative plates is:
[0110]
[0111] When a cylindrical capacitor has a covering, assuming the covering thickness is d, using the method of images, at a vertical distance z = 2d from the surface of the cylindrical capacitor, there exists a virtual power source with a charge Q′, the size of which can be expressed as:
[0112]
[0113] This power source superimposes the electric field on the surface of the cylindrical capacitor, applying a magnitude of U' at the positive plate r = a and the negative plate r = a + l on the surface of the cylindrical capacitor. + and U' - electric potential field:
[0114]
[0115] The potential difference generated on the surface of the cylindrical capacitor by this power source is:
[0116]
[0117] Where A is:
[0118]
[0119] At this point, the total potential difference generated on the surface of the cylindrical capacitor is:
[0120] U 总 =U+U'
[0121] Where U is the potential difference generated by the charge on the surface of the cylindrical capacitor itself, and U′ is the potential difference superimposed by the virtual power source induced above the surface of the cylindrical capacitor. Then, according to the formula for capacitance and potential difference, the total capacitance C generated on the surface of the cylindrical capacitor can be obtained as:
[0122]
[0123] According to the above formula, ideally, the capacitance of a sensitive capacitor depends only on the dielectric constant ε1 of the covering material and the thickness d of the covering material; all other values are constant. When the dielectric constant and thickness of the covering material change, the capacitance will change.
[0124] The method of distinguishing coverings using the phase difference and peak attenuation factor of the equivalent series circuit is achieved by considering the actual equivalent model of the capacitor, mining more characteristic values, and using changes in other parameters to reflect changes in the capacitive sensor, thereby improving detection accuracy. Due to manufacturing processes, actual sensitive capacitors contain certain parasitic resistance and inductance. The presence of internal resistance causes energy loss during charging and discharging at the detection frequency and introduces additional thermal effects. Internal inductance leads to increased impedance of the capacitor in the high-frequency range. In high-frequency applications, the equivalent inductance of the capacitor significantly affects its impedance, thus limiting its performance. To more accurately describe an actual capacitor, it can be equivalent to an ideal capacitor C, a resistor R, and an inductor L connected in series, as shown below. Figure 1 As shown. For this ideal capacitor, its impedance is...
[0125]
[0126] When the formula satisfies: When the capacitor exhibits capacitance, it behaves capacitively.
[0127] When the formula satisfies: At low frequencies, capacitors exhibit inductive properties, while at high frequencies they display inductive-like characteristics.
[0128] When the formula satisfies: When the capacitance vector equals the inductive vector, the total impedance of the capacitor is at its minimum, exhibiting pure resistive characteristics. This value, f, is called the self-resonant frequency of the capacitor.
[0129] In this invention, the signal frequency is low, and the internal inductance of the capacitor can be ignored. Due to dielectric polarization, dielectric loss, and Debye relaxation effects, different detection frequencies and coverings will affect the equivalent capacitance and resistance of the capacitor. Figure 2 As shown. At 20℃, the equivalent capacitance is larger under water accumulation conditions than under dry conditions, but the equivalent resistance is smaller; at -20℃, the equivalent capacitance and equivalent resistance of ice formation vary significantly with frequency. The equivalent capacitance and resistance values under dry and snow accumulation conditions are relatively close and less affected by frequency.
[0130] Therefore, selecting a suitable detection frequency is crucial. When the detection frequency is constant, the equivalent series capacitance and equivalent series resistance of the capacitor only change depending on the covering material. In this invention, a 10kHz detection signal is selected for design analysis to achieve material differentiation.
[0131] Directly measuring the equivalent series capacitance and series resistance is complex and has low resolution. This invention designs a passive RC high-pass filter circuit by combining a sensitive capacitance sensor with a fixed resistor. This transforms the effects of the covering material and detection frequency on the capacitor's equivalent capacitance and resistance into changes in phase difference and attenuation ratio. The detection circuit design is as follows: Figure 3 As shown.
[0132] The equivalent model of a high-pass filter consisting of a sensitive capacitor and a fixed resistor is as follows: Figure 4 As shown, the amplitude ratio of the input and output high-pass filter circuits is:
[0133]
[0134] Where R represents the resistance in series with the capacitor in the high-pass filter circuit, Rs represents the equivalent series resistance, and Cs represents the equivalent series capacitance.
[0135] The phase difference is:
[0136]
[0137] This invention provides an intelligent recognition system based on peak detection and phase detection, such as... Figure 5 As shown. The intelligent recognition system includes: a sensitive capacitance signal acquisition stage, a feature extraction stage, a neural network classification stage, and an overlay classification output.
[0138] The sensitive capacitor signal acquisition stage uses the phase difference and peak attenuation of the equivalent series circuit to reflect changes in the equivalent series resistance Rs and equivalent series capacitance Cs. This idea is based on a high-pass filter circuit formed by a sensitive capacitor and a resistor connected in series. The principle of using a sensitive capacitor to distinguish road surface coverings is based on the different dielectric constants of different coverings. The dielectric constant describes a material's ability to respond to an electric field; different materials have different dielectric constants. When different coverings have different dielectric constants, the equivalent series capacitance of the capacitor will change. The formula for the equivalent series capacitance of the capacitor is as follows:
[0139]
[0140] Where C is the equivalent series capacitance of the capacitor, ε0 is the dielectric constant in vacuum, ε is the dielectric constant, S is the area between the capacitor plates, and d is the distance between the plates. The equivalent capacitance value is related to the capacitor's cutoff frequency and resistance. The cutoff frequency f c The following relationship exists between the equivalent capacitance of the capacitor and the resistance of the circuit:
[0141]
[0142] When the dielectric constant of the covering material is different, the equivalent series capacitance of the capacitor changes, thus affecting the cutoff frequency of the high-pass filter. When the dielectric constant increases, the equivalent series capacitance C increases, and the cutoff frequency f... c It will decrease. A smaller cutoff frequency means more low-frequency signals can pass through the filter. Therefore, at the input signal frequency, more signal will pass through the filter, and the amplitude of the output signal will increase accordingly. If more low-frequency signals pass through, the low-frequency component in the output signal may increase. This may affect the phase difference between the output signal and the input signal. Therefore, a sensitive capacitor and a fixed resistor constitute an RC high-pass filter circuit. By measuring the signal attenuation and phase shift of a sinusoidal signal of a certain frequency after passing through the high-pass filter, the changes in the equivalent series resistance and equivalent series capacitance are reflected, thereby distinguishing road surface coverings.
[0143] Furthermore, the overall hardware block diagram of the sensitive capacitor signal acquisition stage is as follows: Figure 6 As shown, a sinusoidal signal of a certain frequency is first generated by a DAC and input into a high-pass filter circuit composed of a sensitive capacitor and a resistor. The phase difference detection circuit and peak detection circuit capture the phase difference and peak value of the input and output high-pass filter signals using the timer capture function and ADC acquisition function of the MCU microcontroller. The platinum resistance temperature measurement part acquires the data using the ADC function of the MCU microcontroller, and finally transmits the three characteristic values—phase difference, peak attenuation factor, and temperature—to the serial port for printing.
[0144] Furthermore, the platinum resistance temperature measurement circuit is as follows: Figure 7 As shown. JP1 is the platinum resistance interface, and the reference voltage is generated as a 1V voltage value by the microcontroller DAC. The function of the U2 operational amplifier is to generate a constant current output, unaffected by changes in load resistance or fluctuations in power supply voltage. It uses negative feedback to maintain current stability and keep the current constant. When the temperature changes, since the current remains constant, the change in the resistance of the platinum resistance will cause a change in voltage. A fixed reference voltage is generated by the microcontroller DAC, and a constant current source circuit with a constant current of 1mA is obtained through the operational amplifier and precision resistor. The function of the U3 operational amplifier is to amplify the voltage across the platinum resistance. Since the voltage across the platinum resistance is in the mV range, it cannot be directly input to the microcontroller for acquisition. Therefore, a differential amplifier circuit is designed to amplify the voltage across the platinum resistance, which can effectively resist the influence of noise, interference, and common-mode signals, while amplifying the voltage by a factor.
[0145] The voltage across the platinum resistance thermometer is amplified by the U3 operational amplifier, then acquired by the microcontroller's ADC. The voltage value is converted into the resistance value of the platinum resistance thermometer, and finally, temperature is determined using a platinum resistance thermometer. Based on this principle, the relationship between the amplified voltage and the resistance value can be derived as follows:
[0146]
[0147] Among them, V adc This is the voltage value after being amplified by a differential amplifier circuit, obtained by the ADC. V rt Let Rt be the voltage across the top of the platinum resistance thermometer, and Rt be the resistance of the platinum resistance thermometer. Therefore, we can obtain...
[0148] V adc =10Rt
[0149] Furthermore, the peak detection circuit is as follows: Figure 8 As shown, the peak detection circuit is used to detect the peak value of the input and output high-pass filter circuits. The principle is to use two MOSFETs to control the output waveform to charge and discharge capacitors C37 and C41. When the MOSFETs are off, the capacitors are charging, and the capacitor voltage is connected to the microcontroller pins through voltage followers U12 and U13 and the Zener diode. The microcontroller's ADC is used to acquire the peak value. When the MOSFETs are on, the capacitors are discharging, and the next voltage peak capture and detection is performed.
[0150] Measurements of the sensitive capacitances Cs and Rs revealed that when the covering material is air, the relative permittivity is a small constant that does not change with temperature or detection frequency. For water, the relative permittivity can be considered essentially constant in the frequency range below 1 GHz, thus frequency is not a concern. However, for ice, its permittivity is considered very close to that of water at lower measurement frequencies, approximately below 10 kHz, but decreases sharply above 10 kHz. Taking all factors into account, 10 kHz was chosen as the operating frequency of the road surface condition detection sensor, i.e., the frequency of the input signal.
[0151] The 10kHz sine wave signal is generated by a microcontroller DAC. Operational amplifier U6 and surrounding capacitors and resistors form a filter circuit to filter the 10kHz sine wave signal. Two MOSFETs are used to charge and discharge capacitors C37 and C41 to capture the peak values of the input and output high-pass filter signals. Finally, the signal is acquired through the microcontroller's ADC pin.
[0152] Furthermore, the phase detection circuit is as follows: Figure 9 As shown, the input and output high-pass filter circuit signals are input to voltage comparators U9 and U10 via voltage follower U7. These comparators convert the signals into square waves, and the rising edge of the square wave is captured by the microcontroller's timer to measure the phase difference between the input and output signals. The voltage comparators isolate the preceding and following circuit stages to avoid the influence of the input resistance of the subsequent circuit on this circuit, and to prevent this circuit from affecting the subsequent circuit.
[0153] Furthermore, the power supply circuit is as follows: Figure 10As shown, the power supply circuit consists of two parts: analog and digital circuits. Due to the high accuracy requirements of the measurement, the power supply circuit needs to be reliable and stable. Isolating the analog and digital power supplies reduces electromagnetic coupling and the possibility of mutual interference. Because stray interference may exist in the ground return current, the digital ground and analog ground need to be separated and ultimately connected to the common ground of the power input to reduce the adverse effects of ground return current on the analog circuit.
[0154] The feature extraction stage calculates the attenuation factor, phase difference, and temperature from the peak value, phase, and temperature obtained in the sensitive capacitor signal acquisition stage. Tests were conducted on different road surface coverings at temperatures ranging from -30℃ to 60℃. The conditions at 60℃, 40℃, 20℃, 0℃, -20℃, and -30℃ are as follows: Figure 11 As shown in Figures 12, 13, 14, 15, and 16, at 60℃, the phase difference and attenuation factor are clearly distinguishable between dry and water. The phase difference for dry is 30-32 degrees, with an attenuation factor of approximately 0.7, while the phase difference for water is 0-2.5 degrees, with an attenuation factor of approximately 1. At 40℃, the phase difference and attenuation factor are also clearly distinguishable between dry and water. The phase difference for dry is 35 degrees, with an attenuation factor of approximately 0.6, while the phase difference for water is 0-5 degrees, with an attenuation factor of 0.9-1. At 20℃, the phase difference and attenuation factor are also clearly distinguishable between dry and water. The phase difference for dry is 35-40 degrees, with an attenuation factor of approximately 0.55, while the phase difference for water is 0-5 degrees, with an attenuation factor of 0.9-1. Therefore, above zero, the attenuation factor can be used to distinguish between dry and water. At 0℃, the attenuation factors for dry, ice, and snow are relatively close, making them difficult to distinguish by attenuation factor alone. However, phase differences reveal that the phase difference for dryness is around 40 degrees, for snow it's between 35 and 37 degrees, and for ice it's close to 20 degrees, allowing for differentiation. At -20°C, the attenuation factors for dryness, ice, and snow are quite similar, making them difficult to distinguish. However, phase differences reveal that the phase difference for dryness is around 45 degrees, for snow around 37 degrees, and for ice around 25 degrees, allowing for differentiation. At -30°C, the attenuation factors for dryness, ice, and snow are still close, making differentiation difficult. However, phase differences clearly distinguish them. The phase difference for dryness is greater than 48 degrees, for snow it's between 38 and 42 degrees, and for ice it's between 28 and 30 degrees. Therefore, at sub-zero temperatures, phase differences can be used to differentiate between dryness, ice, and snow.
[0155] The final test results are shown in the figure below. Figure 17As shown, above freezing, the phase difference between dry and water is clearly distinguishable, with a phase difference of 30-40 degrees for dry and 0-5 degrees for water. The attenuation factor for dry is also clearly distinguishable, with an attenuation factor of 0.5-0.7 for dry and 0.8-1 for water. Therefore, the attenuation factor can be used to distinguish water from other conditions. Below freezing, the attenuation factors for dry, ice, and snow are difficult to distinguish and overlap. The phase difference for dry is greater than 40 degrees, for snow it is 21-43 degrees, and for ice it is less than 32 degrees. At the same temperature, the phase differences of the three are clearly distinguishable. At different temperatures, the phase differences of snow overlap with those of dry and ice. Therefore, the phase difference and temperature can be used to distinguish dry, ice, and snow below freezing.
[0156] In the feature input and neural network classification stage, the three feature quantities obtained in the feature extraction stage—attenuation factor, phase difference, and temperature—are input into the neural network classifier for classification prediction. The neural network classifier used in this invention is a narrow neural network with one fully connected layer and 10 neurons. The neural network topology is shown below. Figure 18 As shown, this network is a feedforward, fully connected neural network used for classification. The first fully connected layer of the neural network has a connection from the network input, i.e., the prediction data, and each subsequent layer has a connection from the previous layer. Each fully connected layer multiplies the input by a weight matrix and then adds a bias vector. An activation function follows each fully connected layer. The final fully connected layer and the subsequent softmax activation function produce the network's output, i.e., the classification score and the predicted label.
[0157] The hidden layer uses ReLU as its activation function. ReLU is a commonly used non-linear activation function, and its formula is:
[0158] f(x) = max(0,x)
[0159] For an input x, if x is positive or zero, the output of the activation function is x; if x is negative, the output of the activation function is 0. ReLU introduces non-linearity, enabling neural networks to learn and represent more complex non-linear functional relationships, thus possessing stronger expressive power compared to linear functions. The ReLU function is computationally very fast, helping to accelerate the training and inference processes of neural networks. On the positive interval, the derivative of the ReLU function is 1, which helps avoid the gradient vanishing problem and accelerates network convergence.
[0160] The output layer uses a softmax function with four neurons, representing the probability distribution of four categories (snow, ice, water, and dry). Softmax transforms the output into probability distributions representing different categories. These probability values indicate the predicted probability of each category, with each probability value ranging between 0 and 1, and the sum of the probabilities of all categories being 1. This probability distribution is used to predict the likelihood of the input data belonging to each category, selecting the category with the highest probability as the final prediction. Softmax is commonly used in the output layer of neural networks, especially for multi-class classification problems. Its mathematical definition is:
[0161] Given a multi-class classification problem with K classes, for an input vector x = (x1, x2, ..., x...) K The softmax function calculates each element x. i Convert it to a probability value between 0 and 1, such that the sum of the probabilities of all categories is 1.
[0162] The formula for the softmax function is as follows:
[0163]
[0164] Where, x i This represents the i-th element in the original output vector; K is the total number of categories.
[0165] The Softmax function applies each input element x i Exponentialization is performed by taking the exponent of e and then dividing by the sum of the exponentialized values of all input elements. This process transforms the original output into a set of normalized probability values. The Softmax function results in a sum of probabilities for all classes equal to 1, thus it can be used for multi-class classification problems by selecting the class with the highest probability as the final prediction. The Softmax function's output has the highest response to larger input values and a lower response to smaller input values. This characteristic can make the output more focused on a few classes, which can be helpful in classification decisions.
[0166] Furthermore, when using narrow neural networks for classification, the entire process is as follows:
[0167] Data Preparation: First, prepare the dataset for training and testing. The dataset contains input features: temperature, phase difference, and attenuation factor, as well as the label and category for each sample: ice, snow, water, and dry.
[0168] Neural network structure definition: Determine the structure of the neural network. For narrow neural networks, it is set to include a fully connected layer.
[0169] Model Building: Using a predefined neural network, build and initialize the neural network model. The entire model consists of an input layer with 3 neurons, a fully connected layer with 10 neurons, and an output layer with 4 neurons.
[0170] Training: The neural network model is trained using training data through multiple iterations, with the number of iterations set to 1000. Input data is fed into the neural network model, and forward and backward propagation are performed to continuously adjust the parameters in the neural network, enabling the model to adapt to and learn the features and patterns in the data.
[0171] Activation functions: The ReLU function is used in the hidden layers of a neural network, introducing non-linearity into the neuron's output. The softmax function is used in the output layer to convert the output values into a form representing the probability of each class for classification prediction.
[0172] Prediction: Using a trained model to predict new data. The test data is fed into the trained neural network model, and the probability distribution for each class is obtained through forward propagation. The class with the highest probability is selected as the final prediction.
[0173] Model evaluation: Adjust and improve the model based on its accuracy to achieve better performance.
[0174] Furthermore, the neural network classification prediction results are shown in the figure below. Figure 19 As shown in the figure. Actual testing revealed that, through classification and prediction based on temperature, phase difference, and attenuation factor, the accuracy for drying and water is high above zero; the accuracy for drying and ice is high below zero. This meets the requirements.
Claims
1. A method for identifying road surface coverings based on peak and phase detection, characterized in that, Includes the following steps: Step 1, Sensitive Capacitor Signal Acquisition Stage: The sensitive capacitance of the sensitive capacitor is calculated by calculating the dielectric constant of the road surface cover. A high-pass filter circuit is formed by connecting the sensitive capacitor and a resistor in series. The changes in the equivalent series resistance and equivalent series capacitance are reflected by measuring the signal attenuation and phase shift of a sinusoidal signal of a certain frequency after passing through the high-pass filter circuit. In step 1, the calculation of the sensitive capacitance of the sensitive capacitor by calculating the dielectric constant of the road surface cover specifically involves: Assuming the inner conductor radius is *a*, the outer conductor radius is *b*, the cylinder height is *l*, and the space between the inner and outer conductors is filled with a uniform dielectric material with a dielectric constant of ε, according to the formula for calculating a cylindrical capacitor, we can obtain: ; Where: C is the capacitance of the cylindrical capacitor, ε is the dielectric constant of the dielectric material filling the space between the cylinders, l is the height of the cylinder, a is the radius of the inner conductor, and b is the radius of the outer conductor. Since the size of the capacitor and the dielectric constant of the filler are fixed, the capacitance of the sensitive capacitor itself remains unchanged. When the surface of the sensitive capacitor is covered with air, water, ice, or snow, its capacitance value is: ; Where C 总 For the total capacitance of the sensitive capacitor, C 圆柱 The capacitance of the cylindrical portion remains fixed; C 上表面 C 下表面 Let C be the capacitance value of the upper and lower surfaces of the capacitor. Since the environment around the lower surface of a cylindrical capacitor remains essentially unchanged, C... 下表面 It also remains unchanged; at this point, only C needs to be considered. 上表面 ; According to Gauss's law and the boundary conditions of the electrostatic field, assuming the inner conductor of the cylindrical capacitor carries a positive charge and the outer conductor carries a negative charge, the potential of the positive and negative plates of the cylindrical capacitor in an infinitely large uniform medium is obtained as follows: ; Where Q is the total surface charge of the cylindrical capacitor; a is the radius of the inner ring on the surface of the cylindrical capacitor; ε1 is the dielectric constant of the coating on the surface of the cylindrical capacitor; ε2 is the dielectric constant of the filler in the middle of the cylindrical capacitor; r is the distance from the center of the cylindrical capacitor surface to a certain position on the plate; z is the thickness of the metal layer constituting the surface of the cylindrical capacitor; L is the distance between the outer edge of the inner ring and the outer edge of the outer ring on the surface of the cylindrical capacitor; and l is the height of the cylinder. Assuming the height of the metal layer in the cylindrical capacitor is z=0, the potential difference between the positive and negative plates is: ; When a cylindrical capacitor has a covering, assuming the covering thickness is d, using the method of images for analysis, there is a virtual power source with a charge Q′ at a vertical distance z = 2d from the surface of the cylindrical capacitor. Its size is expressed as: ; This power source superimposes the electric field on the surface of the cylindrical capacitor, applying a magnitude of [value missing] at the positive plate r=a and the negative plate r=a+l on the surface of the cylindrical capacitor. and electric potential field: ; The potential difference generated on the surface of the cylindrical capacitor by this power source is: ; Where A is: ; At this point, the total potential difference generated on the surface of the cylindrical capacitor is: ; Where U is the potential difference generated by the charge on the surface of the cylindrical capacitor itself, and U′ is the potential difference superimposed by the virtual power source induced above the surface of the cylindrical capacitor; then, according to the formula for capacitance and potential difference, the total capacitance C generated on the surface of the cylindrical capacitor is: ; According to the above formula, the capacitance value of the sensitive capacitor is only related to the dielectric constant ε1 of the covering material and the thickness d of the covering material. All other values are constant. When the dielectric constant and the thickness of the covering material change, the capacitance value will change. Step 2, Feature Extraction Stage: The phase difference, peak attenuation factor, and temperature of the high-pass filter circuit are extracted sequentially through the peak detection circuit, phase detection circuit, and platinum resistance temperature measurement circuit, and the three feature values are used to form a dataset. Step 3, Neural Network Classification Stage: Construct a narrow neural network model, train the narrow neural network model using the dataset from Step 2, set the activation function, and obtain the trained narrow neural network model; Step 4, Cover Classification Output: The trained narrow neural network model is used to identify and classify road surface covers.
2. The method for identifying road surface coverings based on peak and phase detection according to claim 1, characterized in that, In step 1, a high-pass filter circuit is constructed by connecting a sensitive capacitor and a resistor in series. The changes in the equivalent series resistance and equivalent series capacitance are reflected by measuring the signal attenuation and phase shift of a sinusoidal signal of a certain frequency after passing through the high-pass filter circuit. Specifically: The actual capacitor can be represented as an ideal capacitor C, a resistor R, and an inductor L connected in series. For this ideal capacitor, its impedance is: ; When the formula satisfies: When the capacitor exhibits capacitive behavior, it is capacitive. When the formula satisfies: At low frequencies, capacitors exhibit inductive properties, while at high frequencies they display inductive-like characteristics. When the formula satisfies: When the capacitive reactance vector equals the inductive reactance vector, the total impedance of the capacitor is at its minimum, exhibiting pure resistive characteristics. At this point, f is called the self-resonant frequency of the capacitor.
3. The method for identifying road surface coverings based on peak and phase detection according to claim 2, characterized in that, Step 2 is as follows: The peak attenuation factors of the input and output high-pass filter circuits are: ; in, This represents the resistor connected in series with the capacitor in a high-pass filter circuit. This represents the equivalent series resistance. Indicates the equivalent series capacitance; The phase difference is: ; In the current source measurement method, the platinum resistance thermometer in the platinum resistance temperature measuring circuit is connected to a constant current source circuit. The voltage across the platinum resistance is measured according to Ohm's law. ; By measuring the voltage across the resistor and the known constant current, the resistance value of the platinum resistance is calculated. Using the temperature-resistance characteristic curve of the platinum resistance, the resistance value is converted into the corresponding temperature, thereby obtaining three characteristic values of the high-pass filter circuit: phase difference, peak attenuation factor, and temperature.
4. The method for identifying road surface coverings based on peak and phase detection according to claim 1, characterized in that, Step 3 specifically includes the following steps: Step 3.1, Data Preparation: First, prepare the dataset for training and testing. The dataset includes input features: temperature, phase difference, peak attenuation factor, and the label and category corresponding to each sample: ice, snow, water, dry. Step 3.2, Neural Network Structure Definition: Determine the structure of the neural network. For narrow neural networks, set it to include a fully connected layer; Step 3.3, Model Building: Using the predefined neural network, build and initialize the neural network model. The entire model includes an input layer with 3 neurons, a fully connected layer with 10 neurons, and an output layer with 4 neurons. Step 3.4, Training: Use training data to train the neural network model. Through multiple iterations, set the number of iterations, feed the input data to the neural network model, perform forward and backward propagation, and continuously adjust the parameters in the neural network so that the model can adapt to and learn the features and patterns in the data. Step 3.5, Activation Function: The ReLU function is used in the hidden layer of the neural network, which introduces non-linearity into the output of the neuron; the softmax function is used in the output layer to convert the output value into a form representing the probability of each class in order to perform classification prediction. Step 3.6, Prediction: Use the trained model to predict new data. Feed the test data to the trained neural network model, obtain the probability distribution of each category through forward propagation, and select the category with the highest probability as the final prediction result. Step 3.7, Model Evaluation: Adjust and improve the model based on the accuracy to achieve better performance.
5. The method for identifying road surface coverings based on peak and phase detection according to claim 4, characterized in that, Step 3.5 specifically involves: The hidden layer uses ReLU as its activation function. ReLU is a non-linear activation function, and its formula is: ; For an input x, if x is positive or zero, the output of the activation function is x; if x is negative, the output of the activation function is 0. On the positive interval, the derivative of the ReLU function is 1. The formula for the softmax function is as follows: ; in, This represents the i-th element in the original output vector; It is the total number of categories; The Softmax function applies each input element Exponentialization is performed by taking the exponent of e and then dividing by the sum of the exponentialized values of all input elements, thus converting the original output into a set of normalized probability values.
6. A road surface cover identification device based on peak and phase detection, used to implement the method as described in claim 1, characterized in that, This includes an MCU microcontroller and connected circuits such as a high-pass filter, peak detection circuit, phase detection circuit, platinum resistance temperature measurement circuit, and power supply circuit. The high-pass filter circuit is composed of a sensitive capacitor and a resistor connected in series. The peak detection circuit is used to detect the peak value of the signals input to and output to the high-pass filter circuits; The phase detection circuit is used to detect the phase difference between the signals of the input and output high-pass filter circuits; The platinum resistance temperature measurement circuit is used to measure real-time temperature. The power supply circuit includes analog circuits and digital circuits.
7. A computer device / equipment / system, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method of claim 1.
8. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method of claim 1.
9. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method of claim 1.
