Next Article in Journal
Hierarchical TSK Fuzzy Classification Through Positive Intervention for Teaching Evaluation
Previous Article in Journal
A Butterfly Optimization Algorithm Enhanced by Dance-Based Healing Strategies for Global Optimization and Real-World Engineering Applications
Previous Article in Special Issue
Causal Learning for Continuous Variables with an Improved Bayesian Network Constructed by Symmetric Kernel Function Acceleration
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Hybrid Machine Learning Method for Secure Assessment of NAND Flash Health and SSD Data Recovery Feasibility

by
Leila Rzayeva
1,*,
Aliya Zhetpisbayeva
1,*,
Murat Zhakenov
1,2 and
Altynbay Abdykassym
2
1
Research and Innovation Center “CyberTech”, Astana IT University, Astana 010000, Kazakhstan
2
“Digital Heritage of Eurasia” LLP, Astana 010000, Kazakhstan
*
Authors to whom correspondence should be addressed.
Symmetry 2026, 18(7), 1136; https://doi.org/10.3390/sym18071136
Submission received: 27 April 2026 / Revised: 14 June 2026 / Accepted: 22 June 2026 / Published: 2 July 2026
(This article belongs to the Special Issue Application of Symmetry/Asymmetry and Machine Learning)

Abstract

NAND flash-based solid state drives (SSDs) are increasingly common in computers, but they present a problem for forensic data recovery. SSDs use controller logic, flash translation layers, error correction, wear leveling, TRIM, garbage collection, and encryption to influence the recoverability of data after being written or erased, which is not the case for hard disk drives (HDDs). In this paper, we propose a machine learning-based method to determine the health of NAND SSDs and their data recoverability. The approach involves telemetry (SMART and NVMe) analysis, subsystems’ interpretation of NAND and controller health, and anomaly detection with the Isolation Forest machine learning algorithm. The task is formulated as a single-class learning problem that takes into account asymmetry, where telemetry from a healthy SSD represents the reference state and NAND degradation, controller instability, TRIM effects, and encryption-related limitations act as asymmetric deviations from this state. The presented method uses telemetry data, such as the temperature, wear level, spare blocks, media and data integrity errors, error logs, unsafe shutdowns, and uptime. This study shows that the potential for data recovery depends on the health of the NAND flash memory and controller, TRIM, encryption, and other anomalies but not necessarily any single SMART metric. The proposed approach provides explainable, data recovery-focused assessment and categorizes the SSD cases as recoverable, partially recoverable, and non-recoverable. The model was trained using a healthy SSD dataset consisting of 56,482 SATA SSD records and 82,665 NVMe SSD records, for a total of 139,147 healthy drive samples. Additionally, 20,000 synthetic training samples were generated for each SSD type to support controlled model training. The proposed platform was evaluated using 30 SSD recovery scenarios, including recovery, partial recovery, and no recovery cases. The results demonstrate that the proposed method can distinguish between healthy, warning, and abnormal SSD states and provide recovery recommendations based on NAND health, controller stability, TRIM status, and encryption limitations.

1. Introduction

Solid state drives (SSDs) play an important role in many computer systems, including laptops, enterprise systems, and high-capacity data centers. This is because of their speed, power efficiency, and reliability, but the increased adoption of SSDs has encouraged several studies on data recovery in computer forensics. Solid state drives (SSDs) are different from hard disk drives (HDDs). This characteristic improves storage performance and reliability but has an impact on SSD analysis in forensic science. As a result, methods developed for HDD analysis cannot be directly transferred to SSDs [1].
The problem with forensic investigations of SSDs is that the availability of data is dependent on several factors, including the physical state of the NAND flash memory and controller operations. NAND memory cells can be affected by several factors, such as wear-out from program and erase operations, charge leakage, bad block accumulation, increases in the raw bit error rate, and degradation due to temperatures. Stability of the controller, remapping and ECC schemes, and internal address translations can also decrease data availability. Even if the NAND memory is physically healthy, logical blocks may be invalid due to deletion, and data may be encrypted and inaccessible without keys.
Lastly, recent research has demonstrated that SSD degradation and failure can be captured using SMART and NVMe metrics such as wear indicators, error counts, bad block counts, and media integrity. Machine learning techniques like anomaly and single-class learning and supervised classification have been shown to be effective for SSD health monitoring and failure prediction [2]. In particular, the approaches don’t typically bring together the NAND degradation parameters with controller stability, TRIM operations, and encryption constraints into a unified model that can be used for recovery. In terms of symmetry and asymmetry, SSD health assessment is inherently an asymmetric diagnostic problem [3].
To overcome this problem, this research presents a hybrid approach with a machine learning algorithm for securely evaluating NAND flash health and data recovery from SSDs. The proposed approach examines SMART and NVMe parameters that reflect wear out, media and data integrity errors, uncorrectable errors, spare block status, programming and erasure failure, temperature, and controller warning status. In particular, an Isolation Forest algorithm is employed to detect anomalous health conditions in an SSD based on multivariate diagnostic data, while a decision layer maps the observed conditions into three NAND states that are relevant to data recovery: NAND Alive, NAND Degrading, and NAND Critical or Dead. This is then further evaluated with controller stability, TRIM status, and encryption restrictions to determine the potential for recovering data from the SSD [4,5].
The key contribution of this study is the development of a data recovery-focused diagnostic system that goes beyond traditional SSD failure prediction and provides intelligent support for forensic analysis. Instead of predicting only the device failure probability, the proposed system estimates the probability of continued data availability and determines a recovery method that may be appropriate under the observed technical conditions. This study also contributes to the asymmetric interpretation of SSD telemetry; the behavior of a healthy drive is modeled as a reference pattern, while deviations caused by NAND wear, controller instability, TRIM activity, encryption limitations, or abnormal error accumulation are interpreted as asymmetric indicators of reduced recoverability. Thus, this study provides a practical link between SSD telemetry analysis, single-class anomaly detection, secure data processing, and data recovery assessment for NAND-based forensic investigations.
Unlike traditional SSD monitoring tools, which primarily report device health or failure risk, the proposed framework focuses on data recovery through forensic analysis. It combines NAND flash health, controller stability, TRIM activity, and the encryption status to classify SSD recovery cases as recoverable, partially recoverable, or unrecoverable.
The rest of this paper is structured as follows. Section 2 reviews related work on SSD data recovery, SSD failure prediction, NAND health indicators, TRIM effects, and machine learning-based SSD diagnostics. Section 3 describes the proposed hybrid method, which includes data collection, NAND health assessment, Isolation Forest-based anomaly detection, mathematical formulation, and recovery feasibility assessment. Section 4 presents the experimental results and discusses the effectiveness of the proposed approach in various SSD recovery scenarios. Section 5 concludes the paper and outlines future research directions.

2. Related Work

2.1. Forensic Challenges of SSD Data Recovery

Solid state drives (SSDs) and hard disk drives (HDDs) differ in their architecture and also in their failure mechanisms. HDD failures are primarily due to mechanical degradation. However, SSD failures are related to NAND memory wear, error accumulation, and controller behavior. Therefore, approaches and methods for determining HDD integrity cannot be applied equally to SSDs [6]. SSDs use NAND flash memory, which is subject to a limited number of program-erase cycles, charge leakage, and progressive wear of memory cells. These processes lead to gradual degradation of stored data and an increase in the error rate during device operation. In addition to NAND wear, SSD reliability is significantly affected by controller behavior and internal control mechanisms. The accumulation of bad blocks, the growth of internal errors, and controller instability can significantly impact data availability and complicate recovery procedures. Several studies report that SSD failures are often associated with a complex interaction between memory degradation and controller-level faults, which differ significantly from the mechanical failure mechanisms observed in HDDs [7]. As device degradation progresses, the likelihood of successful data recovery decreases due to an increase in memory errors and controller instability and the potential loss of logical address mapping. Based on the results obtained from recent reliability and forensics studies, Figure 1 presents a conceptual model illustrating the relationship between SSD degradation and the probability of data recovery [8].
As shown in Figure 1, the likelihood of successful data recovery from SSDs decreases significantly as NAND degradation and controller instability increase. Early stages of degradation are typically associated with memory cell wear and the accumulation of bad blocks, while later stages include controller failures and severe NAND damage, which can lead to irreversible data loss [9]. Previous research suggests that SSD degradation is driven by limited write endurance, charge leakage, and the accumulation of internal errors, which together contribute to a progressive reduction in reliability and, ultimately, device failure [10]. Furthermore, the presence of complex internal control mechanisms, including flash translation layers and controller-based error handling, makes data recovery from degraded SSDs significantly more challenging than from traditional hard drives [11]. These results confirm that SSD degradation should be considered a critical factor affecting the probability of data recovery and highlight the importance of collecting data in the early stages before severe NAND wear and controller failure occur. Recent studies on the TRIM function have shown that data recovery on SSDs is significantly dependent on internal data movement, block invalidation, garbage collection, and the controller’s behavior after file deletion [12].
Existing studies analyzed SSD failures, SMART parameters, and the TRIM function, but little research has focused on forensic analysis of NAND flash memory health before attempting data recovery. Current approaches and tools focus on predicting SSD failures but neglect recovery capabilities [13]. Therefore, a diagnostic model that determines NAND flash memory health and correlates it with recovery probability is an important research challenge.

