Manuscript Offprint
arXiv:2610.39420Energy-Efficient Memristor Accelerator for Depression Detection with a CNN-LSTM Hybrid Model
Jiaqi Liu , Yun Yu , Fenglin Xi , Shenjian Zhang , Shenghao Liao , Wenze Zheng , Mingxuan Hu , Yangbin Chen , Xinhong Chen , Chun Zhao
School of Advanced Technology, Xi'an Jiaotong-Liverpool University, Suzhou, China
HC Cloudminds Microelectronics Technology Co., Limited
Email: Jiaqi.Liu03@xjtlu.edu.cn
These authors contributed equally to this work and share first authorship.
Corresponding authors: Yangbin Chen, Xinhong Chen, and Chun Zhao.
Abstract—Early screening of depression requires efficient analysis of audio and speech data, while conventional CPU and GPU platforms incur high latency and energy consumption for CNN-LSTM inference. To address this challenge, we propose a unified resistive RAM (ReRAM) processing-in-memory accelerator for a CNN-LSTM attention workload. The architecture integrates convolutional, recurrent, attention, and multi-layer perceptron (MLP) stages within a crossbar-based framework, reducing intermediate data movement between spatial and temporal branches. CNN operations are mapped through im2col-based vectorization, while LSTM gate computations are reformulated using concatenated input-state vectors and mapped onto ReRAM crossbars. We further provide module-level workload breakdown, parameter sensitivity analysis, and matched-workload context against representative ReRAM/PIM accelerators. Experimental results show 32.1 times and 9.3 times latency reduction over CPU and GPU baselines, respectively, with about 160 times and 140 times energy reduction. Simplified weight-perturbation tests characterize ASLF sensitivity in an untrained pipeline with synthetic spectrogram-shaped inputs. Task-level prediction accuracy and robustness remain to be evaluated.
Index Terms—ReRAM accelerator, processing-in-memory, CNN-LSTM, depression detection, device nonideality.
I. INTRODUCTION
Depression is a major global health issue, affecting a large population worldwide and often remaining undiagnosed until severe stages. Early screening is important because timely intervention can improve treatment outcomes and reduce long-term societal and economic burdens. Recently, deep neural network (DNN)-based methods have shown strong potential for automatic depression detection, providing objective and scalable alternatives to traditional clinical assessment [1].
Hybrid models combining convolutional neural networks (CNNs) and long short-term memory networks (LSTMs) are particularly suitable for speech-based depression detection. CNNs extract local time–frequency patterns from spectrograms, while LSTMs capture temporal dependencies across speech frames. However, such CNN–LSTM pipelines are computationally expensive: convolutional layers require intensive matrix operations, and LSTM gates must be evaluated sequentially across time steps. Executing these workloads on CPUs and GPUs therefore incurs high latency and energy consumption, limiting real-time deployment in resource-constrained scenarios [2].
Processing-in-memory (PIM) architectures based on resistive RAM (ReRAM) provide an attractive solution by executing matrix-vector multiplications close to where weights are stored. Prior ReRAM accelerators have demonstrated high efficiency for neural-network inference, including CNN-oriented, pipelined, and recurrent workloads [3]–[7]. Nevertheless, many existing designs mainly target individual workload types. A speech-based CNN–LSTM attention model requires not only convolutional and recurrent computation, but also feature transfer, attention fusion, and final MLP processing within a unified dataflow.
To address this need, we propose a unified ReRAM-based accelerator for a CNN–LSTM attention pipeline in depression detection. The architecture uses heterogeneous CNN and LSTM tiles connected through a hierarchical network-on-chip (NoC), with fixed-weight fully connected (FC) operations mapped onto ReRAM crossbars and input-dependent attention handled by on-chip digital vector units and special function units (SFUs) in the evaluated dataflow. The design supports spatial feature extraction, temporal modeling, audio segment-level feature (ASLF) representation extraction, and final prediction within one ReRAM-based framework.
The main contributions are summarized as follows:
• We propose a unified ReRAM-based accelerator for hybrid CNN–LSTM inference, integrating CNN tiles, LSTM tiles, NoC-based feature transfer, attention fusion, and final MLP processing.
• We reformulate CNN, LSTM, and FC operations for ReRAM crossbar execution, while input-dependent attention is handled by on-chip digital vector units and nonlinear operations by SFUs.
• We provide module-level workload breakdown, parameter sensitivity analysis, and matched-workload context with representative ReRAM/PIM accelerators, including ISAAC, ERA-LSTM, and PUMA.
• We characterize ASLF-level sensitivity to simplified weight variation and drift in an untrained pipeline with synthetic inputs, without inferring task-level prediction robustness.
A. CNN-LSTM Attention Workload
The target workload is adapted from the audio spatio-temporal attention (STA) network of Niu et al. [1]. It combines the spectrogram-based CNN/LSTM feature-extraction and attention structure with the regression head defined below. The input spectrogram has 129 frequency bins and 64 temporal frames. As shown in Fig. 1, the model extracts spatial and temporal depression-related cues through two complementary processing paths.

