A traffic sign recognition method, system, device and medium
By constructing a neuromorphic convolutional neural network based on a spin nano-oscillator with a magnetic tunnel junction and combining it with an L2 weight decay regularized cross-entropy loss function, the problems of high power consumption and difficult deployment of traditional digital convolutional neural networks on vehicle edge devices are solved, achieving low power consumption, real-time performance and robust recognition of traffic signs.
Patent Information
- Application Number
- CN202611694365.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
Existing traffic sign recognition technologies have poor generalization ability under complex road conditions such as sudden changes in lighting, sign occlusion, and environmental noise interference. Furthermore, traditional digital convolutional neural networks have high computational cost and computational complexity, making it difficult to achieve lightweight, low-power, and real-time deployment on vehicle edge devices.
A neuromorphic convolutional neural network based on a magnetic tunnel junction is constructed, and a traffic sign recognition model is built by combining it with an L2 weight decay regularized cross-entropy loss function. The physical nonlinear response characteristics of STNO devices are used to replace the traditional digital activation function to achieve nonlinear computation in the analog domain.
While ensuring recognition accuracy, the network computing power consumption is significantly reduced, the model's recognition robustness in complex scenarios is improved, and it adapts to the real-time perception requirements of in-vehicle edge devices, achieving the ultimate lightweight and low-power deployment of the model.
Smart Images