2.2. SSD Failure Prediction and Recovery Gap

As solid state drives (SSDs) have become a popular storage medium, particularly in modern computing environments, research into SSDs has grown proportionally. SSD diagnostics are influenced by the internal architecture and the underlying mechanisms. These factors collectively impact performance and reliability [14].
Previous studies have shown that SSD degradation and failure can be analyzed using internal telemetry derived from SMART and NVMe logs. Key metrics include the wear level, bad block count, media and data integrity errors, uncorrectable error rate, spare block availability, program and erase failures, temperature, and controller warning conditions. Because these parameters reflect internal degradation processes, they provide a suitable basis for computational modeling of SSD health [15]. Previous studies have also employed threshold-based approaches, statistical reliability analysis, feature selection methods, anomaly detection, one-class learning, and supervised classification. Threshold-based methods are simple and interpretable but are often too stringent for heterogeneous SSD models and may fail to capture patterns of gradual degradation [16].
Recent studies have further demonstrated that machine learning can be effectively applied to SSD monitoring for failure prediction. For example, Chakraborty and Litz proposed one-class Isolation Forest and autoencoder models for SSD failure prediction using telemetry collected from over 30,000 SSDs in Google data centers. Their study showed that SSD failure prediction is highly dependent on class imbalance, feature selection, and the difficulty of detecting previously unseen failure modes. It also confirmed that indicators such as bad block counts, program-erase cycle information, and read errors are useful for distinguishing between healthy and failed SSD states.
Despite these advances, existing SSD analysis methods still primarily focus on reliability monitoring, anomaly detection, and failure prediction. Their applicability to forensic data recovery assessments is limited. In most cases, these approaches are designed to detect anomalous drive behavior or predict failure events, rather than determine whether NAND flash memory remains accessible for successful data recovery [17]. As shown in Table 1, existing methods only consider individual aspects of SSD degradation and do not integrate NAND health, controller stability, TRIM activity, or encryption limitations into a unified assessment framework focused on data recovery.
Previous studies on SSD health assessment typically define health using SMART alert thresholds, manufacturer-specific health indicators, anomaly scores, failure probabilities, or binary “healthy or failed” labels. However, these health values are primarily intended for reliability monitoring and failure prediction. Direct numerical comparison with the health values in this study is limited, as the proposed framework uses a normalized health assessment derived from machine learning, along with NAND health, controller health, TRIM status, and encryption limitations. Therefore, the health value in this study is interpreted not only as a technical health indicator but also as part of a recovery-oriented forensic analysis.
In practical forensic scenarios, data recovery from SSDs depends on a combination of NAND flash memory health, controller stability, logical mapping availability, TRIM functionality, and encryption mechanisms. These factors were rarely considered together in previous SSD research. Therefore, a clear research gap remains between SSD failure prediction and data recovery-focused forensic assessment. Although existing methods can be applied to SSD failure detection, they do not provide a unified system for determining whether data recovery is possible given the combined effects of NAND degradation, controller behavior, TRIM, and encryption [18]. To address this issue, this study proposes a hybrid machine learning framework that combines monitoring-based anomaly detection with recovery-focused forensic interpretation to assess NAND flash memory health and the feasibility of data recovery from SSDs.
Although several new non-volatile memory technologies, such as RRAM, MRAM, PCM, and other memory types, are actively being researched, NAND flash memory remains the dominant data storage technology in commercial SSDs and modern storage systems [6]. Therefore, this study focuses on NAND flash-based SSDs, where data recovery is significantly dependent on NAND wear, erase operations, controller behavior, TRIM, garbage collection, and encryption mechanisms.

2.3. NAND Health Indicators

NAND flash memory degradation is caused by multiple interacting factors, including wear from program-erase cycles, error accumulation, spare block depletion, and thermal instability. These factors directly impact SSD reliability and, consequently, the likelihood of successful data recovery. Previous studies have shown that SMART and NVMe telemetry provide useful low-level indicators for monitoring SSD health, including wear level, media and data integrity errors, uncorrectable errors, spare block availability, and controller warning conditions.
Because individual indicators describe only specific aspects of SSD health, previous studies have emphasized the importance of multivariate telemetry analysis rather than isolated interpretation based on thresholds. In this context, machine learning-based anomaly detection has attracted particular interest. Machine learning algorithms such as Isolation Forest are well suited for SSD monitoring, as healthy drives are abundant, and serious failures are relatively rare [19]. This makes anomaly detection a promising approach to identifying abnormal SSD states and supporting more adaptive state estimation under heterogeneity.
The metrics presented in Table 2 form the basis for evaluating NAND flash memory performance. By analyzing these parameters together, one can determine the performance and suitability of NAND flash memory for data recovery [20]. The table shows that existing SSD analysis methods only consider individual aspects of degradation, anomaly detection, or failure prediction. While these approaches provide valuable diagnostic information, they do not integrate the NAND state, controller behavior, TRIM activity, or encryption limitations into a unified assessment system focused on data recovery [21]. Therefore, a dedicated approach is needed to evaluate SSD health specifically for data recovery potential for forensic purposes.

3. Method

3.1. Data Collection and Model Training

To train the anomaly detection module, real-world Self-Monitoring, Analysis, and Reporting Technology (SMART) data was collected from an open-source repository hosted on GitHub [22]. This repository contains smartctl output files contributed by Linux users worldwide and covers a wide range of SSD manufacturers and models. The dataset includes data collected from SSDs from over 300 manufacturers, including major vendors such as Samsung, SanDisk, Kingston, Crucial, Western Digital, Intel, Micron, SK Hynix, Toshiba, KIOXIA, Seagate, Corsair, ADATA, Transcend, and Lenovo, as well as numerous regional and OEM brands. This broad coverage increases the specificity of the collected data and supports model generalization to a diverse set of consumer and enterprise SATA SSDs. The collected data was used to create a reference dataset of healthy drives for SATA and NVMe SSDs. The files were filtered by two criteria. First, each drive had to report a SMART health self-assessment result of PASS. Second, the critical error-related attributes, including reallocated sectors, pending sectors, uncorrectable errors, program failure count, and erase failure count, had to be zero. After filtering, the final dataset consisted of 56,482 healthy SATA SSD records and 82,665 healthy NVMe SSD records, for a total of 139,147 healthy drive samples.
The dataset in this study was compiled to support the detection of a single class of anomalies, with healthy SSD telemetry (SSD healthy state reporting) serving as the reference (normal behavior) in this study, as summarized in Table 3. Separate records were selected for the SATA and NVMe drives because they contained different diagnostic attributes and state reporting mechanisms.
The size and diversity of the benchmark dataset demonstrate the generalizability of the proposed framework. The dataset included telemetry data from SSDs, both SATA and NVMe, from over 300 manufacturers. Furthermore, different Isolation Forest models were trained for the SATA and NVMe SSDs, accounting for differences in diagnostic attributes and status reporting. The resulting design minimizes dependency on a specific SSD manufacturer, device family, and interface, making the proposed method more applicable to heterogeneous SSD systems.
In this paper, the module was based on the Isolation Forest anomaly detection algorithm. This algorithm was chosen due the number of labeled failed drive samples being limited and SSD telemetry being inherently unbalanced. This study utilized the Isolation Forest machine learning algorithm for unsupervised anomaly detection. This algorithm was chosen because it does not require labeled failed drive samples. Instead, it learns the statistical profile of healthy SSDs and identifies deviations from this profile as anomalous behavior. Therefore, the task was to detect single-class anomalies, where the model examined the normal behavior of healthy SSDs and identified significant deviations as abnormal states.
The model was trained exclusively on healthy drive samples using the following parameters. The number of estimators was set to 200, the pollution factor was fixed at 0.05, and the random state was set to 42. To support model training under controlled conditions, Monte Carlo simulation was used to generate synthetic samples based on statistical properties extracted from the collected healthy drive dataset, including the median and 95th percentile values of selected diagnostic attributes. A total of 20,000 synthetic samples were generated for the SATA SSDs, and 20,000 were generated for the NVMe SSDs.
To ensure interpretability, the deviations obtained by the trained model were normalized to a percentage of health on a scale from 0 to 100. Values above 70% were interpreted as healthy behavior, values between 40% and 70% indicated a worrisome state, and values below 40% indicated abnormal behavior.

3.2. Proposed Method for Diagnosing NAND Memory

The primary objective of the proposed method is to determine the health of NAND flash memory and its ability to access stored data. Unlike traditional reliability prediction approaches, which estimate the device’s service life, this method focuses on assessing NAND flash memory health in the context of data recovery.
NAND flash memory viability is defined as the ability of memory cells to reliably store and retrieve data during read operations. If NAND flash memory degrades critically or stops responding, then data recovery becomes technically impossible because the physical storage medium containing the original data becomes inaccessible.
Based on the analysis of SMART and NVMe indicators, the health of NAND memory is classified into three categories:
  • NAND Alive, where memory cells remain functional and data can be accessed;
  • NAND Degrading, where memory is subject to significant wear and tear and accumulation of errors, which reduces the likelihood of their recovery;
  • NAND Critical or Dead, where memory is severely damaged or unresponsive, making recovery impossible.