Fig. 1. A CNN-LSTM attention pipeline for ASLF representation extraction and BDI-II score prediction.
CNN path. The CNN branch extracts local time–frequency patterns from the input spectrogram. Two convolutional layers with kernels and stride are applied, followed by a fully connected layer with 64 neurons. The CNN branch produces a 64-dimensional spatial feature vector:
Here, denotes the flattened CNN feature map supplied to the fully connected layer.
LSTM path. The spectrogram columns are treated as a sequence of 64 time steps, where each time step is represented by a 129-dimensional input vector. The LSTM branch captures temporal dependencies across the speech segment and generates a sequence of hidden states:
Attention fusion. The CNN spatial feature is used to attend to the temporal features generated by the LSTM branch. The attention score is computed by a matrix–vector multiplication between the LSTM feature matrix and the CNN feature vector:
The attention weights are obtained by a softmax operation:
The fused representation is then computed by weighted aggregation over the temporal features:
ASLF representation and final prediction. The fused representation is processed by a three-layer fully connected network. The first two FC layers generate a 64-dimensional audio segment-level feature (ASLF), while the last FC layer produces the final scalar prediction:
In this work, ASLF denotes the 64-dimensional output of FC2, followed by a scalar linear FC3 regression head. This placement and prediction head adapt the original audio STA network, in which ASLF is extracted after a third 64-neuron FC layer [1]. The accelerator evaluation covers the CNN, LSTM, attention, and final MLP stages, while the non-ideality analysis is reported at the ASLF representation level rather than as final task-level BDI-II prediction accuracy under device perturbations.
Mapping this algorithm to the proposed accelerator is efficient because the dominant operations, including convolution, LSTM gate computation, attention score generation, weighted aggregation, and fully connected layers, can all be formulated as matrix–vector multiplications (MVMs). The fixed-weight CNN, LSTM, and FC operations are mapped to ReRAM crossbar arrays [3]–[5]. Input-dependent attention MVMs are handled by on-chip digital vector units in the evaluated dataflow. Nonlinear operations such as ReLU, sigmoid, tanh, and softmax are handled by SFUs.
B. MVM Reformulation for ReRAM Mapping
ReRAM crossbar arrays are well suited for MVM operations [3]–[5]. When input activations are applied as voltages through DACs and weights are stored as cell conductances, the output current on each bitline naturally performs analog multiply–accumulate operations:
where is the input voltage and is the programmed conductance of the ReRAM cell. The output currents are then digitized by ADCs and processed by peripheral digital units.

