Predicting Steam Processing Degree of Prepared Radix Rehmanniae (Shudihuang) Using Machine Learning

Qinghua Han, Keyu Zhang, Fangfang Yu, Chen Ye, Jiawen Song, Zhijia Xu, Yichen Zhang, Ruidan Su, Siyang FanPharmaceutical 2025 · DOI

This research paper, published in Pharmaceutical Fronts, presents a data-driven approach to a centuries-old problem in Traditional Chinese Medicine (TCM): determining the "doneness" of processed herbs. By combining untargeted metabolomics with Random Forest machine learning, the authors created a model that can precisely identify the steaming degree of Radix Rehmanniae, bridging the gap between ancient tradition and modern quality control.

TL;DR

Researchers developed a Random Forest machine learning model that uses chemical "fingerprints" to predict the exact steaming duration of Radix Rehmanniae with 100% accuracy in blind tests. The study reveals that while "nine cycles" of steaming is the traditional gold standard, the herb's chemical profile actually plateaus after 3–5 cycles—a finding that validates ancient Tang Dynasty texts and exposes significant under-processing in modern commercial samples.

What Problem Does This Paper Address?

Radix Rehmanniae (RR), or "Dihuang," is a staple of TCM. To transform it from its raw state into "Prepared" RR (PRR or Shudihuang), it undergoes labor-intensive cycles of steaming and drying (SD). Traditionally, "nine cycles" (SD9) is considered the pinnacle of quality.

However, modern manufacturing faces a dilemma: there is no objective, standardized way to measure the "processing degree." To save costs, some manufacturers reduce steaming times, leading to inconsistent quality. Existing statistical methods can distinguish between raw and prepared samples, but they struggle to identify the exact stage of processing, especially in heavily steamed samples where chemical changes become subtle.

Methods

The researchers employed a multimodal analytical approach to capture both the physical and chemical evolution of the herb:

  1. Sample Preparation: They prepared 80 lab-controlled samples ranging from 1 to 9 SD cycles, both with and without yellow rice wine (a traditional processing excipient).
  2. Physical Assessment: Color and gloss were measured using spectrophotometry and digital image analysis (brightness values).
  3. Chemical Profiling:
    • Targeted: HPLC was used to quantify specific sugars (sucrose, raffinose, stachyose) and iridoids (catalpol, rehmannioside D).
  4. Untargeted: LC-QTOF-MS (Liquid Chromatography-Quadrupole Time-of-Flight Mass Spectrometry) generated a massive dataset of small molecules (over 15,000 MS peaks).
  5. Machine Learning: They compared four algorithms—Logistic Regression (LR), Decision Tree (DT), Support Vector Machine (SVM), and Random Forest (RF). They tested these on two datasets: one containing all MS features and one filtered for "Variable Importance in Projection" (VIP) scores.

Datasets

  • Internal Dataset: 80 lab-prepared samples used for training (80%) and testing (20%).
  • Blind Verification Set: 15 samples with unknown processing degrees to validate model robustness.
  • Commercial Dataset: 10 samples purchased from various markets to evaluate real-world processing standards.

Key Insights and Ideas

  • The "3–5 Cycle" Plateau: Both physical (color/gloss) and chemical (sugar/iridoid) changes are most dramatic in the first few cycles. After 3–5 cycles, the profiles stabilize. This suggests that the "nine cycles" tradition might be more about ritual or safety margins than continuous chemical transformation.
  • Validating Ancient Wisdom: Interestingly, the data supports the QianJinYiFang (a Tang Dynasty text from A.D. 682), which claimed that 3–5 cycles with rice wine could match the quality of the more ancient 9-cycle method.
  • Random Forest Superiority: While SVM and LR performed decently, the Random Forest model was uniquely capable of handling the high-dimensional, non-linear nature of the metabolomic data, particularly for distinguishing between the later, more subtle stages of steaming.
  • Market Reality Check: When the model was applied to commercial samples, it revealed that most were only processed to a degree equivalent to 1–2 cycles (0–24 hours of steaming), highlighting a significant gap between traditional standards and market reality.

Key Results

  • Model Accuracy: The Random Forest (RF) model achieved an accuracy of 100% in blind verification for identifying steaming time (ranging from 0 to 78 hours).
  • Error Rate: The model achieved an error rate of 0, a significant improvement over previous literature which reported an 8% error rate for much shorter steaming ranges (0–15 hours).
  • Feature Selection: Using the "ALL-RF" model (incorporating all 15,847 MS peaks) provided the highest precision, though the "VIP-RF" model (using the top 80 features) was also highly effective and more computationally efficient.

Limitations and Future Work

The authors acknowledge that while they have mapped the chemical changes, the pharmacological equivalence needs further study. Does the chemical plateau at 5 cycles truly mean the biological effect is identical to 9 cycles?

Future work could involve:

  • Expanding the model to include other TCM herbs that undergo complex processing (e.g., Panax notoginseng).
  • Correlating these chemical "steaming degrees" with clinical efficacy data.
  • Developing more portable versions of these tools for on-site factory inspections.

Summary updated

Abstract

The classic way for the prepared Radix Rehmanniae (PRR) preparation, “steaming and drying (SD) for several cycles (generally nine times, SD9),” is the golden standard method from the traditional processing theory. However, the controversy of “optimal SD cycle” still exists, and there has not been an efficient way to identify the processing degree of PRRs. The study aims to determine the optimal processing conditions to make PRR approaching the SD9 quality and establish validated models to identify the processing degree of PRR unknowns. PPR-SD1–9 samples were prepared under 1 to 9 SD cycles. A spectrophotometer and a camera were used for color and gloss assessment. The chemical changes during processing were detected by high-performance liquid chromatography and liquid chromatography coupled with mass spectroscopic (LC-MS) technique. Statistical analysis of the LC-MSE data using principal component analysis showed separation of PRRs with different processing degrees, which led to the use of random forest (RF) for model training. The changes in both appearance and chemicals were obvious before, but slight after 3–5 SD cycles. Two predictors based on the RF classifier were proven to be valid for the identification of steaming time in a wide range (0–78 hours) and with an error rate of 0 in blind verification. Ten commercial samples were then identified as 1–2 SD cycle-processed PRRs. Our results, of which processing 3 to 5 times can get PRR-SD9, are aligned with the past documented knowledge in QianJinYiFang. Our models can be good tools for quality control in PRR manufacture and supervision.
BibTeX
@inproceedings{han2025predicting,
  author = {Qinghua Han and Keyu Zhang and Fangfang Yu and Chen Ye and Jiawen Song and Zhijia Xu and Yichen Zhang and Ruidan Su and Siyang Fan},
  title = {{Predicting Steam Processing Degree of Prepared Radix Rehmanniae (Shudihuang) Using Machine Learning}},
  booktitle = {Pharmaceutical},
  year = {2025},
  doi = {10.1055/a-2705-8654},
}
Figure