To comprehensively assess the feasibility of data recovery from SSDs, this study proposes an integrated diagnostic system that evaluates the health of NAND flash memory, taking into account controller characteristics and storage limitations.
The proposed method combines two parallel analytical approaches. The first approach focuses on assessing the physical health of NAND flash memory using SMART and NVMe diagnostic indicators, as well as a logic-based health model. The second approach analyzes controller-related parameters, including encryption mechanisms and TRIM functionality, which directly impact data recovery even with operational NAND flash memory. The combination of these two analytical approaches allows for a more accurate and realistic assessment of the potential for data recovery from SSDs. The general algorithm of the proposed method is shown in Figure 2.
As shown in Figure 2, the diagnostic process begins with SMART or NVMe log data retrieved with a single terminal command. The first analytical branch evaluates the health of the NAND flash memory, extracting key health indicators such as the wear level, media errors, spare block availability, and temperature. These parameters are processed using a logic inference model to calculate a NAND health index and classify the memory state as healthy, degrading, or critical.
The second analytical branch evaluates controller-related limitations that may impact data availability, including hardware encryption mechanisms and TRIM functionality. Even if the NAND memory remains healthy, the presence of active encryption or TRIM operations can significantly reduce the likelihood of successful data recovery.
The proposed system makes an important distinction between the technical health of an SSD and the feasibility of data recovery through forensic analysis. A drive may be technically healthy in terms of performance or reliability if the NAND memory and controller are functioning normally, and the SMART and NVMe indicators do not report critical errors. However, such a drive may still offer limited data recovery capabilities if TRIM has invalidated deleted logical blocks or if hardware encryption prevents access to user data without the appropriate key. Therefore, the proposed system does not treat SSD health and recovery capability as identical concepts.
In the proposed system, data recovery is determined by a combination of four key factors: NAND flash memory state, controller stability, TRIM activity, and encryption status. The NAND flash memory state determines whether physical memory cells remain readable, while controller stability determines whether the flash translation layer and logical address translation remain functional. TRIM activity influences whether deleted logical blocks are recoverable, while encryption status determines whether recovered data can be interpreted without the corresponding key. Thus, data recovery is determined not by a single SMART or NVMe attribute but by the combined influence of physical, controller-level, and logical conditions.
The proposed decision-making process first evaluates the NAND and controller health to determine whether the physical storage media and address translation mechanisms remain functional. TRIM health and encryption status are then analyzed as forensic constraints. If the NAND and controller health are normal but TRIM is active, then the system can classify the device as technically healthy, limiting recovery to partial recovery, as the deleted data may be inaccessible. Similarly, if encryption is active, and the required key is unavailable, then the drive may remain functional. However, forensic interpretation of the recovered NAND contents may be limited. This distinction allows the system to distinguish between a healthy SSD and a state with limited recoverability.
The results of both branches are combined into a single decision module that determines the overall feasibility of data recovery. This integrated approach enables a preliminary forensic assessment before initiating complex recovery procedures and reduces unnecessary recovery attempts in cases where the NAND memory has critically degraded or is unavailable.

3.3. Machine Learning-Based Assessment of NAND Flash Viability

NAND flash memory degradation is a gradual and nonlinear process influenced by multiple interacting factors, including the wear level, error accumulation, spare block availability, and thermal conditions. These factors vary across SSD models and manufacturers and do not always follow rigid threshold behavior. Therefore, conventional binary or threshold-based diagnostic approaches are insufficient for accurately determining NAND flash viability in the context of forensic data recovery.
To address this challenge, the proposed method applies a machine learning-based approach for assessing the condition of NAND flash memory. Instead of relying on manually defined rules, the model learns degradation patterns from diagnostic indicators extracted from SMART and NVMe logs. This enables the system to capture complex relationships among multiple SSD health parameters and to provide a more flexible assessment of the NAND condition under varying operating states.
A machine learning model based on the Isolation Forest anomaly detection algorithm is used to assess the health of NAND flash memory. As mentioned earlier in the article, this algorithm was chosen due to the differences in SSD telemetry data; records of healthy SSDs are relatively numerous, while the number of flagged faulty SSD samples is smaller. Therefore, the assessment task was formulated as a single-class anomaly detection problem. In this approach, the model learns the normal telemetry pattern of healthy SSDs and identifies significant deviations from this pattern as abnormal conditions.
The Isolation Forest model uses SMART and NVMe diagnostic features related to NAND reliability, including the wear level, media and data integrity errors, uncorrectable errors, available spare blocks, programming failure count, erase failure count, temperature, and controller warning indicators. These features are normalized before being processed by the model to reduce the influence of different numerical scales. The model’s output is then converted into a normalized health metric and interpreted using diagnostic rules specific to NAND.
Based on machine learning results and NAND-specific metrics, the SSD’s health was classified into three recovery states: NAND Alive, NAND Degrading, and NAND Critical or Dead. Consequently, the Isolation Forest model was used as part of a hybrid diagnostic system that combines anomaly detection with forensic interpretation of NAND health and SSD data recovery capabilities.
The input feature set includes key indicators associated with NAND reliability, such as the wear level, media and data integrity errors, uncorrectable error count, available spare blocks, program fail count, erase fail count, temperature, and controller warning flags. These parameters were first normalized and then used as input to the classification model. Based on the learned feature patterns, the model assigns NAND flash memory to one of three diagnostic categories: NAND Alive, NAND Degrading, or NAND Critical or Dead.
The NAND Alive class indicates that the memory cells remain operational and that stored data is likely to be accessible for further recovery procedures. The NAND Degrading class reflects significant wear and error accumulation, suggesting reduced recovery probability and increased forensic complexity. The NAND Critical or Dead class indicates severe degradation or non-responsiveness of NAND memory, in which case successful data recovery becomes highly unlikely or technically impossible.
The proposed model is intended to support forensic pre-assessment rather than merely predict device failure. In this study, NAND flash viability is evaluated as a recovery-oriented diagnostic state derived from internal SSD health indicators. This allows the framework to move beyond conventional reliability prediction and toward practical estimation of data recovery feasibility.
Figure 3 illustrates the general workflow of the proposed machine learning-based NAND viability assessment. Diagnostic indicators extracted from SMART and NVMe logs are preprocessed and normalized before being used as input to the classification model. The resulting NAND health state is then integrated with controller-related constraints in order to estimate recovery feasibility.
It should be noted that the recovery probability shown in Figure 3 is not a directly measured, continuous experimental value. In practical forensic recovery, an exact numerical probability is difficult to obtain because recovery results depend on numerous uncontrollable factors, including the controller behavior, FTL mapping availability, TRIM execution, encryption state, NAND error distribution, and forensic extraction quality. Therefore, the probability values in Figure 3 should be interpreted as conceptual and recovery-oriented feasibility levels, rather than as precisely measured probabilities. In experimental evaluation, these feasibility levels are represented by categorical results: recoverable, partially recoverable, and non-recoverable.
To further interpret the results of the proposed diagnostic model, a scenario-based evaluation of data recovery feasibility was performed. The analysis considers the combined influence of NAND flash memory health, controller stability, TRIM status, and encryption mechanisms. These parameters represent the most critical technical factors affecting the possibility of successful data extraction from SSD devices.
NAND flash memory health reflects the physical integrity of memory cells and their ability to reliably retain and return stored information during read operations. Controller status determines whether the flash translation layer (FTL) and internal management mechanisms remain operational. Even when NAND memory is physically intact, controller failure may prevent logical address translation, significantly complicating data recovery.
In addition, modern SSD technologies introduce further constraints for forensic analysis. The TRIM command may permanently invalidate previously deleted logical blocks, while hardware encryption mechanisms can prevent direct interpretation of NAND memory contents without access to the corresponding keys. Therefore, these factors must be considered when estimating the probability of successful recovery.
The final recovery category is calculated by taking four sets of diagnostic factors into consideration: NAND health, controller stability, TRIM activity, and encryption status. The NAND health value indicates whether the physical Flash memory cells are readable, and controller stability will tell if the FLASH translation layer and logical address translation mechanisms are working. The activity status of TRIM and the presence or absence of encryption in the SSD is then used as a forensic constraint that can impact the recoverability of the SSD even if it is physically operational.
When the NAND flash memory is considered NAND Alive, the controller is stable, TRIM is not enabled or does not impact the target data, and encryption is not enabled, or the needed key is offered. Logical file system analysis or standard recovery techniques are likely to be possible in this situation. An SSD is considered to be partially recoverable if the NAND memory is still usable to some degree, but the degree of recovery is restricted by the degradation of the NAND, the instability of the controller(s) or active TRIM, or encryption limitations. In these instances, only data that can be accessed now or certain portions of that data may be recovered, and sophisticated techniques like chip-off analysis, NAND dump analysis, or TRIM-aware recovery can be necessary.
When any of the following conditions hold, the SSD is considered non-recoverable; NAND flash memory is critical or unresponsive, the controller has failed, making logical address translation not available, TRIM has removed the corresponding deleted blocks, or the data cannot be interpreted without the proper key because of encryption. Therefore, the proposed framework is not based on one SMART or NVMe value to determine recovery feasibility. Rather, it integrates the viability of physical NAND, the accessibility of the controller level, and security or control restrictions to yield the overall recovery conclusion.
Table 4 summarizes the predicted recovery feasibility under different NAND degradation levels and controller conditions.
As shown in Table 4, the feasibility of SSD data recovery depends strongly on the physical condition of the NAND flash memory and the operational state of the SSD controller. When both components remain functional, the probability of successful recovery is highest because stored data can still be accessed through normal controller operations and logical address translation mechanisms.
However, when NAND degradation increases or controller instability occurs, the probability of successful recovery decreases significantly. In such cases, advanced forensic techniques such as chip-off extraction or NAND-level reconstruction may be required. If both the NAND flash memory and the controller fail, then data recovery becomes technically impossible because the original storage medium can no longer be accessed or interpreted.
These results confirm that reliable assessment of NAND health and controller status is essential before initiating complex forensic recovery procedures. The proposed machine-learning-based diagnostic approach enables preliminary evaluation of recovery feasibility, helping investigators avoid unnecessary recovery attempts and select appropriate forensic methods.

