Intelligent write amplification reduction for data storage devices deployed on autonomous vehicles
By using artificial neural networks and spiking neural networks combined with sensor data prediction technology in autonomous vehicles, the problem of component failure prediction is solved, the safety and maintenance efficiency of the vehicle are improved, and the performance of the data storage device is optimized.
Patent Information
- Application Number
- CN202010908551.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-05
- Filing Date
- 2020-09-02
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-09-02
AI Technical Summary
Existing technologies are difficult to effectively predict and prevent component failures in autonomous vehicles, leading to possible traffic accidents and maintenance delays.
Use artificial neural networks (ANN), especially spiking neural networks (SNN), to combine sensor data and machine learning technology to predict the health status and potential failures of components, optimize data placement schemes through data storage devices to reduce write amplification, and improve computing efficiency.
It achieves real-time monitoring and fault prediction of the health status of autonomous vehicle components, reduces the risk of traffic accidents, optimizes maintenance service arrangements, and improves vehicle reliability and maintenance efficiency.
Smart Images

Figure CN112446479B_ABST
Abstract
Description
Technical Field
[0001] At least some embodiments disclosed herein relate generally to data storage devices, and more particularly, but not limited to, intelligent write amplification reduction for data storage devices configured on autonomous vehicles. Background Art
[0002] Recent developments in the field of autonomous driving technology allow computing systems to operate control elements of a vehicle without assistance from a human operator of the motor vehicle, at least under some conditions.
[0003] For example, sensors (e.g., cameras and radars) may be installed on a motor vehicle to detect conditions of the vehicle's surroundings as it travels on a road. A computing system installed on the vehicle analyzes the sensor inputs to identify the conditions and generates control signals or commands for autonomously adjusting the direction and / or speed of the vehicle with or without any input from a human operator of the vehicle.
[0004] In some arrangements, when the computing system identifies a situation in which the computing system may not be able to continue operating the vehicle in a safe manner, the computing system alerts the human operator of the vehicle and requests the human operator to take over control of the vehicle and drive manually, rather than allowing the computing system to drive the vehicle autonomously.
[0005] Autonomous driving and / or advanced driver assistance systems (ADAS) often involve artificial neural networks (ANNs) for recognizing events and / or objects captured in sensor inputs.
[0006] Generally speaking, an artificial neural network (ANN) uses a network of neurons to process inputs to the network and generate outputs from the network.
[0007] For example, each neuron in the network receives a set of inputs. Some of the inputs to the neurons may be outputs of certain neurons in the network; and some of the inputs to the neurons may be inputs provided to the neural network. The input / output relationship between neurons in the network represents the neuron connectivity in the network.
[0008] For example, each neuron may have a bias, an activation function, and a set of synaptic weights for its inputs, respectively. The activation function may be in the form of a step function, a linear function, a log-sigmoid function, etc. Different neurons in the network may have different activation functions.
[0009] For example, each neuron may produce a weighted sum of its input and its bias, and then produce an output that is a function of the weighted sum, computed using the neuron's activation function.
[0010] The relationship between the input and output of an ANN is typically defined by an ANN model, which contains data representing the connectivity of the neurons in the network, as well as the bias, activation function, and synaptic weights of each neuron. Using a given ANN model, a computing device calculates the output of the network from a given set of inputs to the network.
[0011] For example, input to the ANN network may be generated based on camera input; and output from the ANN network may be identification of items such as events or objects.
[0012] A spiking neural network (SNN) is a type of ANN that closely mimics a natural neural network. When the activation level of the neuron is high enough, the SNN neuron produces a spike as an output. The activation level of the SNN neuron mimics the membrane potential of a natural neuron. The output / spike of the SNN neuron can change the activation level of other neurons that receive the output. The current activation level of the SNN neuron over time is typically modeled using differential equations and is considered to be the state of the SNN neuron. Incoming spikes from other neurons can push the activation level of the neuron higher to reach the threshold of the spike. Once a neuron reaches a spike, its activation level is reset. Before reaching a spike, the activation level of the SNN neuron can decay over time, as controlled by a differential equation. The temporal element in the behavior of the SNN neuron makes the SNN suitable for processing spatiotemporal data. The connectivity of SNNs is typically sparse, which is advantageous in reducing computational workload.
[0013] In general, ANNs can be trained using supervised methods, in which parameters in the ANN are adjusted to minimize or reduce the error between known outputs produced from corresponding inputs and calculated outputs produced from applying the inputs to the ANN. Examples of supervised learning / training methods include reinforcement learning and learning with error correction.
[0014] Alternatively or in combination, the ANN may be trained using an unsupervised approach, where the exact outputs produced from a given set of inputs are not known until training is complete. The ANN may be trained to classify items into multiple categories or to classify data points into clusters.
[0015] Multiple training algorithms can be employed for complex machine learning / training paradigms. Summary of the invention
[0016] In one aspect, the present application is directed to a data storage device comprising: one or more storage media components; a controller configured to store data in and retrieve data from the one or more storage media components based on commands received in the data storage device; an address mapping map configured to map between the following two addresses: a logical address specified in the command received in the data storage device and a physical address of a memory cell in the one or more storage media components; and an artificial neural network configured to receive as input an operating parameter indicating a data access pattern that varies over time, and to generate a prediction based on the input to determine an optimized data placement scheme; wherein the controller is configured to adjust the address mapping map based on the optimized data placement scheme.
[0017] In another aspect, the present application is directed to a method comprising: storing data in and retrieving data from one or more storage media components of the data storage device in accordance with a command received in the data storage device; using an address mapping map configured in the data storage device to map between the following two addresses: a logical address specified in the command received in the data storage device and a physical address of a memory unit in the one or more storage media components; providing an operating parameter indicating a data access pattern in the data storage device that varies with time as input to an artificial neural network; using the artificial neural network to generate predictions based on the input to determine an optimized data placement scheme; and adjusting the address mapping map by a controller of the data storage device in accordance with the optimized data placement scheme.
[0018] In another aspect, the present application is directed to a vehicle comprising: a computer system configured to generate time-varying operating parameters of the vehicle; and a data storage device configured to identify operating parameters of the data storage device, wherein the operating parameters of the vehicle and the operating parameters of the data storage device indicate a data access pattern in the data storage device; wherein the data storage device includes an address mapping map configured to map between the following two addresses: a logical address specified in the command received from the computer system and a physical address of a memory cell in the data storage device; and wherein the data storage device is configured to generate predictions to determine an optimized data placement scheme based on the operating parameters of the vehicle and the operating parameters of the data storage device as inputs to an artificial neural network; and wherein the data storage device is configured to apply the optimized data placement scheme to the address mapping map. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings in which like references indicate similar elements.
[0020] Figure 1 A system is shown in which a vehicle is configured with a data storage device to collect and process sensor data according to some embodiments.
[0021] Figure 2 An autonomous vehicle having a data storage device according to one embodiment is shown.
[0022] Figures 3 to 5 The diagram illustrates training an artificial neural network for maintenance service prediction according to some embodiments.
[0023] Figure 6 A method of predictive maintenance according to one embodiment is presented.
[0024] Figure 7 A data storage device for accelerating neural network computations according to one embodiment is shown.
[0025] Figure 8 A storage media component is shown for accelerating neural network computations according to one embodiment.
[0026] Fig. 9 A method for accelerating neural network computations in a motor vehicle is presented according to one embodiment.
[0027] Fig.10 A data storage device configured to support neural network computations according to one embodiment is shown.
[0028] Fig.11 The diagram illustrates the configuration of a namespace for an artificial neural network (ANN) model according to one embodiment.
[0029] Fig.12 Illustrate configuration of a namespace for input to an artificial neuron according to one embodiment.
[0030] Fig.13 Illustrate configuration of a namespace for outputs from an artificial neuron, according to one embodiment.
[0031] Figures 14 to 16 A method of predictive maintenance supported by a model namespace, an input namespace, and an output namespace according to one embodiment is presented.
[0032] Fig.17 Communications utilizing a data storage device for performing neural network computations are shown according to one embodiment.
[0033] Fig.18Communications within a data storage device for performing neural network computations according to one embodiment are shown.
[0034] Fig.19 A method of communicating with a data storage device to perform neural network computations according to one embodiment is presented.
[0035] Fig. 20 A data storage device configured to reduce write amplification according to one embodiment is shown.
[0036] Fig.21 A method of write amplification reduction in a data storage device of an autonomous vehicle is presented according to one embodiment. DETAILED DESCRIPTION
[0037] At least some embodiments disclosed herein provide systems, methods, and apparatus for processing sensor data generated in a motor vehicle or another vehicle with or without an advanced driver assistance system (ADAS).
[0038] Before a component of a motor vehicle is damaged or fails during operation of the vehicle, there may be an indication of whether the component needs replacement or maintenance. Such an indication may not be obvious to a typical driver or passenger. However, sensor data may be collected and analyzed to predict the probability of component failure. The prediction may be used to schedule maintenance service, which may reduce or eliminate the chance of an accident occurring in which a component of the vehicle is damaged or fails during operation of the vehicle on the road. In addition, the prediction allows maintenance trips to be scheduled at convenient times.
[0039] For example, sensors may be installed in an automobile system to collect data during its routine operation; and the sensor data may be used to predict whether and how soon a component needs to be replaced or maintained. The sensor data may be provided as input to an artificial neural network (ANN) (e.g., a spiking neural network (SNN)) of an artificial intelligence (AI) system to train the ANN (e.g., using unsupervised machine learning techniques) over a time period in which the vehicle is expected to operate normally. The training customizes the neural network to the specific operating environment of the driver, passenger, or user of the vehicle and the personalized operating habits of the vehicle owner. Subsequently, the artificial neural network may detect an abnormal condition when the operating data deviates from the normal pattern. The AI system may be used to recommend maintenance services and / or identify components that may need to be replaced or maintained.
[0040] Figure 1 A system is shown in which a vehicle is configured with a data storage device to collect and process sensor data according to some embodiments.
[0041] Figure 1The system includes a vehicle 111 having a data storage device 101. Optionally, the vehicle 111 has an advanced driver assistance system (ADAS) 105 and one or more sensors 103 that provide sensor data input to the ADAS 105 and / or the data storage device 101. The data storage device 101 is configured to use an artificial neural network (ANN) 125 to predict / identify the need for maintenance service based on data collected by the sensor 103. The ADAS 105 can be omitted without affecting the predictive maintenance feature. In some implementations, at least a portion of the data generated by the sensor 103 is used both in the ADAS 105 for driver assistance and in the ANN 125 for maintenance prediction. Optionally, the output of the ANN 125 can be used in both the data storage device 101 and the ADAS 105.
[0042] Sensors 103 may include digital cameras, lidars, radars, ultrasonic sonars, brake sensors, speed sensors, acceleration sensors, airbag sensors, GPS (Global Positioning System) receivers, audio sensors / microphones, vibration sensors, force / strain sensors, deformation sensors, motion sensors, temperature sensors, etc. Some of the sensors 103 may be configured primarily to monitor the environment of the vehicle 111; and other sensors 103 may be configured primarily to monitor the operating conditions of one or more components of the vehicle 111 (e.g., the internal combustion engine, exhaust system, electric motor, brakes, tires, battery, etc.).
[0043] The time-varying output of the sensors 103 is provided as a sensor data stream to the ADAS 105 and / or the ANN 125 to provide driver assistance (eg, autonomous driving) and maintenance prediction.
[0044] For example, the vehicle 111 may have a wireless communication device to communicate with a remote server 119 via wireless signals 113 and a communication network 117. The remote server 119 is typically configured at a location away from the road 102 on which the vehicle 111 is used. For example, the vehicle 111 may provide some sensor data 121 to the server 119 and receive updates to the ANN 125 from the server 119.
[0045] One example of a communication network 117 is a mobile phone network having one or more base stations (e.g., 115) to receive wireless signals (e.g., 113). Another example of a communication network 117 is the Internet, where wireless local area network signals (e.g., 113) transmitted by the vehicle 111 are received in an access point (e.g., 115) for further transmission to a server 119. In some embodiments, the vehicle 111 communicates with the server 119 using a communication link 107 to a satellite 109 or a communication balloon.
[0046] The server 119 may also communicate with one or more maintenance service facilities (e.g., 127) to receive maintenance service data 123 of a vehicle (e.g., 111). The maintenance service data 123 may include inspection records and / or repair records of components of the vehicle (e.g., 111). For example, the inspection records and / or repair records may indicate the degree of wear and tear of the components inspected during their maintenance at the maintenance service facility (e.g., 127), the identification of failed or malfunctioning components, etc. The sensor data 121 and maintenance service data 123 of the vehicle (e.g., 111) in the time period before the maintenance may be used to train the ANN 125 to predict the probability that the component requires maintenance service. The updated ANN 125 may be used to predict and recommend maintenance service for the vehicle 111 based on the sensor data 121 received in the most recent time period. Alternatively, the updated ANN 125 may be transmitted to the vehicle 111; and the vehicle 111 may use the data generated from the sensor 103 during the routine operation of the vehicle 111 to predict and recommend maintenance service.
[0047] The data storage device 101 of the vehicle 111 may be configured to record sensor data over a time period that may be used in the ANN for predictive maintenance. Maintenance predictions are typically for relatively long time periods (e.g., days, weeks, and / or months). In contrast, sensor data recorded for reviewing accidents, collisions, or near-collisions involving autonomous vehicles is typically for short time periods (e.g., 30 seconds to several minutes). Therefore, a typical black box data recorder configured to record sensor data for reviewing / analyzing accidents or collisions is insufficient for predictive maintenance.
[0048] Optionally, the data storage device 101 stores sensor data for a period of time resulting in a trip to a maintenance service facility (e.g., 127). The maintenance service facility (e.g., 127) can download the sensor data 121 from the data storage device 101 and provide the sensor data 121 and corresponding maintenance service data 123 to the server 119 to facilitate training of the ANN 125.
[0049] Optionally or in combination, the data storage device 101 is configured with a machine learning module to customize and / or train the ANN 125 installed in the vehicle 111 for predictive maintenance.
[0050] For example, the machine learning module of the data storage device 101 may be used to calibrate the ANN 125 to account for the typical / daily environment in which the vehicle 111 is operated and / or the driving preferences / habits of the driver of the vehicle 111 .
[0051] For example, during a time period when a vehicle is expected to operate under typical / daily circumstances with healthy components, sensor data generated by sensors 103 can be used to train ANN 125 to recognize sensor data patterns that represent trouble-free operation. Such patterns may vary for different vehicles (e.g., 111) based on their routine operating environments and the driving habits / characteristics of their drivers. The training allows ANN 125 to detect deviations from the recognized normal patterns and report anomalies for maintenance prediction.
[0052] For example, the ANN 125 may include an SNN configured to classify time-based changes in sensor data and / or detect deviations from known sensor data patterns for the vehicle 111 operating in normal / health conditions but in a personalized environment (e.g., a driver / passenger's daily route) and / or under personalized driving habits / patterns.
[0053] Figure 2 An autonomous vehicle 111 is shown having a data storage device 101 according to one embodiment. For example, Figure 1 Vehicles in the system 111 can use Figure 2 The autonomous vehicle 111 is implemented.
[0054] Figure 2 The vehicle 111 is configured to have an advanced driver assistance system (ADAS) 105. The ADAS 105 of the vehicle 111 may have an artificial neural network (ANN) 125 for object detection, recognition, identification, and / or classification. The ANN 125 and / or another neural network (e.g., configured in the data storage device 101) may be used to predict the probability that a component of the vehicle 111 requires maintenance service (e.g., repair, replacement, or adjustment).
[0055] Preferably, data storage device 101 is configured to process sensor data at least in part for predictive maintenance with a reduced computational burden on processor 133 tasked with operating ADAS 105 and / or other components (eg, infotainment system 149 ).
[0056] The vehicle 111 typically includes an infotainment system 149, a communication device 139, one or more sensors 103, and a computer system 131 connected to some controls of the vehicle 111, such as a steering control 141 for guiding the vehicle 111, a brake control 143 for stopping the vehicle 111, an acceleration control 145 for the speed of the vehicle 111, etc. In some embodiments, Figure 1 The vehicle 111 in the system has a similar configuration and / or similar components.
[0057] Some of the sensors 103 are required for the operation of the ADAS 105; and some of the sensors 103 are used to collect data related to the health of components of the vehicle 111, which may not be used in the ADAS 105. Optionally, the sensor data generated by the sensors 103 can also be used to predict the likelihood of an imminent component failure. This prediction can be used in the ADAS 105 to take emergency action to put the vehicle in a safe state (e.g., by reducing speed and / or stopping).
[0058] The computer system 131 of the vehicle 111 includes one or more processors 133 , the data storage device 101 , and a memory 135 that stores firmware (or software) 147 , including computer instructions and data models for the ADAS 105 .
[0059] The one or more sensors 103 of the vehicle may include a visible light camera, an infrared camera, a lidar, a radar, or a sonar system, a peripheral sensor, a global positioning system (GPS) receiver, a satellite positioning system receiver, a brake sensor, and / or an airbag sensor. In addition, the sensors 103 may include an audio sensor (e.g., a microphone) configured to monitor noise from various components and locations in the vehicle 111, a vibration sensor, a pressure sensor, a force sensor, a strain sensor, and / or a deformation sensor configured to measure the load on the components of the vehicle 111, an accelerometer, and / or a gyroscope sensor that measures the motion of some components of the vehicle 111, etc. Such sensors can be used to monitor the operating state and / or health of the components for predictive maintenance.
[0060] The sensor 103 may provide a real-time sensor data stream to the computer system 131. The sensor data generated by the sensor 103 of the vehicle 111 may include images of objects captured using a camera that uses light imaging visible to the human eye or a camera that uses infrared light imaging, or a sonar, radar, or LIDAR system. The image data obtained from at least one sensor of the vehicle is part of the collected sensor data for recording in the data storage device 101 and / or as an input to the ANN 125. For example, the camera can be used to obtain road information for the travel of the vehicle 111, which can be processed by the ANN 125 to generate control signals for the vehicle 111. For example, the camera can be used to monitor the operating status / health of the components of the vehicle 111, which can be processed by the ANN 125 to predict or schedule maintenance services.
[0061] The sensor data generated by the sensors 103 of the vehicle 111 may include an audio stream that captures acoustic characteristics at locations on the vehicle 111, such as locations near the engine, motor, drivetrain, wheels, doors, windows, etc. The audio data obtained from at least one sensor 103 of the vehicle 111 may be part of the collected sensor data for recording in the data storage device 101 and / or as input to the ANN 125. For example, the audio stream may be used to monitor the operating state / health of components of the vehicle 111 (e.g., internal combustion engine, exhaust system, electric motor, brakes), which may be processed by the ANN 125 to predict or schedule maintenance service.
[0062] The infotainment system 149 may be used to present the predicted or scheduled maintenance service. Optionally, the communication device 139 may establish a connection to a mobile device of the driver of the vehicle 111 to notify the driver of the recommended maintenance service and / or recommended repair data, schedule an appointment, etc.
[0063] When the vehicle 111 is configured with the ADAS 105 , the output of the ADAS 105 may be used to control (eg, 141 , 143 , 145 ) the acceleration of the vehicle 111 , the speed of the vehicle 111 , and / or the direction of the vehicle 111 during autonomous driving.
[0064] Figures 3 to 5 The diagram illustrates training an artificial neural network for maintenance service prediction according to some embodiments.
[0065] exist Figure 3 In the example, the supervised machine learning module 171 is used to train the artificial neural network 125 to minimize the difference between the maintenance predictions 129 generated from the sensor data 121 and the maintenance service data 123.
[0066] For example, the maintenance service data 123 may identify measured wear and tear of components over time to predict the time of recommended maintenance. The sensor data 121 may be used in the ANN 125 to generate the predicted time of recommended maintenance. The supervised machine learning module 171 may adjust the artificial neural network 125 to reduce / minimize the difference between the time predicted based on the sensor data 121 and the time calculated from the measured values of wear and tear.
[0067] For example, maintenance service data 123 may identify a component that was replaced or repaired in maintenance service facility 127. Sensor data 121 recorded during a time period prior to the replacement or repair of the component may be used to calculate a time to replace or repair. Additionally, segments of the sensor data stream during a time period prior to the replacement or repair may be used in ANN 125 to generate predictions of the time to replace or repair. Supervised learning 171 may be used to tune ANN 125 to reduce the predicted time to replace or repair and the actual time to replace or repair.
[0068] Figure 2 The supervised learning 171 may be applied in the server 119 to generate a general ANN for the vehicle group based on the sensor data of the vehicle group and its maintenance service data 123 .
[0069] Figure 2 The supervised learning 171 can be applied in the vehicle 111 to generate a customized / personalized ANN for a fleet of vehicles based on the vehicle's sensor data and its maintenance service data 123. For example, a generic ANN can be initially used in the vehicle 111; and the vehicle 111's sensor data and its maintenance service data 123 can be used to further train the vehicle's ANN 125 to achieve customization and personalization of the ANN 125 in the vehicle 111.
[0070] exist Figure 4 In the embodiment of the present invention, an unsupervised machine learning module 175 is used to train or refine the artificial neural network 125 to facilitate anomaly detection 173. The unsupervised machine learning module 175 is configured to adjust the ANN (e.g., SNN) for classifications, clusters, or recognized patterns in the sensor data 121, so that deviations from classifications, clusters, or recognized patterns in the sensor data 121 generated in a recent time period can be used as a signal for anomaly detection 173. Anomaly detection 173 allows the vehicle 111 to be scheduled for inspection at the maintenance service facility 127. Optionally, after the inspection, the maintenance service data 123 can be used to apply supervised learning 171 to produce more accurate maintenance predictions, such as in Figure 3 middle.
[0071] Generally, it may be assumed that the vehicle 111 operates in a normal / healthy state for a particular period of time. For example, after initially sending a new vehicle 111 in for repair, it may be assumed that the vehicle 111 provides trouble-free service for at least a period of time (e.g., several months). For example, after a period of time following replacement or repair of a component, it may be assumed that the component provides trouble-free service for at least a period of time (e.g., several months or a year). Thus, the sensor data 121 acquired during this period of time may be pre-classified as “normal” for use with unsupervised learning 175 (e.g., in Figure 4 in) or supervised learning171 (as in Figure 5Middle) Training ANN 125.
[0072] For example, sensor data 121 collected during a "normal" service time period of a vehicle 111 or component may be classified into several clusters via unsupervised learning 175. Different clusters may correspond to different types of normal conditions (e.g., traveling on different routes, on roads with different surface conditions, on days with different weather conditions, at different times of the day, different days of the week, under different driving habit emotions of the driver). When subsequent sensor data 121 is classified as being outside of a "normal" cluster, an anomaly is detected.
[0073] Optionally, supervised machine learning 171 may be used to train the ANN 125, as in Figure 5 1. During a "normal" use cycle of a vehicle 111 or component, the sensor data 121 may be labeled with an expected classification 177. Supervised learning 171 may be used to minimize classification differences between predictions 179 made from the sensor data 121 using the ANN 125 and the expected classification 177. In addition, when the sensor data 121 is known to be "abnormal" (e.g., in a maintenance service facility 127 or after a diagnosis made by a user, driver, or passenger of the vehicle 111), the expected classification 177 may be changed to "abnormal" to further train the ANN 125 to directly identify anomalies (e.g., rather than relying on deviations from a known "normal" cluster to infer anomalies).
[0074] Thus, the ANN 125 may be trained to identify anomalous sensor data and estimate the severity of the anomaly to schedule maintenance service.
[0075] Figure 6 A method of predictive maintenance according to one embodiment is presented. For example, Figure 6 The method may be implemented in the vehicle 111 Figure 1 or 2 in the data storage device 101 or Figure 2 In the computer system 131 in the vehicle 111.
[0076] At box 201 , sensors (eg, 103 ) installed in a vehicle 111 generate a sensor data stream (eg, 121 ) during operation of the vehicle 111 on a road 102 .
[0077] At block 203, the sensor data stream (eg, 121) is provided into an artificial neural network (ANN) 125. For example, the ANN 125 may include a spiking neural network (SNN).
[0078] At block 205 , an artificial neural network (ANN) 125 generates a prediction for maintenance service based on the sensor data stream (eg, 121 ).
[0079] At block 207 , the data storage device 101 disposed on the vehicle stores at least a portion of the sensor data stream (eg, 121 ).
[0080] At box 209 , an artificial neural network (ANN) is trained using a sensor data stream (eg, 121 ) collected over a predetermined period of time since the vehicle left the factory or maintenance service facility 127 .
[0081] For example, the artificial neural network (ANN) may be configured to identify components of the vehicle 111 that need to be repaired or replaced in a maintenance service and / or identify a predicted time period for component failure or malfunction or a suggested time period for a recommended maintenance service for a component before the component fails or malfunctions. Thus, performing the predicted maintenance service may avoid incidents of component failure or malfunction while the vehicle 111 is operating on the road 102.
[0082] For example, sensor 103 may be a microphone installed near the component, a vibration sensor attached to the component, a pressure sensor installed in the component, a force or stress sensor installed on or attached to the component, a deformation sensor attached to the component, or an accelerometer configured to measure a motion parameter of the component.
[0083] Optionally, the data storage device 101 of the vehicle 111, the computer system 131 and / or the server 119 remote from the vehicle may have a machine learning module configured to train the artificial neural network (ANN) 125 during a time period in which the vehicle 111 is assumed to be in a healthy state, such as a predetermined time period since the vehicle 111 left the factory or maintenance service facility 127.
[0084] For example, the machine learning module may use unsupervised machine learning 175 to train the ANN 125 to recognize / classify normal patterns of the sensor data 121 and thus have the ability to detect anomalies based on deviations from normal patterns, such as in Figure 4 Alternatively, supervised machine learning 171 may be used, as in Figure 3 Or the diagram in 5.
[0085] For example, unsupervised machine learning 175 may be applied by the data storage device 101 or computer system 131 of the vehicle 111 during a predetermined time period in which the vehicle and / or components are known to operate without failure or degradation.
[0086] Alternatively or in combination, some of the sensor data 121 stored in the data storage device 101 of the vehicle 111 may be uploaded to the server 119 to train the ANN 125 .
[0087] In at least some embodiments disclosed herein, the data storage device 101 is configured to accelerate computation of an artificial neural network (ANN) 125 of the vehicle 111 .
[0088] For example, in addition to supporting typical operations of data access and storage, the data storage device 101 may be further configured to perform at least a portion of computations involving an artificial neural network (ANN) 125, such as generating predictions (e.g., 129 or 173) or classifications (e.g., 179) from the sensor data 121 and / or performing unsupervised machine learning 175 (e.g., as in Figure 4 ) and / or supervised machine learning 171 (e.g., as illustrated in Figure 3 or 5) to adjust the ANN 125.
[0089] For example, the computations configured in the data storage device 101 can be used to reduce the amount of data to be transmitted to the processor 133 for use or application of the ANN 125 and / or reduce the computational tasks of the processor 133 in evaluating the output of the ANN 125 and / or in training the ANN 125. This arrangement can result in faster output and / or lower energy usage from the data storage device 101 because the data will not have to be moved into memory and out of the sensor to a dedicated stand-alone neural network accelerator. The computational power of the data storage device 101 in processing data related to the ANN 125 enables the computer system 131 of the motor vehicle 111 to monitor the health of the automotive components (e.g., in a non-real-time or pseudo-real-time manner) with reduced or no impact on the processing of critical tasks (e.g., autonomous driving by ADAS 105). In addition, the computational power of the data storage device 101 can be used to accelerate the processing of sensor data for ADAS 105 and thus improve the processing of critical tasks.
[0090] Figure 7 A data storage device 101 is shown for accelerating neural network computations according to one embodiment. For example, Figure 7 The data storage device 101 can be used to implement Figure 1 Or the data storage device 101 of the vehicle 111 illustrated in Figure 2.
[0091] exist Figure 7 In the embodiment, the data storage device 101 has a host interface 157 configured to communicate with a processor (e.g., 133). For example, the communication between the processor (e.g., 133) and the host interface 157 may be based at least in part on a communication protocol for a Peripheral Component Interconnect Express (PCIe) bus, a Serial Advanced Technology Attachment (SATA) bus, a Universal Serial Bus (USB), and / or a Storage Area Network (SAN).
[0092] For example, the host interface 157 may be used to receive sensor data 121 generated by sensors 103 of the vehicle 111 to optionally store a portion of the sensor data 121 in the storage media components 161 - 163 .
[0093] For example, each of the storage media components 161 to 163 may be a memory integrated circuit configured to store data. For example, the media component 161 or 163 may include one or more integrated circuit dies embedded in an integrated circuit package. The integrated circuit die may have many memory cells formed thereon to store data.
[0094] Generally speaking, some memory integrated circuits are volatile and require power to maintain stored data; and some memory integrated circuits are non-volatile and can retain stored data even when not powered.
[0095] Examples of non-volatile memory include flash memory, memory cells formed based on NAND logic gates, NOR logic gates, phase change memory (PCM), magnetic memory (MRAM), resistive random access memory, cross-point memory devices, and memory devices. Cross-point memory devices use transistor-free memory elements, each of which has memory cells and selectors stacked together in columns. The memory element columns are connected via two vertical wire layers, one of which is located above the memory element columns and the other is located below the memory element columns. Each memory element can be individually selected at the intersection of one wire on each of the two layers. Cross-point memory devices are fast and non-volatile, and can be used as a unified memory pool for processing and storage. Other examples of non-volatile memory include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), and electronically erasable programmable read-only memory (EEPROM), etc. Examples of volatile memory include dynamic random access memory (DRAM) and static random access memory (SRAM).
[0096] The data storage device 101 may have a controller 151 including a volatile local memory 153 and at least one processing device 155 .
[0097] The local memory of the controller 151 may be an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the processing device 155, including handling communications between the data storage device 101 and the processor (e.g., 133) of the vehicle 111 and other functions described herein. The local memory 153 of the controller 151 may include a read-only memory (ROM) for storing microcode and / or memory registers for storing, for example, memory pointers, fetched data, etc., and / or volatile memory, such as dynamic random access memory (DRAM) and static random access memory (SRAM).
[0098] exist Figure 7 , data storage device 101 includes a neural network accelerator 159 coupled to a controller 151 and / or storage media components 161 to 163.
[0099] For example, the neural network accelerator 159 may be configured to perform matrix arithmetic calculations. The calculations involving the ANN 125 have matrix multiplication and accumulation operations that can be computationally intensive for a general purpose processor (e.g., 133). Using the neural network accelerator 159 to perform matrix arithmetic calculations can reduce the data to be transmitted to the processor 133 of the vehicle 111 and reduce the computational workload on the processor 133.
[0100] For example, when ANN 125 includes a spiking neural network (SNN), simulation of differential equations used to control the activation levels of SNN neurons may be computationally intensive for a general purpose processor (e.g., 133). Neural network accelerator 159 may use special hardware to simulate differential equations and thereby improve the computational efficiency of computer system 131 as a whole.
[0101] In some implementations, neural network accelerator 159 is an integrated circuit device separate from controller 151 and / or storage media components 161-163. Alternatively or in combination, neural network accelerator 159 is integrated with controller 151 in an integrated circuit package. Furthermore, neural network accelerator 159 may be integrated into at least one of storage media components 161-163, such as in Figure 8 Illustration in Chinese.
[0102] Figure 8 A storage media component 160 is shown for accelerating neural network computations according to one embodiment. For example, Figure 7 Each or some of the storage media components 161 to 163 in the Figure 8 The storage media component 160 is implemented.
[0103] exist Figure 8In the embodiment of the present invention, the storage media component 160 can be housed within an integrated circuit package. The input / output (I / O) interface 172 of the storage media component 160 is configured to process input / output signals in the pins of the integrated circuit package. For example, the input / output signals may include: an address signal, which is used to specify a location in the media unit 176; and a data signal, which represents data to be written to or retrieved from the location in the media unit 176 specified by the address signal.
[0104] exist Figure 8 In the example, the neural network accelerator 159 is coupled to the control logic 174 and / or the media unit 176 to perform calculations for evaluating the output of the ANN 125 and / or training the ANN 125.
[0105] For example, input / output interface 172 may receive an address identifying a matrix stored in a media unit and to be operated on via neural network accelerator 159. Storage media component 160 may provide the computational results of neural network accelerator 159 as output data, store the output data in a buffer for further operation, store the output data in a location specified via an address signal in media unit 176 in response to the address. Thus, the computation performed by neural network accelerator 159 may be within storage media component 160, which is proximate to media unit 176 in which the matrix data is stored. For example, each of media units 176 may be an integrated circuit die on which memory cells of non-volatile memory are formed.
[0106] For example, state data of SNN neurons may be stored in media unit 176 according to a predetermined pattern. Neural network accelerator 159 may automatically update the state of SNN neurons according to differential equations used to control the activation level of SNN neurons over time. Optionally, neural network accelerator 159 is configured to process spikes of neurons in a neural network. Alternatively, neural network accelerator 159 and / or processor 133 of data storage device 101 may be configured to process spikes of neurons and / or accumulation of inputs to the SNN.
[0107] Fig. 9 A method for accelerating neural network computations in a motor vehicle is presented according to one embodiment. For example, Fig. 9 The method can be used Figure 7 The data storage device 101 and / or Figure 8 The storage media component 160 is implemented in Figure 1 or 2 in vehicle 111. For example, Fig. 9 The method can be used with Figure 6 methods are used in combination.
[0108] At block 221 , the data storage device 101 of the vehicle 111 receives a sensor data stream from at least one sensor (eg, 103 ) configured on the vehicle 111 .
[0109] At block 223 , the data storage device 101 stores at least a portion of the sensor data stream.
[0110] At box 225, the neural network accelerator 159 configured within the data storage device 101 performs at least a portion of the calculations based on the artificial neural network 125 and the sensor data stream.
[0111] At box 227, maintenance service for vehicle 111 is predicted based at least in part on calculations performed by a neural network accelerator 159 configured within the data storage device 101.
[0112] Optionally, at box 229, an artificial neural network (ANN) is trained at least in part using a neural network accelerator in the vehicle 111 and using sensor data streams collected over a predetermined time period (e.g., a period after a new vehicle 111 is delivered from a factory or after a component is replaced at a maintenance service facility 127).
[0113] For example, the neural network accelerator 159 may be configured on an integrated circuit device separate from the controller 151 of the data storage device and / or separate from the storage media components 161 to 163.
[0114] For example, the neural network accelerator 159 may be configured on an integrated circuit device including the controller 151 of the data storage device 101 or on an integrated circuit device including the storage media component 160 , 1061 , or 163 of the data storage device 101 .
[0115] For example, the neural network accelerator 159 may be configured to perform computations using data stored in the data storage device 101, such as matrix arithmetic calculations for an ANN and / or differential equation simulations for an SNN.
[0116] Examples of matrix arithmetic calculations include matrix multiplication and accumulation operations. After a calculation to generate a result of a matrix arithmetic calculation using data stored in the data storage device 101, upon retrieval of the data (e.g., in response to a read command), the neural network accelerator 159 may provide the result as an output of the data storage device 101. Alternatively or in combination, the result of the matrix arithmetic calculation may be buffered in the data storage device 101 as an operand for the next matrix calculation performed in combination with a data matrix retrieved from the non-volatile memory via a read command received in the host interface 157.
[0117] When the artificial neural network (ANN) 125 includes a spiking neural network (SNN), the neural network accelerator may be configured to simulate differential equations that control activation levels of neurons in the spiking neural network (SNN). Optionally, the storage medium component is configured to store states of neurons in the spiking neural network according to a predetermined pattern; and the neural network accelerator is configured to automatically update the states of the neurons over time according to the differential equation. For example, the neural network accelerator 159 may be configured to train a spiking neural network (SNN) to detect anomalies via unsupervised machine learning.
[0118] The calculations performed by the neural network accelerator 159 based on the artificial neural network (ANN) 125 involve different types of data with different usage patterns of the data storage device 101.
[0119] For example, making predictions using an artificial neural network (ANN) 125 includes using data that specifies a model of the artificial neural network (ANN) 125, input data provided to the artificial neuron, and output data generated by the artificial neuron.
[0120] The storage capacity of the data storage device 101 can be divided into different portions for different types of ANN-related data. The different portions can be individually configured to optimize access and storage of corresponding data according to the mode in which the neural network accelerator 159 and / or the processor 133 of the computer system 131 in which the data storage device 101 is configured uses the corresponding data.
[0121] The model of the artificial neural network (ANN) 125 may include parameters that specify the static properties of individual artificial neurons in the ANN 125 and the connectivity of neurons in the ANN 125. The model data of the ANN 125 is static and does not change during the use of the ANN 125 to make prediction calculations. Therefore, the usage mode of the model data is mainly read. However, the model data of the ANN 125 may change when the updated ANN 125 is installed. For example, the vehicle 111 may download the updated ANN 125 from the server 119 to the data storage device 101 of the vehicle 111 to update its prediction capabilities. The model data of the ANN 125 may also change during or after the ANN 125 is trained using machine learning techniques (e.g., 171 or 175). It is preferred to configure a separate partition or namespace of the data storage device 101 to store model data, wherein the partition or namespace is operated according to the configuration parameters of the memory unit optimized for the specific usage mode of the model data (e.g., mainly read, rarely updated). For example, when memory cells are implemented using NAND logic gate-based flash memory, the memory cells in the ANN model partition / namespace can be configured to operate in a multi-level cell (MLC) mode, a three-level cell (TLC) mode, or a four-level cell (QLC) mode, where each memory cell stores two, three, or four bits to achieve increased storage capability.
[0122] The input data provided to the artificial neurons in the ANN 125 may include external inputs and internal inputs. The external inputs are typically generated by the sensors 103 of the vehicle 111 rather than by the artificial neurons in the ANN 125. The external inputs may be saved in a cyclic manner so that the input data for the most recent time period of a predetermined driving length may be found in the data storage device 101. Therefore, it is preferred to configure a separate partition or namespace of the data storage device 101 to store the external input data, wherein the partition or namespace is operated according to the configuration parameters of the memory cells optimized for the storage mode (e.g., enhanced endurance, cyclic overwrite) of the external input data. For example, when the memory cells are implemented using flash memory based on NAND logic gates, the memory cells in the ANN input partition / namespace may be configured to operate in a single level cell (SLC) mode, wherein each memory cell stores one bit of data to achieve improved endurance in a cyclic overwrite operation.
[0123] In some embodiments, an artificial neuron may have state variables that change over time in response to input during a predictive computation. For example, the activation level of a spiking neuron may change over time and be considered a dynamic state variable of the spiking neuron. In some embodiments, this state variable data of the artificial neuron has a storage usage pattern similar to external input data; and therefore, the state variable data may be stored in a partition or namespace configured for external input data. In other embodiments, the state variable data of the artificial neuron is maintained in a buffer and is not stored as frequently as the external input; and therefore, another partition / namespace may be configured for storing the dynamic state variable data of the artificial neuron.
[0124] The output data generated by the artificial neurons in the ANN 125 may be buffered for further access by the neural network accelerator 159 and / or the processor 133 of the computer system 131. The output data may include external output and internal output. The external output is generated by the artificial neuron as an output from the ANN 125, such as a result of a classification or prediction made by the ANN 125. The output of the ANN 125 is usually further processed by the processor 133 of the computer system 131. The external output may be periodically saved (e.g., in a manner similar to storing state variable data). Some of the internal output and / or external output may be internal inputs to the artificial neurons in the ANN 125. In general, it is not necessary to store the internal output from the buffer of the data storage device to the storage media component. In some embodiments, when the buffering capacity of the data storage device 101 is insufficient to hold the entire state variable data and / or internal output, the data storage device 101 may use a swap partition / namespace to expand the capacity of the buffer. The swap partition / namespace may be configured to achieve optimized random access and improved durability.
[0125] The external outputs and / or dynamic states of the neurons may be saved in a separate output partition or namespace in a cyclic manner, such that the external output data and / or dynamic states of the neurons may be stored periodically and the most recent set of external outputs and / or dynamic states may be found in the data storage device 101. The external outputs and / or dynamic states of the neurons may be selectively stored because some of this data may be regenerated by the ANN from external inputs stored in the input partition or namespace. Preferably, the output partition or namespace is configured to store one or more sets of external outputs and / or dynamic states that cannot be created from external inputs stored in the input partition or namespace. When storing data in an input / output partition or namespace in a cyclic manner, the oldest stored data set is erased to make room for the most recent data set. The ANN input / output partition / namespace may be configured to implement an optimized sequential write stream to copy data from a buffer of the data storage device to a memory cell in a storage media component of the data storage device.
[0126] Fig.10 A data storage device 101 is shown configured to support neural network computations according to one embodiment. For example, the data storage device 101 may be in Figure 1 or in the vehicle 111 in 2 to facilitate predictive maintenance and / or support ADAS 105 .
[0127] Similar to Figure 7 The data storage device 101, Fig.10 The data storage device 101 includes a host interface 157 and a controller 151 .
[0128] Similar to Figure 7 The storage media components 161 to 163 in the data storage device 101, Fig.10 The storage capacity 181 of the data storage device 101 may be implemented using a set of storage media components.
[0129] A set of namespaces 183, 185, 187, ... may be created on the storage capacity 181 of the data storage device 101. Each of the namespaces (e.g., 183, 185, or 187) corresponds to a named portion of the storage capacity 181. Logical addresses are defined within each namespace. The address map 191 is configured to associate logical addresses defined in the namespaces 183, 185, 187, ... with storage media components (e.g., Figure 7 Mapping is performed between the physical addresses of the memory cells in 161 to 163) illustrated in the figure.
[0130] Address map 191 may include namespace optimization settings 192 for namespaces 183 , 185 , and 187 .
[0131] For example, the ANN model namespace 183 may be a memory / storage partition configured for model data of the artificial neural network (ANN) 125. The namespace optimization settings 192 optimize memory operations in the ANN model namespace 183 according to the data usage pattern of the ANN model (e.g., centered around mostly reads and rarely updates).
[0132] For example, the neuron input namespace 185 may be a memory / storage partition configured for external input data to the artificial neural network (ANN) 125. The namespace optimization settings 192 optimize memory operations in the neuron input namespace 185 according to the data usage pattern of the external input data (e.g., enhanced durability to support cyclic overwrites of a continuous stream of input data that is written sequentially).
[0133] For example, the neuron output namespace 187 may be a memory / storage partition configured for external output data provided from the artificial neural network (ANN) 125. The namespace optimization settings 192 optimize memory operations in the neuron output namespace 187 according to the data usage pattern of the external output data (e.g., improved durability for periodically overwriting data with random read / write accesses).
[0134] The data storage device 101 includes a buffer 152 configured to store temporary / intermediate data of an artificial neural network (ANN) 125 , such as internal inputs / outputs of artificial neurons in the ANN 125 .
[0135] Optionally, a swap namespace may be configured in storage capacity 181 to expand the capacity of buffer 152 .
[0136] Optionally, the address map 191 includes a mapping between logical memory addresses received in the host interface 157 to access data of an artificial neuron and an identification of the artificial neuron. Thus, a read or write command to access one type of data of an artificial neuron in one namespace may cause the controller 151 to access another type of data of an artificial neuron in another namespace.
[0137] For example, in response to a request to write external input data for a neuron to the storage capacity 181 of the data storage device 101, the address map 191 may be used to calculate the address of the model parameters of the neuron in the ANN model namespace 183 and read the model parameters into the buffer 152 to allow the neural network accelerator 159 to perform calculations on the output of the neuron. The output of the neuron may be stored in the buffer 152 as an internal input to other neurons (e.g., to reduce write amplification). In addition, the identities of other neurons connected to the neuron may also be retrieved from the ANN model namespace 183 to the buffer 152, which allows the neural network accelerator 159 and / or processor to further process the output propagation in the ANN 125. The retrieval of model data from the ANN model namespace 183 may be performed in parallel with the storage of external input data in the neuron input namespace 185. Therefore, the processor 133 of the computer system 131 of the vehicle 111 does not have to explicitly send a read command to retrieve model data from the ANN model namespace 183.
[0138] Similarly, in response to reading the output data of a neuron, the address map 191 may be used to calculate the address at which the model parameters of the neuron are stored in the ANN model namespace 183 and read the model parameters into the buffer 152 to allow the neural network accelerator 159 to apply the internal inputs to the buffer 152 in order to perform calculations on the outputs of the neuron. The calculated output may be provided as a response to reading the output data of the neuron without the data storage device 101 having to store the output data in the storage media components (e.g., 161-163). Thus, the processor 133 and / or the neural network accelerator 159 may control the calculations of the neuron by writing inputs to the neuron and / or reading outputs from the neuron.
[0139] In general, incoming external input data to the ANN 125 may be raw sensor data 121 generated directly by the sensor 103 without being processed by the processor 133 and / or the neural network accelerator 159. Alternatively, indirect sensor data 121 that has been processed by the processor 133 for the ANN 125 based on signals from the sensor 103 may be provided as external input data. The incoming external input data may be accepted in the host interface 157 and written to the neuron input namespace 185 in a round-robin manner and automatically buffered in the buffer 152 for the neural network accelerator 159 to generate neuron outputs using the model stored in the ANN model namespace 183. The output generated by the neural network accelerator 159 may be further buffered as internal input for further application of the model in the ANN model namespace 183. When the external output becomes available, the data storage device 101 may report the completion of the write request and an indication of the availability of the external output. Optionally, the controller 151 and / or the neural network accelerator 159 may generate an internal read command to propagate a signal in the ANN 125 when the external output is generated. Alternatively, host processor 133 may control signal propagation in ANN 125 by selectively reading the outputs of neurons; and data storage device 101 may actively buffer data that may be needed in buffer 152 to speed up ANN computations.
[0140] Fig.11 The diagram illustrates the configuration of the namespace 183 for an artificial neural network (ANN) model according to one embodiment. For example, Fig.11 The configuration can be implemented in Figure 7 and / or the data storage device 101 illustrated in FIG10. For example, Fig.11 The setting 193 can be Fig.10 Part of the namespace optimization setting 192.
[0141] Fig.11 The configuration maps the ANN model namespace 183 to at least one storage media component A 161. Preferably, at least one storage media component A 161 can be used by the controller 151 in parallel with storage media components (e.g., 163) of other namespaces (e.g., 185 and 187) hosting ANN data. For example, the storage media component A 161 can be in an integrated circuit package separate from the integrated circuit packages of other namespaces (e.g., 185 and 187). Alternatively, the storage media components 161-163 are formed on separate integrated circuit dies embedded in the same integrated circuit package. Alternatively, the storage media components 161-163 can be formed on separate areas of the integrated circuit die, where the separate areas can be operated (e.g., read, erased, and / or written) substantially in parallel.
[0142] exist Fig.11 In , setting 193 is optimized for a usage pattern that is primarily read and infrequently updated.
[0143] Fig.12 The diagram illustrates the configuration of the namespace 185 for input to an artificial neuron according to one embodiment. For example, Fig.12 The configuration can be implemented in Figure 7 and / or the data storage device 101 illustrated in FIG10. For example, Fig.12 The setting 195 can be Fig.10 Part of the namespace optimization setting 192.
[0144] Fig.12 The configuration maps the neuron input namespace 185 to at least one storage media component B 163. Preferably, at least one storage media component B 163 can be used by the controller 151 in parallel with storage media components (e.g., 161) of other namespaces (e.g., 183 and 187) hosting ANN data. For example, storage media component B 163 can be in an integrated circuit package separate from the integrated circuit packages of other namespaces (e.g., 183 and 187). Alternatively, storage media components 161-163 are formed on separate integrated circuit dies embedded in the same integrated circuit package. Alternatively, storage media components 161-163 can be formed on separate areas of the integrated circuit die, where the separate areas can be operated (e.g., read, erased, and / or written) substantially in parallel.
[0145] exist Fig.12 In, setting 195 is optimized with respect to a usage pattern of enhanced endurance in round-robin sequential overwriting when recording a continuous stream of input data sampled at fixed time intervals.
[0146] Fig.13 The diagram illustrates the configuration of the namespace 187 for outputs from an artificial neuron according to one embodiment. For example, Fig.13 The configuration can be implemented in Figure 7 and / or the data storage device 101 illustrated in FIG10. For example, Fig.13 The setting 197 can be Fig.10 Part of the namespace optimization setting 192.
[0147] Fig.13The configuration maps the neuron output namespace 187 to at least one storage media component C 162. Preferably, at least one storage media component C 162 can be used by the controller 151 in parallel with the storage media components (e.g., 161 and 163) of other namespaces (e.g., 183 and 185) hosting ANN data. For example, the storage media component C 162 can be in an integrated circuit package separate from the integrated circuit packages of the other namespaces (e.g., 183 and 185). Alternatively, the storage media components 161-163 are formed on separate integrated circuit dies embedded in the same integrated circuit package. Alternatively, the storage media components 161-163 can be formed on separate areas of the integrated circuit die, where the separate areas can be operated (e.g., read, erased, and / or written) substantially in parallel.
[0148] exist Fig.13 197 is optimized with respect to the usage pattern of buffered data that is periodically overwritten with random access. For example, the memory cells are configured via the optimized settings 193-197 to be updated / overwritten at a higher frequency in the neuron output namespace 187 than in the ANN model namespace 183 but less frequently than in the neuron input namespace 185.
[0149] Fig.14 A method of predictive maintenance supported by a model namespace according to one embodiment is presented. For example, Fig.14 The method can be found in Figure 1 or 2 vehicles 111 use Figure 7 or the data storage device 101 of 10 and / or Figure 8 For example, Fig.14 The method can be used with Figure 6 and / or the method of 9 are used in combination.
[0150] At block 241, the non-volatile memory of the data storage device 101 is configured into a plurality of namespaces (e.g., 183, 185, 187, ...). For example, the non-volatile memory may have the same type of memory cells (e.g., NAND flash memory cells) for storing data; and the same type of memory cells in different namespaces (e.g., 183 to 187) may be configured in different ways to optimize their performance according to the usage patterns of the data stored in the different namespaces (e.g., 183 to 187).
[0151] At box 243, the data storage device 101 stores different memory operation setting sets (e.g., 193, 195, 197) for different types of data related to the artificial neural network 125 for the namespaces (e.g., 183, 185, 187, ...), respectively, wherein the namespaces (e.g., 183, 185, 187, ...) include a model namespace (e.g., 183) configured to store model data of the artificial neural network 125.
[0152] At block 245 , the data storage device 101 receives a sensor data stream (eg, 121 ) from at least one sensor 103 disposed on the vehicle 111 .
[0153] At box 247, the controller 151 of the data storage device 101 operates the memory cells in the namespaces 183, 185, 187, ... according to the memory operation setting set (e.g., 193, 195, 197) in response to the sensor data stream (e.g., 121).
[0154] At box 249 , the computer system 131 with the data storage device 101 uses the artificial neural network 125 to predict maintenance service for the vehicle 111 based on the sensor data stream (eg, 121 ).
[0155] For example, the memory operation setting configures the model namespace (e.g., 183) to store three or more bits per memory cell. The memory operation setting may include an address map 191 for mapping between neurons in the ANN 125 and inputs to the neurons. When a first address of an input to a neuron in the artificial neural network 125 is received, the first address in the input namespace (e.g., 185) separate from the model namespace (e.g., 183) may be converted into at least one second address of model data associated with the neuron, so that the attributes of the neuron and the identification of the neurons connected to the neuron can be retrieved from the model namespace (e.g., 183) without an explicit command from the processor 133. The controller 151 may automatically retrieve the model data associated with the neuron from the model namespace (e.g., 183) in response to receiving the first address. The neural network accelerator 159 may generate the output of the neuron from the input to the neuron and the model data associated with the neuron. In general, the input to the neuron may include outputs from multiple neurons in the ANN 125 connected to the neuron. Controller 151 may store the output of the neuron in buffer 152 in data storage device 101 to facilitate accelerated access to the output by host processor 133 and / or neural network accelerator 159.
[0156] Typically, the model data does not change during calculations used to predict maintenance services. For example, the model data may include neuron connectivity data of an artificial neural network and static properties of neurons in the artificial neural network. The memory operation settings (e.g., 192) may configure the model namespace (e.g., 183) to store more than one bit per memory cell in the non-volatile memory based on a usage pattern of the model data that is primarily read and rarely updated.
[0157] For example, a namespace in a data storage device (e.g., 183, 185, 187, ...) may be implemented as a namespace in which logical addresses are defined; and an address mapping map 191 in the data storage device is configured to map the namespaces 183, 185, 187, ... to separate storage media components (e.g., 161, 163, 162, ...).
[0158] The model data in model namespace 183 may be updated from server 119 during training via machine learning 171 or 175 or during over-the-air updates of ANN 125 .
[0159] In some embodiments, the controller 151 is configured to retrieve model data associated with a neuron in an artificial neural network addressed in a namespace separate from the model namespace 183 via the address map 191 in response to an input to or output from the neuron. In addition, the controller 151 may retrieve model data associated with a neuron from the model namespace 183 in parallel with a neuron storing input to a namespace (e.g., 185) separate from the model namespace 183.
[0160] Fig.15 A method of predictive maintenance supported by an input namespace according to one embodiment is presented. For example, Fig.15 The method can be found in Figure 1 or 2 vehicles 111 use Figure 7 or the data storage device 101 of 10 and / or Figure 8 For example, Fig.15 The method can be used with Figure 6 , 9 and / or the method of 14 are used in combination.
[0161] At block 261, the non-volatile memory of the data storage device 101 is configured into multiple namespaces (e.g., 183, 185, 187, ...). For example, the non-volatile memory may have the same type of memory cells (e.g., NAND flash memory cells) implemented in multiple storage media components (e.g., 161-163).
[0162] At box 263, the data storage device 101 stores different memory operation setting sets (e.g., 193, 195, 197) for different types of data related to the artificial neural network 125 for namespaces (e.g., 183, 185, 187, ...), respectively, wherein the namespaces (e.g., 183, 185, 187, ...) include an input namespace (e.g., 185) configured to store input data of the artificial neural network 125 in a circular manner.
[0163] For example, the input namespace 185 may be configured to store external inputs to the artificial neural network 125 but not internal inputs. The input data stored in the input namespace 185 is independent of the outputs from the neurons in the artificial neural network 125.
[0164] For example, the input data stored in input namespace 185 may include a portion of a sensor data stream (e.g., 121). In some embodiments, the input data stored in input namespace 185 is calculated from the sensor data stream (e.g., 121) for a subset of neurons in artificial neural network 125.
[0165] For example, the memory operation settings (eg, 195) configure the input namespace 185 to store one bit per NAND memory cell in non-volatile memory to achieve enhanced endurance for repeated data erasure and data programming.
[0166] For example, the memory operation settings (eg, 195 ) configure the controller to write input data sequentially into the input namespace 185 and overwrite the oldest input data in the input namespace 185 with the most recent input data received in the data storage device 101 .
[0167] At block 265 , the data storage device 101 receives a sensor data stream (eg, 121 ) from at least one sensor 103 disposed on the vehicle 111 .
[0168] At box 267, the controller 151 of the data storage device 101 operates the memory cells in the namespaces 183, 185, 187, ... according to the memory operation setting set (e.g., 193, 195, 197) in response to the sensor data stream (e.g., 121).
[0169] At box 269 , the computer system 131 with the data storage device 101 uses the artificial neural network 125 to predict maintenance service for the vehicle 111 based on the sensor data stream (eg, 121 ).
[0170] Fig.16A method of predictive maintenance supported by an input namespace according to one embodiment is presented. For example, Fig.16 The method can be found in Figure 1 or 2 vehicles 111 use Figure 7 or the data storage device 101 of 10 and / or Figure 8 For example, Fig.16 The method can be used with Figure 6 , 9 , 14 and / or 15 are used in combination.
[0171] At block 281, non-volatile memory of the data storage device 101 is configured into multiple namespaces (eg, 183, 185, 187, ...) The non-volatile memory may have the same type of memory cells (eg, NAND flash memory cells) for storing data.
[0172] At box 283, the data storage device 101 stores different memory operation setting sets (e.g., 193, 195, 197) for different types of data related to the artificial neural network 125 for the namespaces (e.g., 183, 185, 187, ...), respectively, wherein the namespaces (e.g., 183, 185, 187, ...) include an output namespace (e.g., 187) configured to store output data of the artificial neural network 125.
[0173] For example, output data stored in the output namespace (e.g., 187) may include state data of neurons in the artificial neural network 125. For example, the state data of neurons in the artificial neural network may identify the activation level of a spiking neuron in a spiking neural network. The activation level may be controlled via a differential equation. Thus, the activation level may change in response to inputs to the artificial neural network 125 and / or in response to the passage of time.
[0174] For example, the output data may include predictions or classifications generated by the artificial neural network 125 in response to the sensor data stream.
[0175] For example, the memory operation setting configures the output namespace to store no more than two bits per memory cell in the non-volatile memory.
[0176] At block 285 , the data storage device 101 receives a sensor data stream (eg, 121 ) from at least one sensor 103 disposed on the vehicle 111 .
[0177] At box 287, the controller 151 of the data storage device 101 operates the memory cells in the namespaces 183, 185, 187, ... according to the memory operation setting set (e.g., 193, 195, 197) in response to the sensor data stream (e.g., 121).
[0178] At box 289 , the computer system 131 with the data storage device 101 uses the artificial neural network 125 to predict maintenance service for the vehicle 111 based on the sensor data stream (eg, 121 ).
[0179] For example, the data storage device 101 may include a buffer 152. The buffer 152 may be implemented via a volatile memory (e.g., SRAM or DRAM) to achieve faster access performance than a non-volatile memory (e.g., NAND flash memory) of the data storage device 101. The memory operation setting configures the controller 151 to store the output data in the buffer 152 during or after storing the output data in the output namespace 187 for access by the processor (e.g., 133) via the host interface 157.
[0180] For example, the data storage device 101 may include a neural network accelerator 159 coupled to the controller 151. The neural network accelerator is configured to apply inputs provided to neurons in the artificial neural network 125 to model data of the artificial neural network 125 to generate output data by one or more output neurons in the artificial neural network 125. In response to the neural network accelerator 159 completing the calculation of the output data, the controller is configured to provide an indication of the availability of the output data generated by the artificial neural network 125 to the processor (e.g., 133), so that the processor (e.g., 133) can request the data storage device 101 to transmit the output data.
[0181] Optionally, the controller 151 is configured to provide the output data to the processor in parallel with storing the output data in the output namespace. For example, the controller 151 may be configured to automatically discard the output data calculated for the previous segment of the sensor data stream within a predetermined time period or before the next version of the output data is available if the processor (e.g., 133) does not request that the output data be transmitted to the processor (e.g., 133). Optionally, after reporting the availability of the output data to the processor (e.g., 133), the controller 151 may be configured to selectively discard the output data calculated for the previous segment of the sensor data stream based on the response of the processor (e.g., 133) to the output data destined for the processor (e.g., 133). For example, in some cases, a processor (e.g., 133) may request that output data be transferred to the processor (e.g., 133) without saving the output data to an output namespace (e.g., 187); and in other cases, a processor (e.g., 133) may request that output data be transferred to the processor (e.g., 133) and that the output data be stored in an output namespace (e.g., 187).
[0182] Optionally, output data from the artificial neural network 125 may also be stored in the output namespace in a cyclical manner (eg, for output data segments within a time period selected by the processor (eg, 133)).
[0183] For example, external inputs to the artificial neural network 125 may be continuously recorded in the input namespace 185 during the last time period of T1. When the sensor data is sampled at a predetermined time interval T2, the input namespace 185 may hold the latest T1 / T2 set of input data. In contrast, external outputs from the artificial neural network 125 may be selectively recorded in the output namespace 187 (e.g., once per predetermined time period T3, where T3 is a multiple of T2). Output data may be recorded in the output namespace 187 at a lower frequency; and the output namespace 187 may be allocated to store a predetermined number of output data sets (e.g., via sequential writing and writing in a round-robin manner to hold the last output data set).
[0184] At least some embodiments disclosed herein include a communication protocol / interface that allows a data storage device to dynamically perform neural network acceleration with reduced data traffic to a host processor (e.g., a central processing unit (CPU)).
[0185] For example, a host processor (e.g., 133) of the vehicle 111 may provide a write command to the data storage device 101 to store a model of the artificial neural network in a model namespace (e.g., 183). Since the neural network accelerator 159 is configured to apply the model, data communications to send data of the model of the ANN 125 back to the processor may be reduced or eliminated.
[0186] In order to use the ANN model in classification and / or prediction, the host processor (e.g., 133) of the vehicle 111 can stream the input data of the ANN 125 into the neuron input namespace (e.g., 185). The neural network accelerator 159 of the storage device 101 can automatically apply the input data to the model stored in the ANN model namespace (e.g., 183) according to the address map 191. The data storage device 101 makes the calculated output available for propagation in the ANN 125. Preferably, the calculated output is made available to the neural network accelerator 159 through the buffer 152 without storing the intermediate output in the storage media component (e.g., 161 to 163). Therefore, data communication between the host processor (e.g., 133) and the data storage device 101 for conveying the output of the neuron can be reduced. When the output has been propagated to the output neuron in the ANN 125, the data storage device 101 can provide a response to a write request associated with writing the input data set into the neuron input namespace (e.g., 185). The response indicates that external outputs from neurons in the ANN 125 are available. In response, a host processor (eg, 133) of the vehicle 111 may optionally issue a read command to retrieve the external outputs for further processing.
[0187] Fig.17 1 shows communications using data storage device 101 for performing neural network calculations according to one embodiment. Fig.17 The communication illustrated in the figure can be found in Figure 1 or 2 in vehicle 111 using Figure 7 Or it can be implemented by the data storage device 101 illustrated in FIG. 10 .
[0188] exist Fig.17 In the embodiment of the present invention, the processor 133 may be configured with a simplified set of instructions 301 to perform neural network calculations because some of the calculations involving the ANN 125 are performed by the neural network accelerator 159 within the data storage device 101. Therefore, during prediction and / or classification using the ANN 125, it is not necessary to transmit model data back to the processor 133.
[0189] The sensor 103 may generate a continuous stream of sensor data 121 based on a rate for sampling the data. The sensor data 121 may be sampled at fixed predetermined time intervals (e.g., during operation of the vehicle 111). The processor 133 may execute instructions 301 to convert the sensor data 121 into an input stream 303 for input neurons in the ANN 125. The input neurons in the ANN 125 are configured to accept external inputs to the ANN 125; and the output neurons are configured to provide external outputs from the ANN 125.
[0190] In general, a complete set of inputs to the ANN 125 at a time instance includes inputs to the entire set of input neurons of the ANN 125. The input stream 303 includes a sequence of input sets of a sequence of time instances spaced apart from each other according to fixed predetermined time intervals.
[0191] The data storage device 101 stores the input stream 303 into the neuron input namespace 185 in a cyclic manner, wherein the oldest input set corresponding to the oldest time instance of data sampling of the data set currently stored in the neuron input namespace 185 is erased to store the latest input set in the input stream 303.
[0192] For each input data set, the neural network accelerator 159 applies the model of the ANN 125 stored in the ANN model namespace 183. The neural network accelerator 159 (or the processor 133) can control the propagation of signals within the neural network. When the output neuron of the ANN 125 generates its output in response to the input data set, the data storage device 101 can provide an indication to the processor 133 that the neuron output is ready for retrieval. The indication can be configured in response to a request from the processor 133 to write the input data set into the neuron input namespace 185. The processor 133 can optionally retrieve the output data 305 (e.g., according to conditions and / or criteria programmed in the instructions).
[0193] In some embodiments, trigger parameters are configured in the data storage device 101. The data storage device provides a response to a request from the processor 133 to write the input data set into the neuron input namespace 185 when the output parameters in the external output 317 meet the requirements specified by the trigger parameters.
[0194] Fig.18 The communication within a data storage device for implementing a neural network calculation according to one embodiment is shown. For example, Fig.18 The communication can be found at Figure 7 or the data storage device 101 illustrated in FIG. Fig.17 The communications are implemented in combination.
[0195] exist Fig.18 In the example, the model namespace 183 stores the model 313 of the entire ANN 125. In response to receiving a set of external inputs 315 from a time instance of the input stream 303 in the buffer 152, the data storage device 101 can write the external inputs 315 to the input namespace 185 in parallel with retrieving the neuron model 312, which contains a portion of the ANN model 313 corresponding to the parameters of the input neuron and / or the identity of the neurons connected to the input neuron. The buffer 152 allows the neural network accelerator 159 to combine the neuron model 312 with the external inputs 315 to produce the output 327 of the input neuron.
[0196] In general, neuron output 327 may be included as part of internal output 316 for further propagation within ANN 125 and / or as part of external output 317 for processor 133 .
[0197] The internal output 316 is stored in the buffer 152 as the internal input 316 for further propagation in the ANN 125 in a manner similar to the generation of the neuron output 327 from the external input 315. For example, a portion of the internal input 316 may cause the controller 151 and / or the neural network accelerator 159 to retrieve the corresponding neuron model 312 associated with the internal input, so that the internal input is applied to the corresponding neuron model 312 in the neural network accelerator 159 to generate its neuron output 327.
[0198] When a complete set of external outputs 317 is available in buffer 152 , external outputs 317 may be stored in output namespace 187 .
[0199] Optionally, the storage device 101 does not store every set of external outputs 317 corresponding to the set of stored external inputs 315 sampled at the time instance. For example, the storage device 101 may be configured to store one set of external outputs 317 for every predetermined number of sets of external inputs (e.g., 315). Alternatively or in combination, the processor 133 may determine whether to store the external outputs 317. For example, the storage device 101 may be configured to store the external outputs 317 in response to the processor 133 retrieving the external outputs 317 for further processing. For example, the storage device 101 may be configured to store the external outputs 317 in response to a write command from the processor 133 after the external outputs 317 are processed in the processor 133.
[0200] Fig.19 A method of communicating with a data storage device to perform neural network calculations according to one embodiment is shown. For example, Fig.19 The method can be found in Figure 1 or 2 vehicles 111 use Figure 7 or the data storage device 101 of 10 and / or Figure 8 For example, Fig.19 The method can be used with Figure 6 , 9 , 14, 15 and / or 16 are used in combination.
[0201] At box 341 , the one or more processors 133 of the vehicle 111 stores the model data (eg, 313 ) of the artificial neural network (eg, 125 ) in the data storage device 101 .
[0202] At box 343 , one or more processors 133 of the vehicle 111 receive a set of sensor data from at least one sensor 103 configured on the vehicle 111 .
[0203] At box 345, one or more processors 133 of the vehicle 111 generate a set of inputs to the artificial neural network (e.g., 125) based on the sensor data.
[0204] At box 347, the one or more processors 133 of the vehicle 111 provide the set of inputs to the data storage device 101. In response to the set of inputs, the data storage device 101 is configured to generate a set of outputs using the model data 313 of the artificial neural network (eg, 125).
[0205] At box 349 , the one or more processors 133 of the vehicle 111 retrieve the set of outputs from the data storage device 101 .
[0206] For example, data storage device 101 generates the set of outputs using at least a portion of model data 313 stored in the data storage device without transmitting the portion of model data 313 to one or more processors 133 between receiving the set of inputs and completing calculation of the set of outputs.
[0207] For example, the portion of model data 313 may include static properties of neurons in an artificial neural network (eg, 125) and / or neuron connectivity data of the artificial neural network (eg, 125).
[0208] For example, to provide the set of inputs to the data storage device 101, the one or more processors 133 of the vehicle 111 may transmit one or more write commands to the data storage device 101. The one or more write commands are configured to instruct the data storage device 101 to store the set of inputs in the data storage device 101. After completing the calculation of the set of outputs in the data storage device 101, the controller 151 of the data storage device 101 may transmit a response to the one or more write commands to the one or more processors 133. The response may include an indication that the set of outputs are available for retrieval by the one or more processors 133.
[0209] In response to the indication, one or more processors 133 may optionally retrieve the set of outputs from data storage device 101 by transmitting a read command to data storage device 101 for the set of outputs (eg, after determining to retrieve the set of outputs from data storage device 101 for processing).
[0210] Alternatively or in combination, the one or more processors 133 of the vehicle 111 may determine whether to store the set of outputs in the non-volatile memory of the data storage device. In response to determining to store the set of outputs in the non-volatile memory of the data storage device 101, the one or more processors 133 of the vehicle 111 may transmit a write command to the data storage device 101.
[0211] Because the group outputs are initially generated in the data storage device 101 and then buffered in a buffer 152 (e.g., a volatile memory), the data storage device 101 can execute a write command to store the group outputs in the output namespace 187 without transmitting the group outputs to one or more processors 133 and / or receiving the group outputs from one or more processors 133 in response to a write command.
[0212] For example, after receiving another set of sensor data 121 from at least one sensor 103 configured on the vehicle 111 , the one or more processors 133 of the vehicle 111 generate another set of inputs to the artificial neural network 125 based on the another set of sensor data.
[0213] The one or more processors 133 transmit another command to write the other set of inputs to the data storage device 101; and the data storage device 101 generates another set of outputs using the model data 313 of the artificial neural network 125 and the other set of inputs. After receiving a response to the other command to write the other set of inputs, the one or more processors 133 may determine to skip processing the other set of outputs and transmit a subsequent write command to store the other set of outputs to the data storage device 101. In response, the data storage device 101 may write the other set of outputs buffered within the data storage device 101 to the output namespace 187 without transmitting the other set of outputs from the one or more processors 133 of the vehicle 111 to the data storage device 101 and / or without transmitting the other set of outputs from the data storage device 101 to the one or more processors 133 of the vehicle 111.
[0214] At least some of the neural network techniques discussed above may be used in intelligent reduction of write amplification in data storage devices.
[0215] Some types of memory cells (e.g., NAND flash memory) require an erase operation to set the memory cell to an initialized state before performing a write operation to store data in the memory cell. After several erase / write operation cycles, the memory cell may degrade and become unreliable for storing data. Therefore, the useful life of such a memory cell may be limited by the erase / write cycle budget of the erase / write operations that the memory cell undergoes.
[0216] Furthermore, such memory cells configured on an integrated circuit may have a coarser granularity of erase operations than write operations. Specifically, the minimum number of memory cells erased in one erase operation may be greater than the minimum number of memory cells programmed to store data in one write operation. For example, a block of NAND memory cells is configured to be erased together in one operation; the block may have multiple pages of NAND memory cells; and the pages may be individually programmed to store data via different write operations.
[0217] When a block to be erased has one or more valid data pages, data from the pages may be copied to another block before erasing the block. Copying increases the count of write operations performed on the data and thus causes write amplification.
[0218] Other types of memory cells (eg, DRAM, SRAM, cross-point memory) may have useful lives that are not limited by the count of erase and / or write operations and / or may have very high erase / write cycle budgets.
[0219] Data access activity in a data storage device may have a pattern associated with the use of the data storage device in a computing system. For example, a data storage device configured in an autonomous vehicle may have a data access activity pattern associated with a routine of the vehicle's activities or a similar routine.
[0220] An artificial neural network (ANN) (e.g., a spiking neural network, a convolutional neural network, a recurrent neural network) may be configured to predict data changes and / or movements to optimize data placement and thus reduce write amplification. The prediction may be based on data access patterns indicated by various factors, such as the operating state of the vehicle, the processing state / mileage / workload of the vehicle's advanced driver assistance system (ADAS), the activity of applications with data access requests, the type of access requests (e.g., read / write), the frequency of access requests, the address location of the access requests, the size of the data blocks involved in the access requests, etc. The artificial neural network (ANN) predicts that data that is likely to be erased and / or rewritten together will be grouped to reduce the likelihood that valid data items are copied to facilitate the operation of erasing other data.
[0221] Optionally, data may be selectively buffered or placed in a memory that has virtually no or little write amplification issues before being transferred to memory cells susceptible to write amplification. For example, data that is frequently modified may be placed in a storage media component having DRAM, SRAM, and / or cross-point memory, etc., based on predictions of data access patterns. When data is rarely modified in a data access pattern, the data may be relocated to a storage media component having NAND memory cells.
[0222] An artificial neural network (ANN) can train itself within a data storage device to determine optimized data placement (e.g., based on past media distribution activity). For example, unsupervised machine learning techniques can be used to train an artificial neural network (ANN) to self-organize input data to gain predictive / classification capabilities.
[0223] Alternatively or in combination, supervised machine learning techniques may be used to train an artificial neural network (ANN) to refine or build a predictive model of the optimized caching scheme and its parameters.
[0224] An artificial neural network (ANN) may receive input of prediction parameters of data access patterns and subsequent measurements of write amplification performance. The ANN may self-organize to find optimizations for data placement under various scenarios using unsupervised learning techniques, or be trained to produce optimized data placement predictions using supervised learning techniques.
[0225] For example, during a training cycle, write activity in a logical address space is tracked to generate training data to train an artificial neural network (ANN) to identify logical memory address groups, where the data in the memory address groups are modified together or modified very close in time (e.g., modified within a predetermined time interval) in a data access pattern. The logical memory address groups can then be mapped to physical memory addresses of memory cells in one or more erase blocks. Each erase block has a minimum set of memory cells that need to be erased together. The data storage device can change the placement of different local memory address groups in the erase blocks and track / measure the write amplification performance of the placement. A training data set with different data placements and corresponding write amplification performance levels of the data placement can be used to train an artificial neural network (ANN) to make predictions in order to search for and / or determine the data placement that optimizes the write amplification performance level.
[0226] For example, a data access pattern of a data storage device configured in a vehicle may be associated with operating parameters, such as current operating parameters of the vehicle, current operating parameters of an application actively using the data storage device (e.g., a component or electronic control unit of the vehicle), and / or current operating parameters of the data storage device. The operating parameters may be provided as input to an artificial neural network (ANN) to indicate a data usage pattern.
[0227] When a data placement scheme is implemented in a data storage device, a write amplification performance level may be measured. For example, the write amplification performance level indicator may include a ratio between the average number of writes performed for data in a set of memory addresses and the average number of write commands received for the set of memory addresses.
[0228] Unsupervised machine learning techniques may be used to train an artificial neural network (ANN) using data collected during a training cycle to correlate (e.g., via clustering, classification, etc.) data access patterns, data placement schemes, and write amplification performance levels, which allows determination of a preferred data placement scheme for current data access patterns that may optimize cache performance levels.
[0229] Optionally or in combination, the optimized data placement schemes determined for various data access patterns can be used to train an artificial neural network (ANN) using supervised machine learning techniques to minimize the difference between the data placement schemes predicted by the artificial neural network (ANN) and the optimized caching schemes determined for various data access patterns.
[0230] Therefore, when the data storage device operates in a data access pattern represented by current operating parameters, an artificial neural network (ANN) may be used to determine a data placement scheme to optimize write amplification performance in the data storage device.
[0231] Optionally, when an artificial neural network (ANN) classifies a current data access pattern as a new pattern, the data storage device may attempt to change a data placement scheme to generate training data for the new pattern in order to determine an optimized data placement scheme for the new pattern.
[0232] Fig. 20 A data storage device configured to reduce write amplification according to one embodiment is shown. For example, Fig. 20 The data storage device can be used Figure 1 or the vehicle 111 illustrated in FIG. Figure 7 Or the data storage device 101 of 10 is implemented by technology.
[0233] exist Fig. 20 In the embodiment, the data storage device 101 includes an address mapping map 191 which specifies a mapping between logical memory addresses in the input stream 303 for identifying storage locations and physical memory addresses of memory cells in the storage media components 161 to 163 in which data at the logical memory addresses are physically stored.
[0234] Logical memory addresses may be defined in a namespace (e.g., 183, 185, ..., 187) defined in storage capacity provided by storage media components 161-163 of data storage device 101. At least some of storage media components 161-163 have memory cells that have write amplification concerns, such as flash memory cells.
[0235] Optionally, some memory cells in at least some of the storage media components 161-163 do not have concerns about write amplification, such as memory cells composed of cross-point memory, DRAM, etc. When mapping logical addresses to such memory cells, the write amplification performance level may be evaluated to indicate no write amplification.
[0236] In general, storage media components 161-163 may have different types of memory cells with different erase / program budget levels. Write amplification performance levels evaluated for different types of memory cells may be normalized / scaled with respect to their erase / program budget levels to facilitate write amplification performance comparison for placement optimization.
[0237] The write activity 351 at the logical address can be used to train the neural network accelerator 159 to recognize logical memory address groups. Each logical memory address group corresponds to data of objects that will be modified together (e.g., within a predetermined time interval). The controller 151 can configure the address map 191 to map the logical addresses to the memory cells in the storage media components 161-163 according to the groups.
[0238] In general, logical memory addresses may be used by different data objects and therefore grouped differently for different data access modes.The data access mode may be identified from the operating parameters 353 generated by the controller 151 and / or received in the input stream 313 .
[0239] Examples of operating parameters 353 may include operating parameters of a vehicle 111 in which the data storage device 101 is installed. For example, the operating parameters of the vehicle 111 may include the speed of the vehicle 111, the location of the vehicle 111, the road on which the vehicle 111 is traveling, inputs from some of the sensors 103 of the vehicle 111, the state of vehicle controls (e.g., 141, 143, 145), the state of components of the vehicle 111 (e.g., the infotainment system 149 and / or the communication device 139 of the vehicle 111). The operating parameters of the vehicle 111 may include the state and operation of the advanced driver assistance system (ADAS) 105 and / or other applications / components running in the vehicle 111.
[0240] Examples of operating parameters 353 may include operating parameters of data storage device 101, such as the status and operation of neural network accelerator 159, commands queued for execution in data storage device 101, the status of background operations to be executed and / or being executed in data storage device 101, etc.
[0241] The operating parameters 353 and the write activities 351 corresponding to the operating parameters 353 may be used by the neural network accelerator 159 to train the artificial neural network 125 stored in the data storage device 101 (e.g., as model data 313 in the model namespace 183). The training allows the artificial neural network 125 to identify logical memory address clusters that are identifiable as data objects for improved placement implemented via the address map 191.
[0242] During the training cycle, the controller 151 may generate training data by trying different data placement schemes 355 for data objects identified by the artificial neural network 125 for the data access pattern. The controller 151 measures the write amplification performance of the data placement schemes 355. The training data may include write activity 351 in logical memory addresses, operating parameters 353 indicative of the data access pattern, different data placement schemes 355 implemented in the address map 191 to place data objects in memory cells in the storage media components 161-163, and write amplification performance indicators 357 for the corresponding data placement schemes 355.
[0243] The neural network accelerator 159 may use the training data to train the artificial neural network 125 to recognize data access patterns and / or predict write amplification performance indicators 357 for various data placement schemes 355 .
[0244] Based on the predictions made by the neural network accelerator 159, the neural network accelerator 159 and / or the controller 151 may determine an optimized set of data placement schemes 355 to control the address mapping map 191.
[0245] Optionally or alternatively, when the data storage device 101 is operating in the data access mode identified by the artificial neural network 125 based on the operating parameters 353 , the controller 151 may change the data placement scheme 355 to search for a data placement scheme 355 that optimizes the write amplification performance indicator 357 .
[0246] The optimized set of data placement schemes 355 may be determined via a search performed by controller 151 by changing data placement schemes 355 and / or via a prediction of write amplification performance indicator 357 predicted by neural network accelerator 159 based on a selected data placement scheme 355. Data of the optimized set of data placement schemes 355 may be used to further train neural network accelerator 159 to predict optimized data placement schemes 355 for corresponding data access patterns.
[0247] Fig.21 A method for write amplification reduction in a data storage device of an autonomous vehicle according to one embodiment is presented. For example, Fig.21 The method can be found in Figure 1 or 2 vehicles 111 use Figure 7 , 10 , the data storage device 101 of 20 and / or Figure 8 For example, Fig.21 The method can be combined with Figure 6 , 9 , 14, 15, 16 and / or 19.
[0248] At block 361 , the data storage device 101 stores and retrieves data to and from one or more storage media components of the data storage device 101 according to commands in the input stream 303 received in the data storage device 101 .
[0249] At box 363, the address map 191 configured in the data storage device 101 maps (e.g., facilitates conversion) between logical addresses specified in commands received in the data storage device and physical addresses of memory cells in one or more storage media components 161-163.
[0250] At box 365 , the controller 151 of the data storage device 101 provides the operating parameters 353 indicative of data access patterns in the data storage device 101 as a function of time as input to the artificial neural network 125 .
[0251] For example, data storage device 101 may be configured in vehicle 111 to support operation of advanced driver assistance system (ADAS) 105 and / or infotainment system 149. Operation parameters 353 may include operation parameters of vehicle 111.
[0252] For example, operating parameters 353 of vehicle 111 may include the speed of vehicle 111, the position of vehicle 111, input from sensors 103 configured on the vehicle, the status of vehicle controls (e.g., 141, 143, or 145), the status of vehicle 111's infotainment system 149, or the status of vehicle 111's advanced driver assistance system (ADAS) 105, or any combination thereof.
[0253] The operating parameters 353 provided as input to the artificial neural network 125 may include operating parameters of the data processing system 101, such as the operating state of the neural network accelerator 159, the status of pending commands to be executed by the controller 151, or the status of ongoing operations in the storage media components 161-163, or any combination thereof.
[0254] For example, the artificial neural network 125 may include a spiking neural network trained in the data storage device 101 using a training data set generated in the data storage device.
[0255] At block 367 , the artificial neural network 125 generates predictions based on the inputs to determine an optimized data placement plan 355 .
[0256] For example, the artificial neural network 125 may be configured to receive write activity 351 in commands in the input stream 303 and identify logical address groups with temporally related write operations. The optimized data placement scheme may identify placement of multiple selected logical address groups in an erase block. Memory cells in an erase block need to be erased together.
[0257] For example, the prediction may include identification of a data access pattern, a write amplification performance indicator of a data placement scheme for the data access pattern identified via the operating parameters, or an optimized data placement scheme, or any combination thereof.
[0258] For example, the data storage device 101 may include a neural network accelerator 159 configured to generate the prediction using model data 313 of the artificial neural network 125 stored in the data storage device 101 .
[0259] Optionally, the neural network accelerator 159 is further configured to train the artificial neural network 125 in a training cycle using training data generated in the data storage device 101. For example, the training data may include write activities 351 identified in the input stream 303 during the training cycle, operating parameters 353 identified in the training cycle, a data placement scheme 355 used in the training cycle, and a write amplification performance indicator 357 measured for the data placement scheme 355 during the training cycle.
[0260] Optionally, the neural network accelerator 159 is further configured to use training data generated for the data access pattern to train the artificial neural network 125. For example, the training data may include operating parameters 353 classified by the artificial neural network 125 as having the data access pattern in a time period; and the training data may further include an optimized data placement scheme 355 determined for the data access pattern identified from the operating parameters 353 in the time period.
[0261] Optionally, the neural network accelerator 159 is configured to determine an optimized data placement scheme 355 for the training data based on a search facilitated by predictions of write amplification performance indicators 357 generated by the artificial neural network 125 for different data placement schemes 355 .
[0262] Optionally or in combination, controller 151 is configured to determine an optimized data placement scheme 355 for training data based on a search facilitated by measuring performance levels 357 of different data placement schemes 355 applied to address map 191 .
[0263] At block 369 , the controller 151 of the data storage device 101 adjusts the address map 191 according to the optimized data placement scheme 355 determined based on the predictions generated 367 by the artificial neural network 125 .
[0264] Server 119 , computer system 131 , and / or data storage device 101 may each be implemented as one or more data processing systems.
[0265] The present invention includes methods and apparatus for performing the methods described above, including a data processing system for performing these methods and a computer-readable medium containing instructions that, when executed on a data processing system, cause the system to perform these methods.
[0266] A typical data processing system may include an interconnect (eg, a bus and system core logic) that includes interconnecting a microprocessor and memory. The microprocessor is typically coupled to a cache memory.
[0267] The interconnect interconnects the microprocessor and memory together and also interconnects it to input / output (I / O) devices via I / O controllers. The I / O devices may include a display device and / or peripheral devices such as a mouse, keyboard, modem, network interface, printer, scanner, video camera, and other devices known in the art. In one embodiment, when the data processing system is a server system, some of the I / O devices, such as a printer, scanner, mouse, and / or keyboard, are optional.
[0268] The interconnect may include one or more buses connected to each other via various bridges, controllers and / or adapters. In one embodiment, the I / O controller includes a USB adapter for controlling USB (Universal Serial Bus) peripheral devices and / or an IEEE-1394 bus adapter for controlling IEEE-1394 peripheral devices.
[0269] The memory may include one or more of: ROM (read only memory), volatile RAM (random access memory), and non-volatile memory such as a hard drive, flash memory, and the like.
[0270] Volatile RAM is typically implemented as dynamic RAM (DRAM) that constantly requires power to refresh or maintain the data in the memory. Nonvolatile memory is typically a magnetic hard drive, magneto-optical drive, optical drive (e.g., DVD RAM), or other types of memory systems that maintain data even after power is removed from the system. Nonvolatile memory can also be random access memory.
[0271] The non-volatile memory may be a local device directly coupled to the rest of the components in the data processing system. Non-volatile memory that is remote from the system may also be used, such as a network storage device coupled to the data processing system via a network interface (such as a modem or Ethernet interface).
[0272] In the present invention, some functions and operations are described as being executed or caused by software codes to simplify the description. However, such expressions are also used to specify functions caused by a processor (eg, a microprocessor) executing code / instructions.
[0273] Alternatively or in combination, the functions and operations described herein may be implemented using dedicated circuitry with or without software instructions (e.g., using an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA)). Embodiments may be implemented using hardwired circuitry without software instructions or in combination with software instructions. Thus, the techniques are not limited to any specific combination of hardware circuitry and software, nor to any particular source for the instructions executed by a data processing system.
[0274] While one embodiment may be implemented on fully functional computers and computer systems, various embodiments are capable of being distributed as computing products in various forms and can be used regardless of the specific type of machine or computer readable media used to actually achieve the distribution.
[0275] At least some of the disclosed aspects may be embodied at least in part in software. That is, the techniques may be performed in a computer system or other data processing system in response to its processor (e.g., a microprocessor) executing sequences of instructions contained in a memory (e.g., ROM, volatile RAM, nonvolatile memory, cache memory, or remote storage device).
[0276] The routines executed to implement the embodiments may be implemented as part of an operating system or a specific application, component, program, object, module, or sequence of instructions referred to as a “computer program.” A computer program typically includes one or more instructions that are set in various memories and storage devices in the computer at various times and that, when read and executed by one or more processors in the computer, cause the computer to perform the operations necessary to perform the elements involved in the various aspects.
[0277] Machine-readable media can be used to store software and data that, when executed by a data processing system, causes the system to perform various methods. Executable software and data can be stored in various places, including, for example, ROM, volatile RAM, non-volatile memory, and / or cache memory. Portions of this software and / or data can be stored in any of these storage devices. In addition, data and instructions can be obtained from a centralized server or a peer-to-peer network. Different portions of data and instructions can be obtained from different centralized servers and / or peer-to-peer networks at different times and in different communication sessions or in the same communication session. Data and instructions can be obtained as a whole before executing an application. Alternatively, portions of data and instructions can be obtained dynamically (just in time) when needed for execution. Therefore, it is not necessary for data and instructions to be on a machine-readable medium as a whole at a specific time instance.
[0278] Examples of computer-readable media include, but are not limited to, non-transitory recordable and non-recordable media such as volatile and non-volatile memory devices, read-only memory (ROM), random access memory (RAM), flash memory devices, floppy disks and other removable disks, magnetic disk storage media, optical storage media (e.g., compact disk read-only memory (CD ROM), digital versatile disk (DVD), etc.), and others. Computer-readable media may store instructions.
[0279] The instructions may also be embodied by digital and analog communication links using electrical, optical, acoustic or other forms of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.). However, propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.) are not tangible machine-readable media and are not configured to store instructions.
[0280] Generally speaking, a machine-readable medium includes any mechanism that provides (ie, stores and / or transmits) information in a form accessible by a machine (eg, a computer, a network device, a personal digital assistant, a manufacturing tool, any device with a set of one or more processors, etc.).
[0281] In various embodiments, hardwired circuitry may be used in combination with software instructions to implement the techniques.Thus, the techniques are neither limited to any specific combination of hardware circuitry and software nor to any specific source for the instructions executed by the data processing system.
[0282] The above description and drawings are illustrative and should not be considered restrictive. Numerous specific details are described to provide a thorough understanding. However, in some instances, well-known or conventional details are not described in order to avoid obscuring the description. References to one or more embodiments in the present invention do not necessarily refer to the same embodiment; and such references mean at least one.
[0283] In the foregoing specification, the invention has been described with reference to specific exemplary embodiments thereof. It will be apparent that various modifications may be made to the invention without departing from the broader spirit and scope as set forth in the appended claims. Accordingly, the specification and drawings should be regarded as having an illustrative rather than a restrictive sense.
Claims
1. A data storage device, comprising: one or more storage media components; a controller configured to store data to and retrieve data from the one or more storage media components according to a first command received in the data storage device; An address map configured to map between the following two addresses: The logical address specified in the first command received in the data storage device is a physical address of a memory location in the one or more storage media components; an artificial neural network configured to receive as input an operating parameter indicative of a data access pattern as a function of time, and to generate a prediction based on the input to determine an optimized data placement scheme; and a neural network accelerator configured to generate the prediction using model data of the artificial neural network stored in the data storage device; Wherein the controller is configured to adjust the address map according to the optimized data placement scheme.
2. The data storage device of claim 1, wherein the artificial neural network comprises a spiking neural network.
3. The data storage device of claim 2, wherein the data storage device is configured in a vehicle; and the operating parameters include operating parameters of the vehicle.
4. A data storage device according to claim 3, wherein the operating parameters of the vehicle include: the speed of the vehicle, the position of the vehicle, input from sensors configured on the vehicle, the state of vehicle controls, the state of the vehicle's infotainment system or the state of the vehicle's advanced driver assistance system, or any combination thereof.
5. The data storage device of claim 2, wherein the artificial neural network is configured to receive write activity in the first command and identify logical address groups having write operations that are temporally related.
6. The data storage device of claim 5, wherein the optimized data placement scheme identifies placement of a plurality of logical address groups in erase blocks.
7. The data storage device of claim 2, wherein the prediction comprises a write amplification performance indicator of a data placement scheme.
8. The data storage device of claim 2, wherein the prediction includes the optimized data placement scheme.
9. The data storage device of claim 1 , wherein the neural network accelerator is further configured to train the artificial neural network using training data generated in a training cycle; and wherein the training data includes: write activity in a second command received in the training cycle, the operating parameters in the training cycle, a data placement scheme implemented in the address map in the training cycle, and a write amplification performance indicator measured for the data placement scheme during the training cycle.
10. The data storage device of claim 1, wherein the neural network accelerator is further configured to train the artificial neural network using training data; and wherein the training data comprises: the operating parameters in a time period, and an optimized data placement scheme determined for a data access pattern identified from the operating parameters in the time period.
11. The data storage device of claim 10, wherein the neural network accelerator is configured to determine the optimized data placement scheme based on predictions of write amplification performance indicators for different data placement schemes.
12. The data storage device of claim 10, wherein the controller is configured to determine the optimized data placement scheme based on measuring performance levels of different data placement schemes applied to the address map.
13. A method for data processing, comprising: storing data in and retrieving data from one or more storage media components of a data storage device in accordance with commands received in the data storage device; An address map configured in the data storage device is used to map between the following two addresses: The logical address specified in the command received in the data storage device is a physical address of a memory location in the one or more storage media components; providing as input to an artificial neural network an operating parameter indicative of a data access pattern in the data storage device as a function of time; using the artificial neural network to generate predictions based on the inputs to determine an optimized data placement plan, wherein the predictions are generated by a neural network accelerator using model data of the artificial neural network stored in the data storage device; and The address map is adjusted by a controller of the data storage device according to the optimized data placement scheme.
14. The method of claim 13, wherein the artificial neural network comprises a spiking neural network; and the method further comprises: In the data storage device, the artificial neural network is trained using a training data set generated in the data storage device.
15. The method of claim 14, wherein the training data set comprises: write activity identified in commands received in a training cycle, the operating parameters collected in the training cycle, a data placement scheme used in the training cycle, and a write amplification performance indicator measured for the data placement scheme during the training cycle.
16. The method of claim 14, wherein the training data set comprises: identification of data access patterns associated with the operating parameters collected over a period of time, and an optimized data placement scheme determined for the data access patterns.
17. The method according to claim 16, further comprising: The optimized data placement scheme is searched for by changing a data placement scheme provided as input to the artificial neural network to predict a performance level indicator or by changing a data placement scheme for the data access pattern to measure a corresponding performance level indicator.
18. A vehicle comprising: a computer system configured to generate time-varying operating parameters of the vehicle; and a data storage device configured to identify an operating parameter of the data storage device, wherein the operating parameter of the vehicle and the operating parameter of the data storage device indicate a data access pattern in the data storage device; The data storage device includes an address map configured to map between the following two addresses: A logical address specified in a command received from the computer system, and a physical address of a memory cell in the data storage device; and wherein the data storage device is configured to generate a prediction to determine an optimized data placement scheme based on the operating parameters of the vehicle and the operating parameters of the data storage device as inputs to an artificial neural network, wherein the prediction is generated by a neural network accelerator using model data of the artificial neural network stored in the data storage device; and Wherein the data storage device is configured to apply the optimized data placement scheme to the address map.
19. The vehicle of claim 18, wherein the artificial neural network comprises a spiking neural network; and the data storage device is further configured to generate training data and train the spiking neural network to generate the prediction.