Fig. 2. Structure of an LSTM cell with gated operations.
For convolutional layers, the input feature maps are transformed into vectors using the image-to-column (im2col) method [5], [6]. The convolution kernels are mapped as cross-bar conductances, and each input vector is applied through DACs. The resulting bitline currents are digitized by ADCs and accumulated by peripheral shift-and-add units to generate output feature maps.
Fig. 2 illustrates the gated computation structure of an LSTM cell. For LSTM layers, each gate is originally computed as:
where is the input vector at time step , is the previous hidden state, and denotes the corresponding nonlinear activation. Following the common ReRAM-based LSTM mapping strategy [7], the input vector and the previous hidden state are concatenated:
and the input and recurrent weight matrices are concatenated as:
The gate computation can then be reformulated as a single MVM:
This reformulation allows LSTM gate operations to be mapped efficiently onto ReRAM crossbars. The hidden and cell states are stored in local buffers and reused across time steps, while sigmoid and tanh operations are implemented using SFUs.
The attention fusion stage is also MVM-dominated. The attention score and weighted aggregation are computed by on-chip digital vector units in the evaluated dataflow. Because contains input-dependent activations, this avoids programming a new attention matrix into ReRAM for each inference. The softmax function is handled by SFUs. The fixed weights of the fully connected layers for ASLF representation extraction and final prediction are mapped onto ReRAM crossbars. Module-specific dataflow control coordinates these analog and digital operations.
III. ARCHITECTURE DESIGN
In this section, we present the proposed ReRAM-based accelerator architecture for the CNN–LSTM attention workload. We first describe the overall architecture and hybrid dataflow, then introduce the micro-architectures of CNN and LSTM tiles, and finally explain the mapping of attention and fully connected (FC) operations.
A. Overall Architecture and Hybrid Dataflow
Fig. 3 illustrates the overall architecture of the proposed depression detection accelerator. The system is composed of heterogeneous CNN tiles and LSTM tiles connected through a hierarchical network-on-chip (NoC). CNN tiles are responsible for convolutional and fully connected computations in the spatial feature extraction path, while LSTM tiles accelerate recurrent computations for temporal modeling. The extracted CNN spatial feature and LSTM temporal features are then transferred through the NoC to the attention/FC processing stage for ASLF representation extraction and final prediction.
Each tile is built around ReRAM-based vector–matrix multiplication (VMM) units, together with DACs, ADCs, local eDRAM buffers, routing logic, pipeline controllers, and special function units (SFUs). This organization follows the general ReRAM processing-in-memory principle, where the dominant multiply–accumulate operations are executed close to where the weights are stored, thereby reducing memory access and data movement overhead [3]–[5].
The proposed architecture is designed for the hybrid CNN–LSTM workload instead of treating CNN and LSTM as two isolated accelerator pipelines. The input spectrogram is processed in parallel by the CNN and LSTM branches. The CNN branch generates a compact spatial feature vector , while the LSTM branch produces a temporal feature matrix . These intermediate features are transferred through the NoC to the attention/FC processing stage, enabling on-chip fusion between spatial and temporal representations. By coordinating feature extraction and fusion within a unified architecture, the proposed design reduces intermediate data movement and supports the end-to-end CNN–LSTM inference flow more efficiently.
B. CNN and LSTM Tile Micro-architectures
The proposed accelerator employs two complementary tile types, namely CNN tiles and LSTM tiles. Both tile types share the same ReRAM-based VMM substrate, but adopt different datapath organizations according to the computation pattern of each branch.
CNN tile. As shown in Fig. 3(b), the CNN tile is optimized for convolutional and FC operations in the spatial feature extraction path. Input feature maps and intermediate activations are stored in local eDRAM buffers. For convolution, the input vector generation unit converts convolution windows into vectors using the image-to-column (im2col) method. These vectors are then applied to the DAC array and fed into the ReRAM VMM unit, where CNN kernels or FC weights are stored as cell conductances. The resulting

Fig. 3. Proposed ReRAM-based accelerator architecture for the CNN–LSTM attention workload. (a) System-level organization and NoC-based hybrid dataflow. (b) CNN tile micro-architecture. (c) LSTM tile micro-architecture.