3.4. Mathematical Formulation of Isolation Forest-Based SSD Health Assessment

In addition to rule-based interpretation of SMART and NVMe telemetry, the proposed framework incorporates a machine learning module for anomaly detection based on Isolation Forest. The role of this module is to learn the statistical profile of healthy SSD operation and to identify drives whose observed telemetries deviate from this normal behavior. This approach is particularly appropriate for SSD diagnostics because the available data is inherently imbalanced. In such conditions, one-class learning is more suitable than conventional supervised classification, since the model can be trained exclusively on healthy device observations and later used to detect abnormal deviations. This idea is consistent with prior SSD failure prediction studies, which showed that the one-class Isolation Forest is effective for detecting previously unseen failure patterns in highly imbalanced telemetry data.
The rationale for formulating SSD evaluation as a single-class learning problem is based on drive telemetry. In real-world settings, telemetry from healthy SSDs is more abundant, structured, and easier to collect. However, data from degraded or failed drives with corresponding SSD degradation labels is rare. Such data is also heterogeneous and can manifest differently, depending on the NAND type, controller design, firmware, workload history, TRIM behavior, and encryption state. Therefore, creating a complete and balanced dataset for supervised learning that represents all possible degradation states is a challenging task.
For this reason, telemetry from healthy SSDs was considered a reference state for normal drive behavior. The Isolation Forest model learns this normal telemetry profile and identifies observations that deviate from it as anomalous. Such deviations are considered asymmetric because degradation does not occur as a homogeneous opposite class to healthy behavior. Instead, it can only affect a subset of diagnostic metrics, such as the wear level, media errors, available spare blocks, unsafe shutdowns, error log entries, or controller-related warnings. This makes single-class anomaly detection suitable for SSD health assessment, as the model does not require exhaustive examples of all failure modes and can detect previously unseen deviations from the reference healthy profile.
The asymmetry between the telemetry of healthy and degraded SSDs justifies the use of single-class anomaly detection. Records of healthy SSDs are more structured and accessible, while degraded states are rare, heterogeneous, and can result from various combinations of NAND wear, controller instability, TRIM activity, or encryption limitations. Consequently, the behavior of a degraded SSD cannot be reliably represented as a single, balanced, opposite class. By using telemetry from healthy SSDs as a reference state, Isolation Forest can detect significant deviations that may indicate deterioration of the NAND or limited recovery capabilities.
The details of the Isolation Forest model configuration used in this study are provided in Table 5. These parameters determined the training strategy, input features, preprocessing method, and output data interpretation used in the proposed SSD health assessment system.
This configuration was chosen to support anomaly detection in the presence of unbalanced SSD telemetry, where there is a large number of healthy writes but a limited number of flagged bad drive samples.
To reduce the risk of overfitting, the model was formulated as a single-class anomaly detection system. The Isolation Forest model was trained only on telemetry from healthy SSDs, allowing it to learn a general profile of normal SSD behavior rather than memorizing specific failure cases. Separate models were developed for SATA and NVMe SSDs, and all input characteristics were normalized using StandardScaler to reduce the impact of different numerical scales between SMART and NVMe attributes. Furthermore, model complexity was controlled using 200 evaluations and a fixed pollution factor of 0.05. The final recovery decision was based not only on the machine learning results but also on an assessment based on NAND health rules, controller stability, TRIM status, and encryption constraints.
The proposed system comprises two Isolation Forest models: one for SATA SSDs and another for NVMe SSDs. This is because the two classes have different diagnostic features and internal health reporting systems. The implementation shows that the SATA model was trained with a 10-dimensional feature vector
x ( SATA ) = [ x 1 , x 2 , , x 10 ] ,
defined as
x ( SATA ) = [ temperature , reallocated _ sectors , power _ on _ hours , wear _ level , program _ fail , erase _ fail , uncorrectable _ errors , command _ timeout , pending _ sectors , crc _ errors ] .
For NVMe SSDs, a separate seven-dimensional feature vector was used:
x ( NVMe ) = [ x 1 , x 2 , , x 7 ] ,
where
x ( NVMe ) = [ temperature , available _ spare , percentage _ used , media _ errors , error _ log _ entries , unsafe _ shutdowns , power _ on _ hours ] .
These feature definitions were stored explicitly in the model metadata and reused during inference, ensuring consistency between training and deployment.
The feature vectors were standardized with z-score normalization before training. For each feature x j , the transformed variable z j was computed as follows:
z j = x j μ j σ j ,
where μ j and σ j denote the mean and standard deviation estimated from the healthy training data, respectively. In vector form, the transformation can be written as follows:
z = StandardScaler ( x ) .
This was achieved using the StandardScaler class, which is applied during model training and during inference with new SSD observations. Normalization is required because SMART and NVMe features are measured in different numerical ranges, and anomaly detection is more robust when features are standardized (centered and scaled) prior to training the model.
The model was trained with healthy drive data. Currently, training samples are simulated from a statistical reference dataset containing healthy SMART and NVMe features. For SATA SSDs, temperature is generated from a normal distribution parameterized according to empirical median and percentiles, reallocated sectors are mostly fixed at zero, power-on hours follow an exponential-type distribution, and key NAND-specific attributes are fixed at zero. Likewise, for NVMe devices, the healthy samples are drawn from the empirical distributions of temperature, available spare, percentage used, unsafe shutdowns, and power-on hours, with media_errors set to zero for healthy samples. In this implementation, we generated 20,000 training samples for SATA SSDs and 20,000 for NVMe SSDs.
Let the healthy training set be denoted as
D healthy = { x i } i = 1 N ,
where N is the number of healthy training instances. The Isolation Forest model is then fitted on the standardized data:
M = IForest ( { z i } i = 1 N ; T , α ) ,
where T is the number of trees and α is the contamination parameter. In the implemented model, the number of estimators was set to T = 200 , while the contamination level was fixed at α = 0.05 . The contamination parameter represents the expected proportion of anomalous observations and is used by the model to define its decision threshold.
Isolation Forest is an anomaly detection algorithm that relies on the fact that anomalous points are “few and different”, and thus they can be isolated by fewer random partitions than normal points. Essentially, the method splits the feature space by random feature and random threshold. Anomalous points are those that reach short average path lengths in the forest, while normal points are those that are not separated from other points. This is appealing for SSD diagnostics, as the method does not rely on a specific parametric distribution assumption of the telemetry data and can accommodate for heterogeneous multivariate data. Previous works on anomaly detection and SSD failure prediction have stressed this feature of one-class Isolation Forest in ever-changing environments with new types of failures. Given an observation of the SSD, the model outputs two things. First, it predicts a continuous anomaly score:
s raw = f IF ( z ) ,
where f IF ( · ) corresponds to the score_samples function of the fitted Isolation Forest. Second, it produces a binary prediction
y = 1 , normal observation , 1 , anomalous observation .
In the implementation, the label y = 1 indicates that the drive behavior is considered anomalous by the machine learning model.
To improve interpretability, the raw anomaly score is transformed into a normalized health score on a 0–100 scale. Let s min and s max denote the lower and upper score bounds estimated from the training process. Then, the normalized ML health score is computed as follows:
H ML = 100 · s raw s min s max s min .
The resulting value is clipped to the interval [ 0 , 100 ] :
H ML = min 100 , max ( 0 , H ML ) .
According to the stored model metadata, the SATA model uses the score interval
s min ( SATA ) = 0.7340902912 , s max ( SATA ) = 0.3584426948 ,
whereas the NVMe model uses
s min ( NVMe ) = 0.7110966122 , s max ( NVMe ) = 0.3698818151 .
Thus, higher score values correspond to healthier drives, while lower values indicate increasingly anomalous behavior.
The normalized machine learning health score is then mapped to a qualitative verdict:
Verdict ML = healthy , H ML 70 , warning , 40 H ML < 70 , anomaly , H ML < 40 .
This conversion makes the anomaly detector easier to interpret in forensic and engineering settings, because the output is not limited to a binary label but also provides a continuous estimate of how far the current SSD state deviates from the learned healthy profile.
From a methodological point of view, the ML part of the proposed framework can therefore be summarized as the following pipeline:
x z s raw H ML Verdict ML .
Here, x is the extracted SMART or NVMe feature vector, z is its standardized representation, s raw is the Isolation Forest anomaly score, H ML is the normalized health score, and Verdict ML is the final machine learning label.
While the ML part is key to anomaly detection, it is not used on its own. In the proposed framework, the ML results are complemented by explicit rule-based scoring for NAND health and controller health. The NAND score is based on indicators such as reallocated sectors, uncorrectable errors, program failures, erase failures, media errors, depletion of available spares, and wear counters; the controller score is based on indicators such as critical warnings, error log entries, CRC errors, command timeouts, and pending sectors. As a result, the overall system should be viewed as a hybrid SSD diagnostic system, rather than a pure ML classifier. The ML component captures multivariate anomalies in behavior, while the forensic rules provide insight into the probable cause and its implications for data recovery.
This combination is advantageous for SSD forensics. Isolation Forest offers flexibility and responsiveness to anomalous telemetry even when failure data is unavailable, while the rule-based component ensures interpretability and establishes direct connections between detected anomalies and NAND and controller health, encryption compatibility, and recoverability. Therefore, the proposed method combines the strengths of data-driven anomaly detection and domain-specific forensic interpretation in a unified SSD health assessment framework.

