# Integrating a Convolutional Neural Network and MultiHead Attention with Long Short-Term Memory for Real-Time Control During Drying: A Case Study of Yuba (Tofu Skin)

**Authors:** Jiale Guo, Jie Wu, Lixuan Zhang, Ziqin Peng, Lixuan Wei, Wuxia Li, Jingzhi Shen, Yanhong Liu

PMC · DOI: 10.3390/foods15020245 · Foods · 2026-01-09

## TL;DR

This study uses a new AI model to improve drying of yuba, reducing time while maintaining quality, with potential for other food applications.

## Contribution

A novel CNN-LSTM-MHA network is introduced for intelligent drying control, improving prediction accuracy and product quality.

## Key findings

- The CNN-LSTM-MHA model achieved high prediction accuracy (R2: 0.9855–0.9999) for drying properties of yuba.
- Intelligent drying reduced drying time and improved yuba's texture, color, and nutritional content compared to fixed-temperature drying.

## Abstract

Achieving comprehensive improvements in the drying rate (DR) and the quality after drying of agricultural products is a major goal in the field of drying. To further shorten the drying time while improving product quality, this study introduced a Convolutional Neural Network (CNN) and MultiHead Attention (MHA) to enhance the prediction accuracy of the Long Short-Term Memory (LSTM) network regarding the properties of dried samples. These properties included DR, shrinkage rate (SR), and total color difference (ΔE). The CNN-LSTM-MHA network was proposed, developing a novel hot-air drying (HAD) scenario utilizing an intelligent temperature control system based on the real dynamics of material properties. The results of drying experiments with temperature-sensitive yuba showed that the CNN-LSTM-MHA network’s predictive accuracy was better than that of other networks, as evidenced by its coefficient of determination (R2: 0.9855–0.9999), root mean square error (RMSE: 0.0001–0.0099), and mean absolute error (MAE: 0.0001–0.0120). Comparative analysis with fixed-temperature drying indicated that CNN-LSTM-MHA-controlled drying significantly reduced drying time and enhanced the SR, color, rehydration ratio (RR), texture, protein content, fat content, and microstructure of yuba. Overall, the findings highlight the potential of CNN-LSTM-MHA-based intelligent drying as a viable strategy for yuba stick processing, providing insights for other food drying applications.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12840027/full.md

## Figures

14 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12840027/full.md

## References

46 references — full list in the complete paper: https://tomesphere.com/paper/PMC12840027/full.md

---
Source: https://tomesphere.com/paper/PMC12840027