Fig. 4. Attention/FC processing for ASLF representation extraction and final prediction.
analog outputs are digitized by the ADC array, and partial sums from multiple arrays or bit slices are combined by shift-and-add units. Finally, activation SFUs generate the output activations or feature maps. This design follows the common ReRAM-based convolution mapping strategy while adapting it to the spectrogram-based CNN branch used in the depression detection pipeline [5], [6].
LSTM tile. As shown in Fig. 3(c), the LSTM tile reuses the same ReRAM VMM primitive while incorporating additional recurrent-state storage and gating logic for temporal modeling. The local buffers store the current input vector , the previous hidden state , and the previous cell state . The concatenated input vector is applied through the DAC array, while the concatenated gate weight matrix is stored in the ReRAM crossbar arrays. In this way, the input-state and recurrent-state matrix multiplications of each gate can be merged into a single VMM operation [7]. The digitized outputs are then processed by sigmoid/tanh SFUs and element-wise units to compute gate activations, cell-state updates, and hidden-state updates. The updated states and are written back to the local buffers for reuse in the next time step.
Compared with a homogeneous tile organization, the proposed heterogeneous tile architecture allows CNN and LSTM computations to share the same ReRAM-based VMM substrate while preserving module-specific datapath optimizations. CNN tiles emphasize im2col vector generation, partial-sum accumulation, and activation post-processing, whereas LSTM tiles emphasize local recurrent-state buffering, element-wise state updates, and write-back across time steps.
C. Attention/FC Mapping and Data Transfer
After CNN and LSTM feature extraction, the CNN spatial feature and the LSTM temporal feature matrix are transferred through the NoC to the attention/FC processing stage, as illustrated in Fig. 3(a) and Fig. 4. The attention scores and weighted aggregation are computed by on-chip digital vector units, while softmax is handled by an SFU. This is the attention dataflow used in the module-level evaluation. It avoids per-inference ReRAM programming of the input-dependent matrix and keeps attention processing on chip.
The fused representation is further processed by the FC layers for ASLF representation extraction and final prediction. The FC weights are mapped onto ReRAM crossbars, and the ReLU activations are handled by SFUs, while the final linear layer produces the prediction output. The final prediction output is then written back to local buffers as the BDI-II score prediction for the adapted workload defined in Section II-A. By integrating CNN computation, LSTM computation, attention fusion, and FC processing within a unified NoC-connected architecture, the proposed design supports the hybrid CNN–LSTM dataflow more efficiently than treating the spatial and temporal branches as separate accelerator subsystems.
IV. EVALUATION
A. Experimental Setup and Baseline Comparison
Experimental setup: The proposed ReRAM-based CNN–LSTM accelerator is evaluated using architectural analytical modeling and design-space exploration (DSE). The logical architecture consists of 64 CNN tiles and 64 LSTM tiles interconnected via a hierarchical NoC, where each tile integrates crossbar arrays, ADC/DAC interfaces, eDRAM buffers, and peripheral processing units, following the dataflow described in Sections II and III [5]–[7].
We adopt the 129-bin, 64-frame spectrogram input used by the audio STA network of Niu et al. [1]. In that work, the 64-frame segment length was selected through experiments on the AVEC2013 and AVEC2014 development sets; it is adopted here as the target workload configuration.
Module-level workload breakdown: The logical model uses a spectrogram, 64 recurrent steps, 64-dimensional attention, a final MLP, and arrays. The architecture allocates 64 one-crossbar CNN tiles and 64 one-crossbar LSTM tiles. The model excludes bit slicing, multi-bit-cell expansion, programming, and physical ADC/DAC timing. CNN weights are replicated across the 64 CNN tiles for concurrent patch processing; programming and reconfiguration overheads are excluded. Attention comprises 8,192 MAC-equivalent operations: two digital vector/MVM-equivalent operations and one softmax/SFU operation. Because its operands are input-dependent activations, attention is handled by digital/SFU post-processing without per-inference ReRAM programming and contributes three normalized cycles.
TABLE I MODULE-LEVEL LOGICAL-MVM AND RERAM-ACTIVITY BREAKDOWN.
| Module | Activity | ||||
|---|---|---|---|---|---|
| MACs/eq. | Xbar ops | share | Cycles | ||
| Conv1 | 332,640 | 756 | 64.4% | 12 | 2.69% |
| Conv2 | 137,280 | 156 | 13.3% | 3 | 5.37% |
| CNN-FC | 19,968 | 3 | 0.26% | 1 | 40.63% |
| LSTM gates | 3,162,112 | 256 | 21.8% | 64 | 75.39% |
| Attention | 8,192 | N/A | N/A | 3 | N/A |
| Final MLP | 8,256 | 3 | 0.26% | 3 | 0.39–25.00% |
| Total/critical | 3,668,448 | 1,174 | 100% | 70 | N/A |
Note: Total latency is a critical path, not the sum of the row cycles. is mapped weight-cell fill, not chip-area utilization. Xbar activity share indicates ReRAM invocations, not physical or total-chip energy; attention digital/SFU energy is excluded.
The CNN branch requires 16 normalized cycles, whereas the 64-step recurrent path requires 64. Including attention and the final MLP gives
LSTM gates account for 86.2% of target MACs and form the sequential critical-path bottleneck; additional LSTM replicas cannot remove the 64-step dependency of one sequence. Conv1 instead causes 756 of the 1,174 ReRAM invocations (64.4%), producing the largest crossbar/peripheral access pressure. Conv1 and Conv2 have low mapped-cell fill, while the fused LSTM matrix reaches 75.39%.
CPU/GPU baselines: Fig. 5 compares the latency and energy consumption of the proposed design with CPU and GPU baselines. The proposed accelerator achieves 0.0574 ms latency, compared with 1.84 ms on CPU and 0.532 ms on GPU, corresponding to approximately and speedup, respectively. In terms of energy consumption, the proposed design consumes 1.72 mJ, while the CPU and GPU baselines consume 275 mJ and 240 mJ, respectively. This corresponds to about and energy reduction over CPU and GPU. These results indicate that the proposed architecture effectively leverages in-memory computing to achieve both low latency and high energy efficiency, making it well suited for real-time inference workloads.
Matched-workload ReRAM/PIM baselines: Directly reusing absolute results from prior accelerators would mix workloads, precision, resource organization, timing scope, and peripheral assumptions. Table II therefore provides mapping context under explicitly different model scopes. The proposed-design rows use the logical mapping and normalized cycles of Table I; the other rows report scoped analytical results or native capabilities.