4. Results

The platform was developed using Python 3.13 as the primary programming language. Machine learning was performed using the scikit-learn 1.6 library, which provides an Isolation Forest implementation (sklearn.ensemble.IsolationForest). Feature normalization was performed using sklearn.preprocessing.StandardScaler. Numerical computations and the generation of synthetic training samples were performed using NumPy. Trained models were serialized and saved to the disk using the joblib library (model.pkl), enabling offline inference without retraining. SMART data analysis was performed using Python’s built-in regular expression (re) module, which extracts numerical attribute values from smartctl raw output in various formats and from different vendors.
Figure 4 presents the input interface of the proposed SSD diagnostic system. The prototype is designed to accept raw SMART and NVMe telemetry collected using the smartctl utility. To improve usability across different operating systems, the interface provides predefined command examples for Linux, macOS, and Windows PowerShell, including both SATA and NVMe devices. The collected output can be pasted directly into the input area and processed by the analysis module. This stage represents the entry point of the proposed diagnostic workflow and demonstrates that the developed method can be applied through a practical software interface rather than only as a theoretical model.
The interface shown in Figure 4 represents the input stage of the proposed SSD diagnostic workflow. At this stage, the user provides raw SMART or NVMe telemetry obtained from the smartctl utility. The interface supports multiple operating systems and device types by displaying example commands for Linux, macOS, and Windows PowerShell, including both SATA and NVMe SSDs. This design improves usability and reduces the effort required to collect diagnostic information. After the telemetry is pasted into the input field, the analysis module can be executed to perform further health assessment of the SSD.
To illustrate the output generated by the proposed diagnostic framework, Figure 5 presents an example of the subsystem-level and machine learning-based assessment results for an SSD classified as healthy. The interface displays separate evaluations of NAND memory and controller condition, together with the result of the Isolation Forest module. This representation was designed to provide both technical detail and interpretability, allowing the user to understand the final status of the drive but also the specific factors that contributed to the diagnostic conclusion.
As shown in Figure 5, the NAND assessment reported a score of 100/100, indicating that no NAND-related issues were detected. Similarly, the controller assessment also produced a score of 100/100, suggesting the absence of controller-level faults or interface-related problems. The machine learning module confirmed this conclusion by assigning a health score of 97.7%, classifying the drive as consistent with healthy SSD patterns. The displayed feature values further support this interpretation, since all critical degradation-related indicators, such as reallocated sectors, program failures, erasure failures, uncorrectable errors, pending sectors, and CRC errors, remained at zero. Overall, this result demonstrates that the proposed framework can provide a coherent and interpretable diagnostic output by combining rule-based subsystem evaluation with anomaly-based machine learning analysis. To demonstrate the recovery-oriented output of the proposed framework, Figure 5 presents an example in which the SSD was classified as allowing only partial data recovery. In this case, the system indicated that the NAND memory and controller remained operational, which means that the currently stored data was physically preserved. However, the TRIM zeroed condition was detected, implying that deleted files had most likely been physically erased by the SSD controller and therefore could not be recovered by standard software-based methods.
As shown in Figure 6, the system reported the status “Partial Recovery Possible” and provided a set of practical recommendations. These recommendations include immediately stopping write operations, creating a forensic disk image, and performing recovery attempts only on the image copy rather than on the original device. The interface also suggests standard recovery tools, such as TestDisk, PhotoRec, and R-Studio, for extracting the still-accessible data. The result demonstrates that the proposed framework not only assesses SSD health but also translates the technical state of the NAND, controller, and TRIM behavior into an interpretable recovery-oriented conclusion for the user.
In another case, Figure 7 shows the results of testing a faulty SSD using the proposed machine learning-based diagnostic and assessment system. The machine learning module identified the faulty drive as abnormal, indicating a significant difference in its diagnostic profile from the normal behavior studied on healthy SSD samples. The model was trained using seven key diagnostic features and a benchmark dataset consisting of 56,482 SATA SSD samples and 82,665 NVMe SSD samples.
The analysis revealed an overall SSD health score of 18.2%, indicating critical degradation. While some NAND-related metrics, such as the available spares of 100, percentage used of zero, and media errors of zero, showed no direct signs of NAND wear or media-level failures, the controller parameters revealed serious issues. Specifically, the system detected 158 error log entries and 121 unsafe shutdowns. These values indicate controller instability or abnormal device behavior caused by multiple abnormal shutdowns.
As a result, the controller health score was 60/100, and the system reported controller issues. Thus, despite the absence of direct media errors, the SSD was classified as problematic because its operating history and controller metrics demonstrated anomalous behavior. This confirms that SSD recovery capability should be assessed not only by NAND wear indicators but also by controller stability, error logs, unsafe shutdown events, and machine learning-based anomaly detection.
For the proposed framework, the evaluation was performed with diagnostic and recovery-oriented metrics, rather than with conventional supervised classification-based metrics. The machine learning problem was formulated as an anomaly detection problem, and thus the accuracy, precision, recall and F1 score were not used as the primary metrics for evaluating the system, as there was no large labeled dataset of failed SSDs. The following metrics were used instead: the normalized machine learning health score ( H M L ), Isolation Forest anomaly verdict, NAND health score, controller health score, and final recovery feasibility class. The recovery feasibility class was split into three groups: possible recovery, partial recovery, and impossible recovery. These metrics were chosen because the goal of the proposed framework is not just to identify abnormal SSD behavior but also to aid in forensic decision making prior to data recovery procedures.
As shown in Table 6, the selected metrics reflect both the machine learning results and expert interpretation of SSD recoverability. The normalized ML health metric and anomaly conclusion indicate whether the observed SSD telemetry deviated from the learned health profile. In turn, the NAND and controller health metrics provide subsystem-level explanations for the detected condition. The final recoverability class combines these results into a practical expert judgment, thereby enabling the system to distinguish between possible, partial, and impossible recovery scenarios.

Experimental Evaluation of SSD Data Recovery

To evaluate the proposed diagnostic approach, 30 SSD samples were analyzed according to the main factors affecting data recovery. These included controller health, NAND flash memory status, encryption status, TRIM function, and combined diagnostic data derived from selected SMART and NVMe attributes. Based on these parameters, each SSD sample was classified into one of three recovery capability classes: possible, partially recoverable, or impossible. As shown in Table 4, the manually selected cases demonstrated three distinct recovery scenarios. SSDs classified as “Possibly Recoverable” typically had a functional controller, healthy NAND flash memory, inactive encryption, and no active TRIM restrictions. These conditions indicate that the device can still provide stable access to user data, making logical or file system-level recovery possible.
SSDs classified as “Partially Recoverable” remained physically accessible, but their recoverability was limited by active encryption, TRIM activity, or early signs of controller or NAND degradation. In these cases, full recovery cannot be guaranteed, but partial recovery of still accessible data may be possible depending on the time of data deletion, controller stability, NAND condition, and the presence of encryption keys.
The “Unrecoverable” class represents SSDs with faulty controllers, critical NAND degradation, active TRIM effects, encryption limitations, or a combination of these conditions. In such cases, access to user data becomes severely limited or technically impossible, as the translation layer, memory cells, or cryptographic mechanisms prevent reliable data retrieval. These findings confirm that the ability to recover data from an SSD cannot be assessed using a single SMART indicator. Instead, a comprehensive interpretation of the controller’s health, NAND memory health, TRIM behavior, encryption status, and diagnostic telemetry is required.
The goal of this experiment was to demonstrate how different combinations of controller stability, NAND flash memory status, TRIM activity, and encryption could influence the final recovery decision. In this study, 10 SSD samples were classified as recoverable, 10 were classified as partially recoverable, and 10 were classified as unrecoverable. Table 7 displays the diagnostic results and the final recovery capability assessment.
As shown in Table 7, SSDs classified as “Possible Recovery” typically had a functioning controller, healthy NAND flash memory, inactive encryption, and no active TRIM restrictions. These conditions indicate that the device can still provide stable access to user data, making logical or file system-level recovery possible. It should be noted that the selected cases were intended to evaluate the diagnostic logic of the proposed model and not to estimate the statistical prevalence of each recovery class in real-world SSD patient populations. Therefore, the equal number of cases in each category reflects the evaluation design and not the natural distribution of SSD failures or recovery outcomes.
SSDs classified as “Partially Possible Recovery” remained physically accessible, but their recoverability was reduced by factors such as active encryption, TRIM activity, or early signs of controller or NAND degradation. In such cases, full recovery may not be guaranteed, but partial recovery of accessible data may still be possible, depending on the timing of the data deletion, controller stability, and the health of the NAND flash blocks.
The “Unrecoverable” class represents SSDs with failed controllers, critical NAND degradation, active TRIM effects, or a combination of these conditions. In such cases, access to user data becomes severely limited or technically impossible, as the translation layer, memory cells, or cryptographic mechanisms prevent reliable data recovery. Thus, the results confirm that the ability to recover data from an SSD cannot be assessed using a single SMART indicator. Instead, a comprehensive assessment of the controller’s health, NAND memory health, TRIM behavior, encryption status, and diagnostic attributes is required.