Figure CN123180239A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent traffic sign recognition technology, and in particular to a traffic sign recognition method, system, device and medium. Background Technology
[0002] The rapid popularization of intelligent transportation and autonomous driving technologies has placed stringent demands on the real-time performance, reliability, and low power consumption of vehicle environmental perception systems. Traffic sign recognition, as a core task of visual perception in autonomous driving, provides vehicles with critical road condition information such as speed limits, warnings, and traffic control measures, directly determining the safety and accuracy of driving decisions.
[0003] Existing traffic sign recognition technologies are mainly divided into two categories: traditional machine learning recognition methods and deep learning recognition methods. Among them, traditional machine learning recognition methods rely on manually designed image features and shallow machine learning algorithms, which have limited feature representation capabilities, poor generalization ability under complex road conditions such as sudden changes in lighting, sign occlusion, and environmental noise interference, and insufficient recognition stability, thus failing to meet the actual needs of autonomous driving.
[0004] Deep learning-based recognition methods can autonomously learn layered features of images, achieving recognition accuracy close to human visual levels, significantly outperforming traditional algorithms. However, existing convolutional neural networks are all implemented based on traditional digital circuit architectures, which suffer from drawbacks such as high computational load, high computational complexity, and high hardware power consumption. Vehicle-mounted edge devices are characterized by limited computing resources, strict power consumption constraints, and small deployment space. Traditional digital neural networks are difficult to deploy in vehicles in a lightweight, low-power, and real-time manner, severely restricting the industrial application of autonomous driving perception systems.
[0005] Based on the above description, how to reduce network computing power consumption while ensuring recognition accuracy is a technical challenge that urgently needs to be solved in the field of vehicle edge intelligent perception. Summary of the Invention
[0006] The purpose of this application is to provide a traffic sign recognition method, system, device, and medium that can reduce network computing power consumption while ensuring recognition accuracy.
[0007] To achieve the above objectives, this application provides the following solution: Firstly, this application provides a traffic sign recognition method, including: A neuromorphic convolutional neural network was constructed using a spin nano-oscillator based on a magnetic tunnel junction, and the cross-entropy loss function with L2 weight decay regularization was used to complete the iterative training of the neuromorphic convolutional neural network to obtain a traffic sign recognition model. Real-time acquisition of traffic sign image data; The traffic sign recognition model is used to obtain the traffic sign recognition result based on the traffic sign image data.
[0008] Secondly, this application provides a traffic sign recognition system, comprising: The recognition model building module is used to construct a neuromorphic convolutional neural network using a spin nano-oscillator based on a magnetic tunnel junction, and to complete the iterative training of the neuromorphic convolutional neural network using a cross-entropy loss function with L2 weight decay regularization to obtain a traffic sign recognition model. Image data acquisition module, used to acquire traffic sign image data in real time; The traffic sign recognition module is used to obtain traffic sign recognition results based on the traffic sign image data using the traffic sign recognition model.
[0009] Thirdly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the traffic sign recognition method provided above.
[0010] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the traffic sign recognition method provided above.
[0011] According to the specific embodiments provided in this application, this application has the following technical effects: This application provides a traffic sign recognition method, system, device, and medium. By employing a customized spin nano-oscillator based on a magnetic tunnel junction to replace the traditional digital ReLU activation function, a neuromorphic convolutional neural network is constructed. This eliminates the need for traditional digital activation computation architectures, relying on the physical characteristics of the spin nano-oscillator to achieve analog domain nonlinear computation, thus adapting to low-power deployment scenarios at the vehicle edge. While ensuring recognition accuracy, the model achieves extreme lightweighting, thereby addressing the technical shortcomings of existing digital convolutional neural network traffic sign recognition solutions, such as high power consumption, difficulty in edge deployment, and high hardware costs. By using a cross-entropy loss function with L2 weight decay regularization to complete the iterative training of the neuromorphic convolutional neural network, the overfitting problem of neuromorphic network training can be effectively solved, improving the model's robustness in complex scenarios such as changing lighting and interference from similar signs. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 A schematic flowchart illustrating a traffic sign recognition method according to an embodiment of this application; Figure 2 A schematic diagram of a microwave emission test circuit based on a spin nano-oscillator with a magnetic tunnel junction provided in an embodiment of this application; Figure 3 A schematic diagram of a spin nano-oscillator based on a magnetic tunnel junction provided in an embodiment of this application; Figure 4 A schematic diagram illustrating the variation of resistance of a spin nano-oscillator based on a magnetic tunnel junction with respect to an external magnetic field in different directions, as provided in an embodiment of this application. Figure 5 A schematic diagram showing the change of microwave emission power density spectrum of a spin nano-oscillator based on a magnetic tunnel junction as a function of DC bias current, provided in an embodiment of this application. Figure 6 A schematic diagram showing the change of microwave transmission power as a function of DC bias current for a spin nano-oscillator based on a magnetic tunnel junction, provided in an embodiment of this application. Figure 7 A schematic diagram of the traffic sign recognition process provided in an embodiment of this application; Figure 8 A schematic diagram showing the comparison of the loss value variation trends of different convolutional neural networks during the training phase, provided in an embodiment of this application; Figure 9 A schematic diagram showing the comparison of classification accuracy trends of different convolutional neural networks during the training phase, provided in an embodiment of this application; Figure 10 A schematic diagram of the confusion matrix of a convolutional neural network based on the traditional ReLU activation function provided in an embodiment of this application; Figure 11 A schematic diagram of the confusion matrix of a ReLU-like activation function simulated by a spin nano-oscillator based on a magnetic tunnel junction, provided in an embodiment of this application; Figure 12 A schematic diagram of the receiver operating characteristic curve and its corresponding area under the curve of a convolutional neural network based on the traditional ReLU activation function, provided as an embodiment of this application; Figure 13A schematic diagram of the subject operating characteristic curve and the corresponding area under the curve of a traffic sign recognition model provided in an embodiment of this application; Figure 14 A schematic diagram of the precision-recall curve and its corresponding average precision value of a convolutional neural network based on the traditional ReLU activation function provided in an embodiment of this application; Figure 15 A schematic diagram of the precision-recall curve and the corresponding average precision value of a traffic sign recognition model provided in an embodiment of this application; Figure 16 A schematic diagram of the application structure of a spin nano-oscillator based on a magnetic tunnel junction provided in an embodiment of this application; Figure 17 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application.
[0014] Figure reference numerals: 1-first Ru layer, 2-Cu layer, 3-Ta layer, 4-Co layer 40 Fe 40 B 20 Layer, 5-MgO layer, 6-Co 70 Fe 30 7-IrMn layer, 8-CuN layer, 9-Second Ru layer, 10-MTJ-STNO device, 11-Current source, 12-Spectrum analyzer. Detailed Implementation
[0015] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0016] Spin-Torque Nano-Oscillators (STNOs) based on magnetic tunnel junctions (MTJs), or MTJ-STNO devices (or simply devices), possess unique electron spin dynamics characteristics, enabling them to generate high-frequency, low-noise, and highly stable microwave power signals. They also exhibit inherent nonlinear response characteristics, allowing for the construction of brain-inspired neuromorphic computing architectures, overcoming the computational power and power consumption bottlenecks of traditional digital circuits. However, current technologies lack a mature solution for deeply integrating the physical nonlinear characteristics of STNOs with traffic sign recognition neural networks. How to utilize the inherent physical characteristics of MTJ-STNO devices to replace traditional digital activation units while reducing network computational power consumption while maintaining recognition accuracy is a pressing technical challenge in the field of automotive edge intelligent perception.
[0017] To solve the aforementioned technical problems and make the above-mentioned objectives, features and advantages of this application more apparent and understandable, this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0018] In one exemplary embodiment, this application provides a traffic sign recognition method. This method is executed by a computer device, specifically by a terminal or server, or by both. In this embodiment, the method is described using a server as an example. Figure 1 As shown, the method includes: Step 100: A neuromorphic convolutional neural network is constructed using a spin nano-oscillator based on a magnetic tunnel junction, and the cross-entropy loss function with L2 weight decay regularization is used to complete the iterative training of the neuromorphic convolutional neural network to obtain a traffic sign recognition model.
[0019] Step 101: Acquire traffic sign image data in real time.
[0020] Step 102: Using a traffic sign recognition model, obtain traffic sign recognition results based on traffic sign image data.
[0021] By implementing steps 100-102 above, this application utilizes the natural ReLU-like nonlinear response characteristics of STNO input current and output microwave power to construct a neuromorphic convolutional neural network. While ensuring high-precision traffic sign recognition capabilities, it significantly reduces network computational power consumption and can adapt to the real-time perception requirements of vehicle-mounted edge devices.
[0022] In an exemplary embodiment of this application, in order to abandon the traditional digital activation computation architecture and realize analog domain nonlinear computation based on the physical characteristics of the device, thereby facilitating adaptation to low-power deployment scenarios at the vehicle edge, this embodiment takes the end-to-end classification of RGB traffic sign images with a resolution of 3×32×32 as an example. In the overall data stream of obtaining traffic sign recognition results based on traffic sign image data using the traffic sign recognition model, the data sequentially passes through image input, convolutional multi-scale feature extraction, STNO physical nonlinear activation, feature dimension flattening, fully connected feature mapping, and Softmax probabilistic classification output, which can stably complete the accurate recognition task of 10 types of conventional traffic signs. Based on this, the traffic sign recognition model provided in this application includes: a convolutional feature extraction layer, an STNO physical activation layer, a dimension transformation layer, a fully connected layer, an activation function layer, and an output layer.
[0023] The convolutional feature extraction layer is the core feature perception module of the traffic sign recognition model. It is mainly used to extract multi-dimensional and multi-scale visual features from the input RGB traffic sign image. Through weighted convolutional kernel operations, it fuses spatial and channel information, effectively extracting key features of the traffic sign's edges, contours, textures, and colors, while simultaneously achieving lightweight image dimensionality compression. Based on this, in step 102 of this application, a convolutional feature extraction layer is used to extract multi-dimensional and multi-scale visual features from the traffic sign image data, obtaining a multi-channel feature map.
[0024] The calculation process for feature extraction in the convolutional feature extraction layer follows the rules of two-dimensional convolution operations, and the specific calculation formula is as follows: .
[0025] In the formula, Indicates the input feature map of the th v Position in each input channel ( The pixel value at (). Indicates the first v The input channel and the first c The convolutional kernel weights connected to each output channel are located at the following positions: (m, n) . This represents the result of a two-dimensional convolution operation. K The spatial size of the convolution kernel. S Step size, This represents the number of input channels.
[0026] Therefore, the convolution operation of the convolutional feature extraction layer can be simplified to a linear weighted combination of RGB channel pixel values, ultimately generating four feature maps (i.e., multi-channel feature maps) with a spatial dimension of 16×16. This process effectively compresses the dimensionality of the input data while extracting basic visual features.
[0027] After convolution processing, the original 32×32 input image is compressed into a 16×16 multi-channel feature map, which significantly reduces the amount of subsequent computation while retaining effective recognition features.
[0028] The multi-channel feature map output from the convolutional feature extraction layer is directly fed into the STNO physical activation layer. The STNO physical activation layer utilizes the inherent current-microwave power nonlinear response characteristics of the MTJ-STNO device to perform nonlinear transformation of features in the pure analog domain, enhancing feature differentiation. This eliminates the need for digital circuit operations and digital-to-analog converter (DAC) / analog-to-digital converter (ADC) conversions, significantly reducing hardware power consumption and resource overhead. Based on this, the STNO physical activation layer is used to perform physical nonlinear activation on the multi-channel feature map, resulting in a two-dimensional feature map.
[0029] In practical applications, this application does not perform ReLU mathematical operations on the software side. Instead, it maps the feature values of the convolution output to the device current range, allowing the device's physical response to replicate the nonlinear transformation of ReLU. Specifically, during network implementation, the feature values extracted from normalized image pixels are linearly mapped to the experimentally calibrated STNO DC current range. The measured microwave output power is then rescaled according to the activation range required by subsequent network layers. This mapping process preserves the measured ReLU-like transfer characteristics, enabling the physical device's response characteristics to replace the traditional mathematical ReLU function in the network.
[0030] The normalized object is primarily the RGB traffic sign image. For example, for an 8-bit RGB traffic sign image, the pixel values... First scale to the 0 to 1 range: .
[0031] In the formula, For color channel index, and For spatial location indexing. Convolutional layers normalize the image. It takes input as input and generates convolutional output feature maps.
[0032] The convolution output features are then clipped and normalized to match the STNO's calibrated current range.
[0033] A dimensionality transformation layer is used to flatten the two-dimensional feature map, resulting in a one-dimensional feature vector. For example, after dimensionality transformation and flattening, it becomes a 1024-dimensional one-dimensional feature vector, converting spatial features into linear feature representations.
[0034] A fully connected layer, an activation function layer, and an output layer are used to perform fully connected mapping and Softmax classification on a one-dimensional feature vector to obtain the traffic sign recognition result. For example, a one-dimensional feature vector is input into the fully connected layer to complete the mapping and fitting from high-dimensional features to the traffic sign category space. Subsequently, the output features of the fully connected layer are probability normalized using the Softmax function (i.e., Softmax classification), converting the output result into a predicted probability distribution corresponding to each category. The category with the highest probability is selected as the final traffic sign recognition result. The formula for the Softmax normalization calculation process is as follows: .
[0035] In the formula, Indicates that the fully connected layer is for the first The logistic regression values of the output for each category, and This is the predicted probability for the corresponding category.
[0036] In one exemplary embodiment of this application, the STNO physical activation layer includes: a digital-to-analog mapping module, a spin nano-oscillator based on a magnetic tunnel junction, a readout circuit acquisition device, an analog-to-digital sampling module, and a reverse rescaling module.
[0037] The obtained multi-channel feature map is not directly fed to the MTJ-STNO device; it needs to pass through a digital-to-analog mapping module. Based on this, the digital-to-analog mapping module is used to extract features and digitally map the multi-channel feature map to obtain the target DC drive current. That is, the normalized feature values are linearly mapped and scaled to the STNO DC drive current range calibrated in previous experiments.
[0038] In practical applications, the digital-to-analog mapping process of the digital-to-analog mapping module can be described as follows: For values within the eigenvalue range after being limited Convolution outputs feature values The digital model mapping module follows the formula Calculate the target DC drive current In the formula, For the truncation function, The calibrated minimum DC drive current (i.e., the lower limit of current). The calibrated maximum DC drive current (i.e., the upper limit of current).
[0039] Eigenvalue range The endpoints are determined by statistical analysis of the training data and the device's operating range, and stored as fixed calibration parameters. During the inference phase, the endpoints are not recalculated for each input image. This ensures that the convolutional output feature values remain within the specified range. Inside, the digital model mapping module outputs feature values for each convolution. Compare with the upper and lower limits respectively, and follow the formula. Limit the amplitude. This is the characteristic value after amplitude limiting. When Time to take .when Time to take When the value is within this range, it remains unchanged. The characteristic after amplitude limiting is then normalized to: In the formula, These are the normalized eigenvalues.
[0040] In one embodiment, by setting the mapping endpoint or adding current bias correction, hour .therefore correspond , correspond , This is the threshold current corresponding to the start point of the continuous oscillation. The digital-to-analog mapping module will... The voltage is converted to DAC code, and the DAC output voltage is converted into a constant current via a transconductance stage. The output of the constant current drive circuit is connected to the top electrode stack of the magnetic tunnel junction-based spin nano-oscillator, while the bottom electrode stack is connected to the return terminal or analog ground. The current flowing from the top electrode stack to the bottom electrode stack is defined as the forward current. When using opposite device polarities, the connections of the two electrode stacks can be interchanged to select the driving direction that provides an anti-damped spin torque to the free layer. Based on this, a microwave power signal is obtained using a magnetic tunnel junction-based spin nano-oscillator and a target DC drive current.
[0041] Based on the above description, the threshold current corresponding to the start point of continuous oscillation is determined according to the STNO's current and output power calibration curve. And the approximately linear operating range above the threshold. Lower current limit. Select a current level below the threshold and within the device's safe operating range. Current upper limit. The range is selected within which stable oscillations occur and the output power remains monotonic and approximately linear. The mapping from the normalized characteristic to the target drive current is: .
[0042] In the formula, This represents the target driving current after mapping.
[0043] To ensure that the zeros of the mathematical ReLU correspond to the device oscillation threshold, the mapping endpoints must satisfy the following conditions: .
[0044] If the initial endpoints cannot make the zero characteristic correspond exactly to the threshold, then first calculate the uncorrected mapped current of the zero characteristic. and set current bias And the correction current, we have: .
[0045] .
[0046] In the formula, To correct the current.
[0047] After correction, negative features are mapped to currents below the threshold, zero features to the threshold current, and positive features to currents above the threshold. Values exceeding the predetermined feature range are mapped to the corresponding current endpoints by a limiting operation.
[0048] The output of a spin nano-oscillator based on a magnetic tunnel junction is a microwave power signal, which cannot be directly fed into subsequent digital networks. Therefore, this application employs a readout circuit (spectrum detection / power detection unit) to convert the microwave power signal into a voltage signal. Then, an analog-to-digital sampling module is used to perform analog-to-digital sampling on the voltage signal to obtain the digitized power. Finally, an inverse rescaling module is used to map the digitized power to a characteristic value range to generate a two-dimensional feature map.
[0049] In practical applications, the analog-to-digital mapping (ADC) module triggers the ADC after the drive current is established and a preset stabilization time has elapsed. This triggers the ADC to sample the output voltage of the readout circuit's acquisition device one or more times. The ADC code is first converted into digital power at the device end based on pre-stored parameters such as detector gain, bias, RF link gain, and insertion loss. .
[0050] According to the obtained According to the formula The digitized power is mapped to a range of characteristic values. In the formula, For feature pixels, The baseline power is below the oscillation threshold. The rated power corresponding to the maximum DC drive current. To activate the numerical range. For ReLU activation, let... .when hour, make .when hour, Follow Linear increase. When hour, Restricted to .
[0051] Furthermore, the readout circuit acquires the device by converting the microwave power signal into a low-frequency or DC voltage within its calibrated operating range, such as: .
[0052] In the formula, To read the gain of the acquisition device in the circuit, To obtain the link bias of the acquisition device in the readout circuit. The detector voltage, This represents the time-averaged power of the STNO RF port across the load. The ADC does not directly sample the GHz microwave waveform; instead, it samples the detected voltage one or more times after the digital-to-analog mapping module has waited for the drive and detector outputs to stabilize. Let the ADC digital code be... The voltage corresponding to each code is Then, based on the calibrated gain and bias, the estimated value of the digitized power can be recovered, as follows: .
[0053] therefore, It is not another independent input, but the digital domain equivalent power obtained by sequentially passing the microwave power signal output by the STNO through power detection and ADC quantization.
[0054] Through the joint formula Current mapping endpoints and formulas The power rescaling endpoint allows the overall gain above the threshold to be consistent with the ReLU positive range gain in the model, and incorporates device differences, RF link gain and ADC quantization effects into the calibration parameters.
[0055] The reverse rescaling module follows the original address Will The data is written to the output feature buffer. Once the data flow transformation from feature pixel to current to power back to feature pixel has been completed at all locations of a feature map, the analog-to-digital mapping module issues a completion flag. It then reads the recovered activation feature map and performs flattening, fully connected mapping, and Softmax classification through a dimensionality transformation layer, a fully connected layer, and an activation function layer. During the training phase, a differentiable approximate activation model can be constructed using the calibration curve of the MTJ-STNO device and the quantization range of the DAC / ADC to obtain network weights consistent with the interface of the actual MTJ-STNO device. During the inference phase, ReLU calculation is no longer performed by software; instead, address scheduling, parameter lookup, code value conversion, and data write-back are handled by software, while the MTJ-STNO device performs the nonlinear physical activation.
[0056] After the convolution operation is completed, the 4×16×16 feature tensor is written to the convolution output buffer in a predetermined storage order. Taking the channel-first storage method as an example, the base address of the buffer is... Each feature value occupies The number of bytes, channels, rows, and columns are respectively 、 and Then the eigenvalues after amplitude limiting The linear address is : .
[0057] In the formula, , , In this embodiment and Based on this, this application can generate the original address using a channel counter, a row counter, and a column counter. The system reads features from the corresponding address, completes current mapping, device activation, and power sampling, and then writes the recovered activation value to the corresponding address in the output feature buffer. The corresponding address in the output feature buffer comes from the tensor's storage layout and counter state, and is not generated by the MTJ-STNO device.
[0058] Based on the above description, the hardware and software coordination process of the traffic sign recognition model can be described as follows: convolutional output of digital features → DA mapping → MTJ-STNO device physical activation → microwave power detection sampling → AD rescaling → feeding into subsequent network layers (flattening-fully connected-activation output). The overall implementation architecture of the traffic sign recognition process provided in this application is as follows: Figure 7 As shown. Figure 7 The image shows the recognition probability of the Giti logo for ten categories.
[0059] For example, in a traffic sign recognition model, the input tensor size is 3×32×32, the convolutional layer has 4 output channels, a 1×1 convolutional kernel, a stride of 2, and zero padding. For the... Output channels and spatial location The digital features output by the convolution are obtained by weighted summation of the three input channels at corresponding positions: .
[0060] In the formula, For convolution weights, For bias, The convolution outputs digital features. With a stride of 2, the output spatial size is 16×16. Each output channel forms a 16×16 feature map. The scalar value at each location in the feature map... This feature is itself a feature to be fed into the STNO physical activation layer, so there is no need to perform feature extraction again within the feature map. The four feature maps contain a total of 1024 feature values to be activated.
[0061] In an exemplary embodiment of this application, to address the overfitting problem that easily occurs during the training of neuromorphic neural networks and improve the generalization ability and recognition robustness of the traffic sign recognition model under complex road conditions such as lighting changes, sign occlusion, and environmental interference, this application uses a cross-entropy loss function with L2 weight decay regularization as the optimization objective for model iterative training in step 100 above. By constraining the magnitude of network weight parameters and balancing classification errors, optimal convergence of model performance is achieved. The loss function used in this application consists of two parts: a cross-entropy classification loss term and an L2 regularization constraint term. This can suppress network parameter overfitting while ensuring classification accuracy, thereby improving the model's general performance. Based on this, the cross-entropy loss function with L2 weight decay regularization is expressed as: .
[0062] In the formula, The value of the cross-entropy loss function is... Indicates the training batch size. Let be the one-hot encoded true label for the i-th sample. The predicted probability of class c is the output of the activation function layer. The L2 regularization coefficient is... Let L be the L2 norm of the weight matrix.
[0063] This loss function can balance classification error and weight decay constraints, effectively preventing model overfitting and improving the model's generalization performance.
[0064] In one exemplary embodiment of this application, to achieve an in-plane TMR ratio as high as 112% for the spin nano-oscillator, stable magnetoelectric and microwave emission characteristics, and ReLU-like nonlinear response characteristics, it can be directly used as a physical activation unit for neural networks. In this application, the spin nano-oscillator based on a magnetic tunnel junction adopts a multilayer nanofilm stacked structure, which, from bottom to top, includes a bottom electrode stack layer, a functional magnetic stack layer, and a top electrode stack layer.
[0065] like Figure 3 As shown, the bottom electrode stack layer consists of a first Ta layer 3 (3nm~5nm), a CuN layer 8 (40nm), a second Ta layer 3 (5nm), and a first Ru layer 1 (5nm~7nm) from bottom to top.
[0066] The functional magnetic stacked layers, from bottom to top, include an IrMn layer 7 (8 nm), a Co70Fe30 layer 6 (2.5 nm), a second Ru layer 9 (0.85 nm), a second Co40Fe40B20 layer 4 (2.5 nm), an MgO layer 5 (0.88 nm to 1 nm), and a first Co40Fe40B20 layer 4 (2.5 nm). The first Co40Fe40B20 layer 4 serves as a free layer. The second Ru layer 9, the Co70Fe30 layer 6, and the IrMn layer 7 constitute the composite polarization layer, and their magnetic moment directions, along with those of the second Co40Fe40B20 layer 4, determine the spin polarization direction of the spin nanooscillator.
[0067] The top electrode stack layer, from bottom to top, includes a Ta layer 3 (5nm), a Cu layer 2 (10nm), and a first Ru layer 1 (7nm).
[0068] The thickness of each of the above-mentioned layers of film can be set according to actual needs, and the above values are not intended to be specific limitations of this application.
[0069] Furthermore, the target DC drive current A free layer, an MgO tunneling barrier, and a synthetic polarization layer flow vertically between the top and bottom electrode stacks. The synthetic polarization layer provides a defined spin polarization direction, the MgO tunneling barrier provides spin selection for tunneling electrons, and polarized electrons transfer angular momentum to the free layer, generating a spin-transfer torque. At that time, the spin-transfer torque is insufficient to compensate for the inherent damping of the free layer, and the free layer does not undergo continuous precession; the detected power is only [amount missing]. .when At this time, the spin-transfer torque compensates for and exceeds the inherent damping, and the free layer magnetic moment continues to precess, causing the angle between the free layer and the composite polarization layer to change periodically. This, in turn, forms a periodic junction resistance (such as...) through the tunneling magnetoresistance effect. Figure 4 As shown). Under DC bias, this periodic junction resistance (i.e., variable resistance) generates a microwave voltage and corresponding microwave power (e.g., ...) between the top electrode stack and the bottom electrode stack. Figure 5 As shown), and within the linear working region... Increased by (e.g.) Figure 6 (As shown). Figure 4 In the study, the resistance varies with the external magnetic field direction, exhibiting excellent magnetoelectric transport characteristics. Among these, high resistance... R high =227Ω, low resistance value R low =107Ω, with an in-plane TMR ratio as high as 112%. Figure 5In the MTJ-STNO device, the microwave transmit power density spectrum changes with the DC bias current as follows: as the current value increases, the microwave signal appears from nothing and continuously strengthens. Figure 6 In the diagram, the data points represent MTJ-STNO device data, and the red line represents the fitted curve. The microwave transmit power exhibits ReLU-like characteristics as a function of DC bias current.
[0070] The microwave power signal is not directly derived from a single magnetic thin-film layer, but rather formed by the time-varying resistance of the entire MTJ junction between the ports of the two device electrode stacks. For example, a bias tee is connected at the node of the top electrode stack. The DC end of the bias tee is connected to a constant current drive circuit, and the RF end is connected to a low-noise amplifier and a power detector via a DC blocking capacitor and an impedance matching network. The bottom electrode stack serves as a common return terminal. Thus, the DC drive path and the microwave readout path are frequency-domain separated at the same device port. A spectrum analyzer can be used for device calibration. During inference operation, a power detector or envelope detector can be used to convert the microwave power into a detection voltage.
[0071] In one exemplary embodiment of this application, in order to verify the convergence performance of the neuromorphic convolutional neural network provided in this application, a comparative experiment is conducted in this embodiment.
[0072] Among them, such as Figures 8-9 As shown, this application converges rapidly within 20 training epochs, with the training loss approaching zero, and the test recognition accuracy consistently above 95%. Compared to traditional digital ReLU convolutional neural networks, there is no significant difference in convergence speed, fitting effect, and basic recognition accuracy, proving that the STNO physical activation layer can completely replace traditional digital activation functions without weakening the network's feature learning and classification capabilities. The test loss exhibits slight fluctuations, solely due to natural differences in lighting and viewing angle of traffic sign images; the fluctuation amplitude is extremely low, indicating excellent overall generalization performance of the model.
[0073] Through such Figure 10 and Figure 11 As shown in the confusion matrix, this application achieves 100% recognition accuracy for speed limit traffic signs. For easily confused warning signs such as those involving wild animals crossing the road, the number of correctly classified samples is superior to traditional digital models, demonstrating stronger robustness. The small number of misclassified samples are concentrated in visually similar warning sign categories, which is an inherent technical challenge in traffic sign recognition tasks and not a performance defect introduced by the STNO physical activation layer.
[0074] like Figures 12-15The ROC and PR curve test results shown demonstrate that the traffic sign recognition model of this application achieves an AUC value of 1.00 for all categories, exhibiting extremely strong ability to distinguish between positive and negative samples. The AP value for most categories is close to 1.00, with only a slight decrease in accuracy for a few easily confused categories, and the performance difference compared to traditional digital models is negligible. The experiments fully verify that this application achieves low-power simulated hardware deployment of neural networks without any loss in recognition accuracy.
[0075] In practical applications, the overall fabrication process of the MTJ-STNO device (hereinafter referred to as the device) provided in this application can be described as follows: First, magnetron sputtering is used to deposit all nanofilms layer by layer on a thermally heated silicon oxide substrate. After the film growth is completed, the film is annealed for 2 hours at a constant temperature of 300℃ and a constant external magnetic field of 1T to optimize the film lattice structure and magnetic domain arrangement, thereby improving the magnetoelectric stability of the device. Finally, electron beam lithography combined with argon ion milling is used to pattern the stacked film structure, thereby preparing elliptical MTJ nanopillars with a size of 400nm×200nm. The long axis of the MTJ nanopillars is strictly aligned along the direction of the annealing magnetic field to ensure consistent magnetization characteristics.
[0076] All performance tests of the device were performed at room temperature, such as Figure 2 and Figure 16 As shown, microwave emission spectra are acquired by a spectrum analyzer 12 (such as a spectrum analyzer with a 40dB preamplifier), and background noise under zero DC bias current is digitally subtracted to eliminate environmental interference and ensure the accuracy of test data. Figure 2 In the middle, the current source 11 outputs I dc The signal enters the MTJ-STNO device 10 through a 1kΩ resistor and the DC terminal of the bias circuit. Based on the spin-transfer torque effect, the MTJ-STNO device 10 generates a microwave power signal, which passes through the AC terminal of the bias circuit, is amplified (+40 dB), and is then acquired by the spectrum analyzer 12.
[0077] Furthermore, the magnetoelectric transport characteristics of the fabricated MTJ-STNO device were tested. A DC bias current of 10 μA was fixed using a current source, and in-plane magnetic fields were applied along the long easy magnetization axis and the short hard magnetization axis, respectively, and the magnetoresistive back loop was collected. The test results show that when the magnetic field along the easy magnetization axis is scanned from -400 Oe to +400 Oe, the device resistance remains at a high resistance state. high With low resistance state R low The device can switch stably between these states, demonstrating its excellent in-plane magnetization configuration.
[0078] Calculation formula for tunneling magnetic resistivity of device TMR= ( R high-R low ) / R low The tunneling magnetoresistivity of the device can be obtained by multiplying by 100%. In this embodiment, R high =227Ω R low =107Ω, with an in-plane TMR ratio as high as 112%, exhibiting excellent magnetoresistive response performance. The microwave emission performance of the device was characterized under an external magnetic field. H ext Under a voltage of -75 Oe, the microwave emission spectrum corresponding to different drive currents was tested. After integrating the spectrum signal, the relationship between microwave output power and DC bias current was obtained, and this variation can be accurately fitted by a ReLU-like function.
[0079] The ReLU physical activation function expression for MTJ-STNO devices is as follows: .
[0080] In the formula, This represents the target DC drive current, i.e., the injected DC current. This indicates the transmit microwave power of the MTJ-STNO device. This represents the threshold current corresponding to the starting point of the continuous oscillation. This represents an effective scaling factor used to describe the linear growth rate of output power after exceeding a threshold region. b is a constant, approximately zero in magnitude.
[0081] when < At that time, microwave output power =0. When ≥ hour, Follow Linear growth. This physical response characteristic can completely replace the computational function of the traditional digital ReLU activation function.
[0082] Based on the above description, compared with existing traditional digital neural network traffic sign recognition technology, this application also has at least the following advantages: 1. Ultra-low power consumption and strong hardware adaptability. This application utilizes the inherent physical characteristics of MTJ-STNO devices to achieve nonlinear activation in the analog domain, eliminating the complex operational logic of traditional digital circuits and eliminating the need for digital-to-analog / analog-to-digital conversion units. This significantly reduces hardware power consumption and resource consumption, perfectly adapting to the deployment requirements of low power consumption, small size, and real-time performance of automotive edge devices.
[0083] 2. High recognition accuracy and excellent robustness. This application can accurately replicate the ReLU nonlinear activation characteristics, with a recognition accuracy consistently above 95% and AUC values approaching 1.00 for each category. For complex scenarios such as easily confused traffic signs and changes in lighting, its recognition performance surpasses traditional digital models, and its generalization ability is stronger.
[0084] 3. Stable hardware performance and high reliability. The customized MTJ-STNO device has an ultra-high TMR ratio of 112%, stable magnetoelectric and microwave emission characteristics, no performance drift at room temperature, and high consistency of physical activation behavior, and can work stably for a long time in complex automotive environments.
[0085] 4. Broad technological scalability and high application value. This application is the first to achieve deep integration of spintronic neuromorphic devices with intelligent transportation perception tasks, breaking through the power consumption bottleneck of vehicle edge vision recognition, and providing a brand-new hardware computing power solution for autonomous driving perception, vehicle edge intelligence, and low-power machine vision equipment.
[0086] Based on the same inventive concept, this application also provides a traffic sign recognition system for implementing the traffic sign recognition method described above. The solution provided by this system is similar to the implementation described in the above method; therefore, the specific limitations of one or more traffic sign recognition system embodiments provided below can be found in the limitations of the traffic sign recognition method described above, and will not be repeated here.
[0087] In one exemplary embodiment, a traffic sign recognition system is provided, comprising: a recognition model construction module, an image data acquisition module, and a traffic sign recognition module.
[0088] The recognition model construction module uses a spin nano-oscillator based on a magnetic tunnel junction to construct a neuromorphic convolutional neural network, and uses a cross-entropy loss function with L2 weight decay regularization to complete the iterative training of the neuromorphic convolutional neural network to obtain a traffic sign recognition model.
[0089] The image data acquisition module acquires traffic sign image data in real time.
[0090] The traffic sign recognition module uses a traffic sign recognition model to obtain traffic sign recognition results based on traffic sign image data.
[0091] As an optional implementation, the traffic sign recognition system provided in this application can be applied in autonomous driving vehicle-mounted edge perception devices and intelligent traffic vision recognition terminals.
[0092] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 17As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores traffic sign recognition data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network. When the computer program is executed by the processor, it implements a traffic sign recognition method.
[0093] Those skilled in the art will understand that Figure 17 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer equipment to which the present application is applied. Specific computer equipment may include, for example, [the following is a list of possible additional structures]. Figure 17 The diagram shows more or fewer components, or combinations of certain components, or different component arrangements.
[0094] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0095] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0096] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0097] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0098] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (RRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
[0099] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0100] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0101] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A traffic sign recognition method, characterized in that, include: A neuromorphic convolutional neural network (CNN) was constructed using a spin nano-oscillator based on a magnetic tunnel junction, and iterative training of the CNN was performed using a cross-entropy loss function with L2 weight decay regularization to obtain a traffic sign recognition model. The traffic sign recognition model includes: a convolutional feature extraction layer, an STNO physical activation layer, a dimension transformation layer, a fully connected layer, an activation function layer, and an output layer. The STNO physical activation layer includes: a digital-to-analog mapping module, a spin nano-oscillator based on a magnetic tunnel junction, a readout circuit acquisition device, an analog-to-digital sampling module, and an inverse rescaling module. Real-time acquisition of traffic sign image data; The traffic sign recognition model is used to obtain the traffic sign recognition result based on the traffic sign image data.
2. The traffic sign recognition method according to claim 1, characterized in that, Using the traffic sign recognition model, traffic sign recognition results are obtained based on the traffic sign image data, including: The convolutional feature extraction layer is used to extract multi-dimensional and multi-scale visual features from the traffic sign image data to obtain a multi-channel feature map. The STNO physical activation layer is used to perform physical nonlinear activation on the multi-channel feature map to obtain a two-dimensional feature map; The dimensional transformation layer is used to flatten the two-dimensional feature map to obtain a one-dimensional feature vector. The fully connected layer, the activation function layer, and the output layer are used to perform fully connected mapping and Softmax classification on the one-dimensional feature vector to obtain the traffic sign recognition result.
3. The traffic sign recognition method according to claim 2, characterized in that, The STNO physical activation layer is used to perform physical nonlinear activation on the multi-channel feature map to obtain a two-dimensional feature map, including: The digital-to-analog mapping module is used to extract features and perform digital mapping on the multi-channel feature map to obtain the target DC drive current; A spin nano-oscillator based on a magnetic tunnel junction is used to obtain a microwave power signal based on the target DC drive current; The microwave power signal is converted into a voltage signal using the readout circuit acquisition device. The voltage signal is sampled using the analog-to-digital sampling module to obtain the digital power. The reverse rescaling module is used to map the digitized power to a feature value range to generate the two-dimensional feature map.
4. The traffic sign recognition method according to claim 3, characterized in that, The process of mapping the digitized power to a feature value range is represented as follows: ; In the formula, For feature pixels, For the truncation function, The baseline power is below the oscillation threshold. The rated power corresponding to the maximum DC drive current. For digital power, To activate the numerical range.
5. The traffic sign recognition method according to claim 3, characterized in that, The formula for determining the target DC drive current is: ; In the formula, For the target DC drive current, For the truncation function, These are the eigenvalues of the multi-channel feature map. For the calibrated minimum DC drive current, For the calibrated maximum DC drive current, The range of eigenvalues.
6. The traffic sign recognition method according to claim 1, characterized in that, The cross-entropy loss function with L2 weight decay regularization is expressed as follows: ; In the formula, The value of the cross-entropy loss function. Indicates the training batch size. Let the one-hot encoding of the true label be the i-th sample. The predicted probability of class c is the output of the activation function layer. The L2 regularization coefficient is... Let L be the L2 norm of the weight matrix.
7. The traffic sign recognition method according to claim 3, characterized in that, The spin nano-oscillator based on the magnetic tunnel junction consists of a bottom electrode stack, a functional magnetic stack, and a top electrode stack from bottom to top. The bottom electrode stack layer includes two Ta layers, a CuN layer, and a first Ru layer; The functional magnetic stacked layer comprises two Co layers. 40 Fe 40 B 20 Layer, MgO layer, second Ru layer, Co 70 Fe 30 Layers and IrMn layers; first layer Co 40 Fe 40 B 20 The first layer is a free layer; the second Ru layer, Co layer 70 Fe 30 The layer and the IrMn layer constitute a synthetic polarization layer; The top electrode stack layer includes a first Ru layer, a Cu layer, and a Ta layer.
8. A traffic sign recognition system, characterized in that, include: The recognition model construction module is used to construct a neuromorphic convolutional neural network using a spin nano-oscillator based on a magnetic tunnel junction, and to perform iterative training of the neuromorphic convolutional neural network using a cross-entropy loss function with L2 weight decay regularization to obtain a traffic sign recognition model. The traffic sign recognition model includes: a convolutional feature extraction layer, an STNO physical activation layer, a dimension transformation layer, a fully connected layer, an activation function layer, and an output layer. The STNO physical activation layer includes: a digital-to-analog mapping module, a spin nano-oscillator based on a magnetic tunnel junction, a readout circuit acquisition device, an analog-to-digital sampling module, and a reverse rescaling module. Image data acquisition module, used to acquire traffic sign image data in real time; The traffic sign recognition module is used to obtain traffic sign recognition results based on the traffic sign image data using the traffic sign recognition model.
9. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that the processor executes the computer program to implement the traffic sign recognition method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the traffic sign recognition method according to any one of claims 1-7.