Fig. 5. Latency and energy comparison of the proposed ReRAM-based accelerator with CPU and GPU baselines.
TABLE II MATCHED-WORKLOAD RESOURCE AND TIMING CONTEXT FOR REPRESENTATIVE RERAM ACCELERATORS.
| Branch/design | Resident mapping | Timing or events | Scope/limitation |
|---|---|---|---|
| Proposed CNN | 64 single-crossbar CNN tiles; logical array blocks per weight replica (Conv1/Conv2/FC): 1/4/3. | 16 normalized cycles: . | Logical mapping; bit slicing and physical converter timing excluded. |
| ISAAC first [5] | IMA/replica: 1/1/2; replicas: 8/2/1 (12 IMAs). | 185.6 μs first sample; II = 152.0 μs. | Native 16-bit bit-serial, compute-read-only model. |
| ISAAC min-II [5] | IMA/replica: 1/1/2; replicas: 9/1/1 (12 IMAs). | 198.4 μs first sample; II = 134.4 μs. | Same compute-read-only scope. |
| Proposed LSTM | 64 single-crossbar LSTM tiles; four logical array blocks per weight copy. | 64 normalized cycles for 64 recurrent steps. | Logical mapping; bit slicing and physical converter timing excluded. |
| ERA-LSTM [7] | matrix; 2 tiles; 128 VMM + 128 EW arrays; tile-2 row use 50.78%. | Per step: 128 reads, 384 ADC, 513 DAC.. | Event-count estimate under our interpreted two-tile mapping; nonlinear/EW latency not quantified. |
| PUMA [8] | Programmable MVM, vector, and nonlinear ISA; target graph not benchmarked. | Target latency requires compiler partitioning and scheduling. | Original at 1 GHz: 577 GOPS/s/mm, 837 GOPS/s/W; not a target result. |
Note: Proposed-design cycles use the logical model of Table I and are not physical timing estimates. ISAAC timings are analytical compute-read results and exclude target-specific eDRAM, NoC, interstage buffering, nonlinear processing, and pipeline fill/drain. ERA event counts are derived from the interpreted dataflow. No speedup or cross-architecture energy/area ratio is inferred from these heterogeneous scopes.
The module-level analysis shows that the target workload combines high CNN invocation pressure with a recurrent latency bottleneck. ISAAC provides a CNN-oriented layer-resident substrate, ERA-LSTM integrates recurrent, nonlinear, and element-wise processing, and PUMA offers broader programmability but requires compiler-level target mapping. The proposed architecture integrates the major CNN, LSTM, attention, and MLP stages. Because the evaluations use different precision, resource organization, timing scope, and peripheral models, the results provide mapping and performance context rather than an absolute speed, energy-efficiency, or area