5. Discussion

The results show that the proposed diagnostic framework is more focused on SSD data recovery than traditional SSD health monitoring utilities. Traditional tools, such as CrystalDiskInfo, are useful for displaying SMART attributes for generalized monitoring but are not designed for forensic analysis. The key contribution of the proposed approach is that it evaluates the feasibility of SSD data recovery. Instead of interpreting each indicator independently, the framework evaluates a combination of aspects, such as the impact of NAND wear, media and integrity errors, spare block depletion, controller instability, TRIM activity, and encryption limitations. This is important because SSD recovery is not determined by a single parameter. In many practical situations, data recovery depends on the interaction between the physical state of the NAND and controller behavior. At the SMART level, a drive may appear healthy, but data recovery can be significantly hampered by controller instability, spare block depletion, active TRIM processing, or the inaccessibility of encrypted storage.
The results also demonstrate that the proposed framework is more aligned with forensic analysis principles than threshold-based interpretation. Traditional threshold-based tools treat SSD health as a simplistic monitoring task, whereas forensic assessment requires a deeper interpretation of whether data can still be accessed, recovered, or extracted. In this regard, the proposed method extends beyond standard SMART monitoring by combining subsystem-level interpretation with a machine learning-based anomaly detector. The rule-based layer preserves interpretability by explicitly linking observed indicators to NAND degradation and controller-related limitations, while the Isolation Forest module increases sensitivity to multivariate deviations from normal SSD behavior. This hybrid design is particularly valuable in forensic applications where both explainability and reliability are required. The proposed method supports pre-sorting before costly or invasive recovery procedures are undertaken. From a forensics perspective, this is of significant importance. If the system identifies an SSD as functioning NAND with stable controller behavior and no critical logical limitations, then logical data extraction or file system-level recovery may be warranted. However, if the platform detects a degraded NAND, controller instability, or serious anomalies in SMART or NVMe telemetry, then more sophisticated methods may be required, such as NAND dump analysis, chip data extraction, or low-level reconstruction. Conversely, if both NAND and controller health are critically compromised, then the system can indicate an extremely low recovery probability, helping investigators avoid unnecessary recovery attempts. Enabling TRIM analysis and encryption also increases the practical value of the system. Existing research on SSD failure prediction primarily focuses on reliability assessment and anomaly detection, but data recovery for forensic purposes depends not only on whether a drive fails but also on whether deleted or logically inaccessible data remains physically recoverable. For example, the experimental interface demonstrated a case where the SSD hardware remained functional, but recovery was only partial, as the TRIM reset likely resulted in the erasure of deleted data. This highlights an important distinction between conventional health prediction and data recovery assessment in forensic applications: a drive may be technically “healthy” in terms of performance yet offer limited data recovery capabilities.
The proposed product demonstrates clear practical value. It provides a structured bridge between SSD telemetry analysis and forensic decision making. Unlike traditional software, it evaluates the probability of recovery, the factors that reduce this probability, and which recovery strategy may be considered more appropriate under the observed conditions. For this reason, this framework can be considered as a promising decision support tool for forensic experts working with modern SSD drives. The ability to pre-screen SSD drives is practical, helping investigators prioritize devices for recovery, identify cases requiring complex recovery methods, and avoid unnecessary attempts when recovery is technically unlikely. This reduces time, costs, and the workload of the forensic lab and facilitates more effective recovery strategies.
Future work will focus on incorporating more comprehensive forensic information and larger datasets of real-world SSD data recovery cases to improve the accuracy of recovery probability assessments. Larger datasets collected from different SSD manufacturers, NAND generations, controller families, firmware versions, and workload histories will also improve model validation under various forensic conditions. These improvements may contribute to more accurate recovery probability assessments and a more reliable selection of appropriate recovery methods.

6. Conclusions

This study proposes a recovery-focused diagnostic framework for assessing the health of NAND flash memory and its impact on data recovery from SSDs. The developed method addresses a key limitation of existing approaches to SSD monitoring and failure prediction: while such methods are useful for identifying degradation or anomalous behavior, they do not directly determine whether NAND flash memory remains suitable for forensic recovery. To overcome this limitation, the proposed framework combines SMART and NVMe telemetry analysis, subsystem-level interpretation of NAND and controller health, and machine learning-based anomaly detection using Isolation Forest. The results show that the recovery potential is highly dependent on the combined health of the NAND flash memory and SSD controller. When the NAND flash remains healthy and the controller is stable, recovery is likely because logical addressing and stored data remain accessible. As degradation increases, reserve resources are depleted, or controller instability occurs, the likelihood of recovery decreases, and more advanced methods such as NAND dump analysis, chip data extraction, or low-level reconstruction may be required. Furthermore, TRIM and hardware encryption were identified as important forensic limitations that can significantly reduce the likelihood of data recovery, even if the SSD is still operational.
These results confirm that SSD forensic assessments must consider not only physical memory wear but also controller-level and logical factors affecting data availability. This also confirms the asymmetric nature of SSD degradation, in which abnormal conditions manifest as heterogeneous deviations from the healthy telemetry profile. An additional advantage of the proposed framework is its hybrid approach. Rule-based subsystem analysis ensures interpretability by explicitly linking observed SMART and NVMe indicators to NAND degradation and controller-related risks, while the Isolation Forest model increases sensitivity to multivariate deviations from normal SSD behavior. This combination makes the framework more suitable for preliminary forensic assessment than simplified threshold-based monitoring tools, which typically only report overall health conditions and do not evaluate recovery-focused outcomes.
Experimental evaluation demonstrated that the framework can provide stable and consistent diagnostic conclusions in normal, warning, and degraded SSD scenarios, validating its use as a practical decision support tool. Despite these promising results, the study has several limitations. The proposed methodology relies on the availability and consistency of SMART and NVMe telemetry, which may vary across SSD manufacturers, controller families, and firmware implementations. Furthermore, the current assessment should be expanded using broader datasets from different manufacturers and a larger number of real-world data recovery cases. Therefore, future work should focus on validating different SSD architectures, controller designs, NAND generations, and workload conditions, as well as refining the recovery probability assessment using more comprehensive forensic information. Overall, the proposed method demonstrates that SSD telemetry can be transformed into a more meaningful forensic recovery assessment. By integrating NAND health assessment, controller-related limitations, and anomaly-based machine learning into a unified framework, the study provides a practical basis for data recovery decision making. Therefore, the proposed method represents a promising step toward more intelligent and recovery-focused forensic analysis of modern SSDs.

Author Contributions

Conceptualization, L.R., A.Z., M.Z. and A.A.; methodology, L.R. and A.Z.; validation, L.R., A.Z., M.Z. and A.A.; formal analysis, L.R. and A.Z.; resources, L.R., A.Z., M.Z. and A.A.; data curation, A.Z.; writing and editing, L.R., A.Z., M.Z. and A.A.; visualization, L.R., A.Z., M.Z. and A.A.; funding acqusition, L.R.; supervision, L.R., A.Z., M.Z. and A.A.; project administration, L.R., A.Z., M.Z. and A.A. All authors have read and agreed to the published version of the manuscript.

Funding

This study was carried out with the financial support of the Committee of Science of the Ministry of Science and Higher Education of the Republic of Kazakhstan under Contract 388/PTF24-26, dated 1 October 2024, under the scientific project IRN BR24993232 “Development of innovative technologies for conducting digital forensic investigations using intelligent software-hardware complexes”.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

Authors Murat Zhakenov and Abdykassym Altynbay were employed by the “Digital Heritage of Eurasia” LLP. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SSDSolid state drive
HDDHard disk drive
NANDNot AND flash memory
MLCMulti-level cell
TLCTriple-level cell
QLCQuad-level cell
PLCPenta-level cell
FTLFlash translation layer
ECCError correction code
SMARTSelf-Monitoring, Analysis, and Reporting Technology
NVMeNon-Volatile Memory Express
PCIePeripheral Component Interconnect Express
SATASerial Advanced Technology Attachment
RAMRandom access memory
CPUCentral processing unit
RBERRaw bit error rate
P/EProgram/erase
TRIMTrim command
OSOperating system
GUIGraphical user interface
CLICommand line interface
APIApplication programming interface
K-NNK-nearest neighbors
NBNaive Bayes
LRLogistic regression
ROCReceiver operating characteristic
ROC-AUCArea under the receiver operating characteristic curve
TPTrue positive
FPFalse positive
TNTrue negative
FNFalse negative
PDFPortable Document Format
CSVComma-separated values
JSONJavaScript Object Notation