Fig. 6. Sensitivity of ADC resolution and ADC mux factor: (a) normalized system latency and (b) normalized runtime power.
ranking. A cross-architecture area ranking is omitted because the proposed digital/SFU and peripheral area has not been modeled under a common technology.
B. Hardware-Level Analysis and Robustness
Parameter sensitivity: We conduct a design space exploration (DSE) to evaluate the impact of architectural parameters on system latency and average runtime power. The swept parameters include ADC resolution, ADC mux factor, crossbar size, and quantization bitwidth. Parameters not involved in the current sweep are fixed to the nominal settings: crossbar size, 8-bit quantization, 4-bit ADC resolution, and ADC mux factor of 2. The normalized results are reported relative to the corresponding reference configuration indicated by the red dashed baseline. Figure 6 uses a 3-bit ADC, mux-2 reference, whereas Fig. 7 uses a 4-bit ADC, mux-2 reference. Both use crossbars and 8-bit quantization. The DSE timings and power are model estimates reported separately from the normalized logical cycles in Table I.
The ADC-related sweep in Fig. 6 couples ADC resolution and mux factor because both directly affect peripheral signal conversion. The reference performance is 647.38 ns latency and 0.0452 W average power. With 3-bit ADC resolution, increasing the mux factor from 2 to 4 and 8 increases latency by 60.5% and 181.4%, but reduces average power by 29.3% and 50.2%, respectively. With the mux factor fixed at 2, increasing ADC resolution from 3-bit to 4-bit and 6-bit only increases latency by 1.9% and 5.7%, while average power rises by 74.5% and 508.7%. These results indicate that ADC muxing mainly trades latency for power reduction, whereas ADC resolution dominates runtime power.
For crossbar size and quantization bitwidth, the latency impact is limited in our evaluation, so Fig. 7 focuses on normalized average power. The reference performance is 659.69 ns latency and 0.0789 W average power. With 8-bit quantization, shrinking the crossbar from to increases average power by 37.6%, while expanding it to reduces average power by 18.8%. With the crossbar fixed, reducing quantization from 8-bit to 6-bit and 4-bit lowers average power by 21.8% and 43.5%, respectively. These results characterize the modeled latency and power effects of the architectural parameters. They do not establish numerical fidelity at the corresponding ADC resolutions or quantization bitwidths. Task-level MAE/RMSE

Fig. 7. Sensitivity of crossbar size and quantization bitwidth on normalized power.