References

  1. Li, D.; Sun, J.; Huang, J. Learning to Drive Software-Defined Solid-State Drives. In Proceedings of the 56th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO ’23), Toronto, ON, Canada, 28 October–1 November 2023; ACM: New York, NY, USA, 2023. [Google Scholar] [CrossRef]
  2. Lee, S.-W.; Moon, B.; Park, C.; Kim, J.-M.; Kim, S. A Case for Flash Memory SSD in Enterprise Database Applications. In Proceedings of the 2008 ACM SIGMOD International Conference on Management of Data, Vancouver, BC, Canada, 9–12 June 2008; ACM: New York, NY, USA, 2008. [Google Scholar] [CrossRef]
  3. Ren, T.; Du, Y.; Cui, J.; Lv, Y.; Li, Q.; Xue, C.J. Device-Level Optimization Techniques for Solid-State Drives: A Survey. arXiv 2025, arXiv:2507.10573. [Google Scholar] [CrossRef]
  4. Mielke, N.R.; Frickey, R.E.; Kalastirsky, I.; Quan, M.; Ustinov, D.; Vasudevan, V.J. Reliability of Solid-State Drives Based on NAND Flash Memory. Proc. IEEE 2017, 105, 1725–1750. [Google Scholar] [CrossRef]
  5. Bonetti, G.; Viglione, M.; Frossi, A.; Maggi, F.; Zanero, S. A Comprehensive Black-Box Methodology for Testing the Forensic Characteristics of Solid-State Drives. In Proceedings of the 29th Annual Computer Security Applications Conference (ACSAC ’13), New Orleans, LA, USA, 9–13 December 2013; ACM: New York, NY, USA, 2013; pp. 269–278. [Google Scholar] [CrossRef]
  6. Kim, B.; Kim, M. REO: Revisiting Erase Operation for Improving Lifetime and Performance of Modern NAND Flash-Based SSDs. Electronics 2025, 14, 738. [Google Scholar] [CrossRef]
  7. Chen, F.; Chen, B.; Lin, H.; Kong, Y.; Liu, X.; Zhan, X.; Chen, J. Temperature Impacts on Endurance and Read Disturbs in Charge-Trap 3D NAND Flash Memories. Micromachines 2021, 12, 1152. [Google Scholar] [CrossRef] [PubMed]
  8. Meza, J.; Wu, Q.; Kumar, S.; Mutlu, O. A Large-Scale Study of Flash Memory Failures in the Field. In Proceedings of the 2015 ACM SIGMETRICS International Conference on Measurement and Modeling of Computer Systems, Portland, OR, USA, 15–19 June 2015; ACM: New York, NY, USA, 2015; pp. 177–190. [Google Scholar] [CrossRef]
  9. Alter, J.; Xue, J.; Dimnaku, A.; Smirni, E. SSD Failures in the Field: Symptoms, Causes, and Prediction Models. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC ’19), Denver, CO, USA, 17–22 November 2019; ACM: New York, NY, USA, 2019. [Google Scholar] [CrossRef]
  10. Narayanan, I.; Wang, D.; Jeon, M.; Sharma, B.; Caulfield, L.; Sivasubramaniam, A.; Cutler, B.; Liu, J.; Khessib, B.; Vaid, K. SSD Failures in Datacenters: What? When? and Why? In Proceedings of the 9th ACM International Systems and Storage Conference (SYSTOR ’16), Haifa, Israel, 6–8 June 2016; ACM: New York, NY, USA, 2016. [Google Scholar] [CrossRef]
  11. Kumar, M. Solid State Drive Forensics Analysis: Challenges and Recommendations. Concurr. Comput. Pract. Exp. 2021, 33, e6442. [Google Scholar] [CrossRef]
  12. Zhetpisbayeva, A.; Shayea, I.; Kozhakhmet, Z.; Alibek, A.; Nyssanov, N.; Baibussinov, A. The Effect of TRIM Function on Data Recovery from SSD Solid-State Drives. In Proceedings of the 29th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD 2025-Summer), Busan, Republic of Korea, 25 June 2025; IEEE: Piscataway, NJ, USA, 2025; pp. 151–156. [Google Scholar] [CrossRef]
  13. Pranoto, W.; Riadi, I.; Prayudi, Y. Live Forensics Method for Acquisition on the Solid State Drive (SSD) NVMe TRIM Function. Kinet. Game Technol. Inf. Syst. Comput. Netw. Comput. Electron. Control 2020, 5, 129–138. [Google Scholar] [CrossRef]
  14. Valença, G.W.M.; Pereira, F.L.F.; Brito, F.T.; de Farias, V.A.E.; Machado, J.C. Health Levels Modeling for SSD Failure Prediction. In Proceedings of the 39th Brazilian Symposium on Data Bases (SBBD), Florianopolis, SC, Brazil, 14–17 October 2024; pp. 764–770. [Google Scholar] [CrossRef]
  15. Pinciroli, R.; Yang, L.; Alter, J.; Smirni, E. Machine Learning Models for SSD and HDD Reliability Prediction. In Proceedings of the 2022 Annual Reliability and Maintainability Symposium (RAMS), Tucson, AZ, USA, 24–27 January 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 1–7. [Google Scholar] [CrossRef]
  16. Wang, Y.; Dong, X.; Zhang, X.; Wang, L. Measurement and Analysis of SSD Reliability Data Based on Accelerated Endurance Test. Electronics 2019, 8, 1357. [Google Scholar] [CrossRef]
  17. Chakraborttii, C.; Tiwari, D. Failure Prediction in Cloud-Based Storage Systems: A Survey. ACM Trans. Storage 2026. [Google Scholar] [CrossRef]
  18. Luković, V.; Jovanović, Ž.; Đurašević Pešović, S.; Pešović, U.; Đorđević, B. Solid-State Drive Failure Prediction Using Anomaly Detection. Electronics 2025, 14, 1433. [Google Scholar] [CrossRef]
  19. Ae, J.; Hong, Y. Efficient Garbage Collection Algorithm for Low Latency SSD. Electronics 2022, 11, 1084. [Google Scholar] [CrossRef]
  20. Zhang, Y.; Zhou, K.; Huang, P.; Wang, H.; Hu, J.; Wang, Y.; Ji, Y.; Cheng, B. A Machine Learning Based Write Policy for SSD Cache in Cloud Block Storage. In Proceedings of the Design, Automation & Test in Europe Conference & Exhibition (DATE), Grenoble, France, 9–13 March 2020; pp. 1279–1282. [Google Scholar] [CrossRef]
  21. Pallivalappil, A.S.; Jagadeesha, S.N. SSD DiScore: A Scoring Method for SSD’s Data Integrity Validation Using Different SMART Attributes in the Digital Forensics Process. ICTACT J. Commun. Technol. 2024, 15, 3126–3131. [Google Scholar] [CrossRef]
  22. Linux Hardware Project. SMART Database: Smartctl Reports Collected from Linux Users. GitHub Repository. Available online: https://github.com/linuxhw/SMART (accessed on 3 January 2026).