(a) Weight variation
(b) Uniform weight drift
Fig. 8. ASLF sensitivity of an untrained CNN–LSTM pipeline to simplified weight perturbations on synthetic inputs.
and the accuracy effects of ADC conversion and weight quantization remain to be evaluated.
Representation-Level Sensitivity Analysis: Motivated by the non-idealities of analogue-memory computing discussed in prior work [3], [9], we evaluate ASLF sensitivity using simplified weight-variation and drift models. The tested network follows the CNN–LSTM attention structure defined in Section II-A, with a ReLU after the CNN projection and ASLF extracted after FC2/ReLU, before the scalar linear FC3 head. The model is randomly initialized with seed 42 and is not trained. A fixed batch of 128 synthetic standard-normal inputs of shape is reused for all settings. The tests characterize representation sensitivity, not task-level prediction accuracy or the robustness of a trained depression detector.
The CNN group includes the convolutional and projection weights, the LSTM group includes the input and recurrent weights, and the FC group includes FC1 and FC2 weights. ALL denotes the union of these tested groups. Biases and the downstream FC3 head are not perturbed. Weight variation is modeled as:
Independent Gaussian samples are drawn for the selected weight elements. We sweep using five noise seeds (0–4) per setting, with the clean weights and inputs fixed. Uniform weight drift is modeled as:
We use , , the natural logarithm, and . Here, is a normalized time index, not a physical retention time. Each drift setting is evaluated once because the scaling is deterministic. At , the selected weights are multiplied by approximately 0.95385. This common scaling does not model device-to-device drift variability or calibrated retention.
Let and denote the vectorized clean and perturbed ASLF outputs for the entire batch. Their relative deviation is:
The norm is computed before averaging across noise trials; signed residuals are not averaged before taking the norm. Figure 8(a) shows the mean over five noise trials, with error bars indicating their sample standard deviation. Figure 8(b) reports the deterministic drift results without trial error bars.
At , the mean relative ASLF errors for CNN, LSTM, FC, and ALL perturbations are , , , and , respectively. At , the corresponding drift errors are , , , and . Among the individually perturbed groups, both experiments show the ordering FC > LSTM > CNN for the measured deviation. This ordering is specific to the tested initialization, synthetic inputs, and FC2 observation point; it is not a general ranking of module robustness or final prediction accuracy. The tests do not evaluate ADC conversion, weight quantization, or trained-model MAE/RMSE.
V. CONCLUSION
We presented a unified ReRAM-based accelerator for CNN–LSTM inference in speech-based depression detection. The proposed architecture integrates convolutional, recurrent, attention, and MLP stages within a crossbar-based PIM framework, reducing intermediate data movement and supporting the hybrid spatial–temporal dataflow. Evaluation results show and latency reduction over CPU and GPU baselines, with about and energy reduction, respectively. Module-level and matched-workload analyses further provide context against representative ReRAM/PIM accelerators. Sensitivity analysis identifies ADC resolution, mux factor, crossbar size, and quantization bitwidth as important design trade-offs. Simplified weight-perturbation tests characterize ASLF sensitivity in an untrained pipeline with synthetic inputs, without establishing task-level robustness. Future work will evaluate trained models on real depression datasets, including the task-level effects of quantization, ADC conversion, and device non-idealities.
ACKNOWLEDGMENT
This work is supported by the National Natural Science Foundation of China (62474144, 62501489 and 62174053), the Centrally Guided Local Science and Technology Development Fund (2024ZYZX4025), the Basic Research Program of Jiangsu (BK20250465), the Frontier Technologies R&D Program of Jiangsu (BF2025031), the Suzhou Industrial Park MEMS Advanced High-Performance Sensor Chip Technology Transfer Platform (CXZ2024201), the Jiangsu Data Science and Cognitive Computational Engineering Research Centre, the XJTLU AI University Research Centre, the XJTLU Advanced Materials Research Center and the XJTLU Research Development Fund (RDF-24-02-017).
REFERENCES
[1] M. Niu, J. Tao, B. Liu, J. Huang, and Z. Lian, “Multimodal spatiotemporal representation for automatic depression level detection,” IEEE Trans. Affect. Comput., vol. 14, no. 1, pp. 294–307, 2023, doi: 10.1109/TAFFC.2020.3031345.
[2] V. Sze, Y.-H. Chen, T.-J. Yang, and J. S. Emer, “Efficient processing of deep neural networks: A tutorial and survey,” Proc. IEEE, vol. 105, no. 12, pp. 2295–2329, Dec. 2017, doi: 10.1109/JPROC.2017.2761740.
[3] Q. Xia and J. J. Yang, “Memristive crossbar arrays for brain-inspired computing,” Nat. Mater., vol. 18, no. 4, pp. 309–323, Apr. 2019, doi: 10.1038/s41563-019-0291-x.
[4] P. Chi, S. Li, C. Xu, T. Zhang, J. Zhao, Y. Liu, Y. Wang, and Y. Xie, “PRIME: A novel processing-in-memory architecture for neural network computation in ReRAM-based main memory,” in Proc. 43rd ACM/IEEE Annu. Int. Symp. Comput. Archit. (ISCA), 2016, pp. 27–39, doi: 10.1109/ISCA.2016.13.
[5] A. Shafiee, A. Nag, N. Muralimanohar, R. Balasubramonian, J. P. Strachan, M. Hu, R. S. Williams, and V. Srikumar, “ISAAC: A convolutional neural network accelerator with in-situ analog arithmetic in crossbars,” in Proc. 43rd ACM/IEEE Annu. Int. Symp. Comput. Archit. (ISCA), 2016, pp. 14–26, doi: 10.1109/ISCA.2016.12.
[6] L. Song, X. Qian, H. Li, and Y. Chen, “PipeLayer: A pipelined ReRAM-based accelerator for deep learning,” in Proc. IEEE Int. Symp. High Perform. Comput. Archit. (HPCA), 2017, pp. 541–552, doi: 10.1109/HPCA.2017.55.
[7] J. Han, H. Liu, M. Wang, Z. Li, and Y. Zhang, “ERA-LSTM: An efficient ReRAM-based architecture for long short-term memory,” IEEE Trans. Parallel Distrib. Syst., vol. 31, no. 6, pp. 1328–1342, Jun. 2020, doi: 10.1109/TPDS.2019.2962806.
[8] A. Ankit, I. El Hajj, S. R. Chalamalasetti, G. Ndu, M. Foltin, R. S. Williams, P. Faraboschi, W.-M. Hwu, J. P. Strachan, K. Roy, and D. S. Milojicic, “PUMA: A programmable ultra-efficient memristor-based accelerator for machine learning inference,” in Proc. 24th Int. Conf. Archit. Support Program. Lang. Oper. Syst. (ASPLOS), 2019, pp. 715–731, doi: 10.1145/3297858.3304049.
[9] S. Ambrogio, P. Narayanan, H. Tsai, R. M. Shelby, I. Boybat, C. di Nolfo, S. Sidler, M. Giordano, M. Bodini, N. C. P. Farinha, B. Killeen, C. Cheng, Y. Jaoudi, and G. W. Burr, “Equivalent-accuracy accelerated neural-network training using analogue memory,” Nature, vol. 558, no. 7708, pp. 60–67, Jun. 2018, doi: 10.1038/s41586-018-0180-5.