Figure 1. Conceptual relationship between NAND degradation stages and probability of data recovery.
Figure 1. Conceptual relationship between NAND degradation stages and probability of data recovery.
Symmetry 18 01136 g001
Figure 2. Proposed intelligent diagnostic system for assessing the suitability of NAND memory.
Figure 2. Proposed intelligent diagnostic system for assessing the suitability of NAND memory.
Symmetry 18 01136 g002
Figure 3. Machine learning-based assessment of SSD recovery feasibility using NAND health and controller-related factors.
Figure 3. Machine learning-based assessment of SSD recovery feasibility using NAND health and controller-related factors.
Symmetry 18 01136 g003
Figure 4. User interface of the proposed SSD diagnostic system for submitting SMART or NVMe telemetry extracted using the smartctl utility.
Figure 4. User interface of the proposed SSD diagnostic system for submitting SMART or NVMe telemetry extracted using the smartctl utility.
Symmetry 18 01136 g004
Figure 5. Example of the diagnostic output generated by the proposed system for a healthy SSD. The interface shows subsystem-level assessment of NAND memory and controller condition, together with the machine learning-based health evaluation produced by the Isolation Forest model.
Figure 5. Example of the diagnostic output generated by the proposed system for a healthy SSD. The interface shows subsystem-level assessment of NAND memory and controller condition, together with the machine learning-based health evaluation produced by the Isolation Forest model.
Symmetry 18 01136 g005
Figure 6. Recovery-oriented output of the proposed SSD diagnostic system for a case with active TRIM zeroed behavior. The interface indicates that the current data remained physically intact, whereas previously deleted files were unlikely to be recoverable.
Figure 6. Recovery-oriented output of the proposed SSD diagnostic system for a case with active TRIM zeroed behavior. The interface indicates that the current data remained physically intact, whereas previously deleted files were unlikely to be recoverable.
Symmetry 18 01136 g006
Figure 7. Results of testing a faulty SSD drive using the proposed diagnostic system. The machine learning module detected anomalous behavior, and an analysis of the controller’s state identified error log entries and unsafe shutdowns as key indicators of controller instability.
Figure 7. Results of testing a faulty SSD drive using the proposed diagnostic system. The machine learning module detected anomalous behavior, and an analysis of the controller’s state identified error log entries and unsafe shutdowns as key indicators of controller instability.
Symmetry 18 01136 g007
Table 1. Limitations of existing SSD methods in forensic data recovery evaluation.
Table 1. Limitations of existing SSD methods in forensic data recovery evaluation.
Method or ApproachAdvantagesLimitations
1-class anomaly detectionDetects anomalous SSD behavior and works well with imbalanced data.Focuses on anomaly or failure detection, not on NAND recovery capability; does not address TRIM, encryption, or controller-related recovery limits.
Isolation ForestEffective for unlabeled anomaly detection in multidimensional SSD telemetry.Identifies anomalies rather than forensic recoverability; does not explicitly evaluate NAND condition, TRIM, encryption, or controller health.
Supervised classification models (Random forest, neural networks, 2-class SVM)Learns patterns from labeled telemetry and separates healthy and failed SSD states.Requires labeled failure data and mainly targets failure prediction, not NAND health assessment or recovery feasibility.
Feature selection methodsImproves accuracy, reduces complexity, and highlights informative indicators.Useful only as a preprocessing step; does not determine whether data remain accessible or recoverable.
Threshold-based diagnostic rulesSimple and interpretable.Often too rigid for different SSD models and do not capture combined effects of NAND degradation, controller instability, TRIM, or encryption.
Table 2. SMART and NVMe diagnostic indicators used for NAND flash condition assessment.
Table 2. SMART and NVMe diagnostic indicators used for NAND flash condition assessment.
IndicatorSource (SMART or NVMe)Relevance to NAND Viability
Percentage Used or Wear LevelNVMe SMART log or SATA SMARTProgram-erase cycles consumed and overall NAND memory wear. High values indicate serious deterioration.
Media and Data Integrity ErrorsNVMe SMART logReflects read and write errors. An increase in the number of errors indicates wear on memory cells and reduced data availability.
Uncorrectable Error CountSMART attributeIndicates errors that cannot be corrected by ECC mechanisms.
Available Spare BlocksNVMe SMART logShows the remaining reserve of spare memory blocks used to replace failed cells. Low spare block availability indicates critical NAND memory wear.
Program Fail CountSMART attributeReflects failures that occur during the programming process. Frequent failures indicate memory cell instability.
Erase Fail CountSMART attributeIndicates failed erase operations due to NAND cell wear. High values indicate cell is approaching end of life.
TemperatureSMART or NVMe logElevated temperatures accelerate charge leakage and oxide degradation, increasing the likelihood of NAND memory failure and data loss.
Table 3. Composition of the SSD dataset used in this study.
Table 3. Composition of the SSD dataset used in this study.
Dataset ComponentSSD TypeNumber of SamplesPurpose
Healthy SMART recordsSATA SSD56,482Used as healthy reference data for SATA SSD behavior.
Healthy SMART and NVMe recordsNVMe SSD82,665Used as reference data to evaluate the performance of NVMe SSDs.
Total healthy recordsSATA + NVMe139,147Used to construct the one-class learning baseline of normal SSD health.
Synthetic training samplesSATA SSD20,000Created using properties of healthy SATA SSD records for controlled one-class training.
Synthetic training samplesNVMe SSD20,000Generated from statistical properties of healthy NVMe SSD records for controlled model training.
Recovery scenariosMixed SSD cases30Used to assess the possibility of recovery in conditions of possible, partial, and impossible recovery.
Table 4. Predicted recovery feasibility under different NAND flash and controller conditions.
Table 4. Predicted recovery feasibility under different NAND flash and controller conditions.
NAND Health ConditionController StatusTRIM StatusRecovery ProbabilityRecommended Recovery Method
NAND AliveStableDisabledHighLogical recovery/filesystem analysis
NAND AliveStableEnabledModerateLogical recovery with TRIM-aware analysis
NAND DegradingStableDisabledModerateChip-off/NAND dump analysis
NAND DegradingUnstableDisabledLowAdvanced NAND reconstruction
NAND Critical or DeadStableDisabledExtremely lowLimited recovery attempts
NAND Critical or DeadFailedAnyNear zeroRecovery technically impossible
Table 5. Configuration details of the Isolation Forest model used in this study.
Table 5. Configuration details of the Isolation Forest model used in this study.
Configuration ItemDescription or Value
Machine learning algorithmIsolation Forest
Learning strategyOne-class anomaly detection
Training dataHealthy SSD telemetry samples only
SSD-specific modelsSeparate models were trained for SATA and NVMe SSDs
SATA input features10 features: temperature, reallocated sectors, power-on hours, wear level, program fail, erasure fail, uncorrectable errors, command timeout, pending sectors, and CRC errors
NVMe input features7 features: temperature, available spare, percentage used, media errors, error log entries, unsafe shutdowns, and power-on hours
Feature normalizationStandardScaler and z-score normalization
Number of estimators200
Contamination factor0.05
Random state42
Model outputRaw anomaly score, binary anomaly label, normalized health score, and final machine learning verdict
Health score range0–100
Health interpretationHealthy: H M L 70 ; warning: 40 H M L < 70 ; anomaly: H M L < 40
Table 6. Evaluation metrics used in the proposed SSD recovery assessment framework.
Table 6. Evaluation metrics used in the proposed SSD recovery assessment framework.
MetricPurpose
Normalized ML health score ( H M L )Measures how closely the SSD telemetry matches the learned healthy SSD profile on a 0–100 scale.
Isolation Forest anomaly verdictClassifies the SSD telemetry as normal or anomalous based on the deviation from healthy behavior.
NAND health scoreEvaluates the physical condition of NAND flash memory using wear, error, spare block, and temperature indicators.
Controller health scoreEvaluates controller stability using error logs, command timeouts, CRC errors, unsafe shutdowns, and warning indicators.
Recovery feasibility classProvides the final forensic interpretation: possible recovery, partial recovery, or impossible recovery.
Table 7. Experimental results of SSD diagnostics and data recovery feasibility assessment.
Table 7. Experimental results of SSD diagnostics and data recovery feasibility assessment.
SSD ModelControllerNANDEncryptionTRIM FunctionRecovery
Samsung 980Alive, 90%AliveNoNoPossible
Samsung 970 EVO PlusAlive, 88%AliveNoNoPossible
Samsung 870 EVOAlive, 87%AliveNoNoPossible
Samsung 860 EVOAlive, 82%AliveNoNoPossible
Crucial MX500Alive, 80%AliveNoNoPossible
WD Blue SN570Alive, 79%AliveNoNoPossible
WD Blue SN550Alive, 76%AliveNoNoPossible
Kingston A2000Alive, 73%AliveNoNoPossible
SK hynix Gold P31Alive, 89%AliveNoNoPossible
TeamGroup MP34Alive, 75%AliveNoNoPossible
Samsung 980 PROAlive, 85%AliveActiveYesPartially possible
Samsung 990 PROAlive, 92%AliveActiveYesPartially possible
Crucial P5 PlusAlive, 78%AliveActiveYesPartially possible
WD Black SN850XAlive, 86%AliveActiveYesPartially possible
WD Black SN850Alive, 83%AliveActiveYesPartially possible
Kingston KC3000Alive, 84%AliveActiveYesPartially possible
Kingston FURY RenegadeAlive, 81%AliveActiveYesPartially possible
SK hynix Platinum P41Alive, 91%AliveActiveYesPartially possible
Sabrent Rocket 4 PlusAlive, 83%AliveActiveYesPartially possible
Seagate FireCuda 530Alive, 85%AliveActiveYesPartially possible
Crucial P3 PlusFailed, 20%CriticalActiveYesImpossible
Kingston A400Failed, 18%CriticalNoYesImpossible
Intel 660pFailed, 15%CriticalActiveYesImpossible
Intel 670pFailed, 22%CriticalActiveYesImpossible
ADATA XPG SX8200 ProFailed, 25%CriticalNoYesImpossible
Lexar NM790Failed, 17%CriticalActiveYesImpossible
Corsair MP600 PRO LPXFailed, 19%CriticalActiveYesImpossible
Solidigm P44 ProFailed, 21%CriticalActiveYesImpossible
Intel 760pFailed, 16%CriticalActiveYesImpossible
Faulty SSD sampleFailed, 18.2%CriticalUnknownYesImpossible
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Rzayeva, L.; Zhetpisbayeva, A.; Zhakenov, M.; Abdykassym, A. A Hybrid Machine Learning Method for Secure Assessment of NAND Flash Health and SSD Data Recovery Feasibility. Symmetry 2026, 18, 1136. https://doi.org/10.3390/sym18071136

AMA Style

Rzayeva L, Zhetpisbayeva A, Zhakenov M, Abdykassym A. A Hybrid Machine Learning Method for Secure Assessment of NAND Flash Health and SSD Data Recovery Feasibility. Symmetry. 2026; 18(7):1136. https://doi.org/10.3390/sym18071136

Chicago/Turabian Style

Rzayeva, Leila, Aliya Zhetpisbayeva, Murat Zhakenov, and Altynbay Abdykassym. 2026. "A Hybrid Machine Learning Method for Secure Assessment of NAND Flash Health and SSD Data Recovery Feasibility" Symmetry 18, no. 7: 1136. https://doi.org/10.3390/sym18071136

APA Style

Rzayeva, L., Zhetpisbayeva, A., Zhakenov, M., & Abdykassym, A. (2026). A Hybrid Machine Learning Method for Secure Assessment of NAND Flash Health and SSD Data Recovery Feasibility. Symmetry, 18(7), 1136. https://doi.org/10.3390/sym18071136

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop