Breast cancer risk prediction method and system based on dynamic gating and feedback optimization

By employing dynamic gating and feedback optimization methods, global and local feature modeling branches are constructed, which solves the problems of feature representation and prediction stability in complex data scenarios for breast cancer risk prediction models, achieving higher prediction accuracy and adaptability.

CN122889401BActive Publication Date: 2026-11-24SHANDONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611381540.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-24
Estimated Expiration
2046-09-08

AI Technical Summary

Technical Problem

Existing breast cancer risk prediction models lack sufficient feature expression capabilities and prediction stability in complex clinical data scenarios. They also lack explicit cross-pathway information interaction and dynamic modulation mechanisms, resulting in insufficient feature fusion and affecting prediction accuracy and stability.

Method used

A method based on dynamic gating and feedback optimization is adopted to construct a global feature modeling branch and a local feature modeling branch. Through cross-branch feature fusion and sample adaptive weight modulation, the breast cancer risk prediction model is dynamically updated. Multi-index feedback signals are introduced to optimize the gating strategy, thereby realizing the interaction and collaborative modeling of features in the two branches.

Benefits of technology

It improves the ability to characterize complex structured breast cancer clinical data at multiple granularities, enhances the ability to adaptively select different sample characteristics, improves the accuracy and general applicability of breast cancer risk prediction, and achieves adaptive optimization and predictive stability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122889401B_ABST
    Figure CN122889401B_ABST
Patent Text Reader

Abstract

This application discloses a breast cancer risk prediction method and system based on dynamic gating and feedback optimization, belonging to the field of medical artificial intelligence technology. The method includes: preprocessing breast cancer clinical diagnostic data, constructing a global feature modeling branch and a local feature modeling branch, and iteratively performing the following operations: determining global feature data and the first branch gating through auxiliary modulation by the local feature modeling branch; determining local feature data and the second branch gating through context guidance by the global feature modeling branch; calculating fusion weights, and fusing the global feature data and local feature data into corresponding dual-branch fused feature data according to the fusion weights; calculating the indicator feedback signal and risk variable to obtain the gating feedback signal; and updating the gating functions corresponding to the first branch gating and the second branch gating, respectively. This application solves the technical problem of insufficient feature expression ability and prediction stability in breast cancer risk prediction in the prior art through the above method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of medical artificial intelligence technology, and in particular to a method and system for predicting breast cancer risk based on dynamic gating and feedback optimization. Background Technology

[0002] By mining cancerous features and potential pathological patterns in breast cancer medical data, precise risk stratification of breast cancer can be achieved. Machine learning methods are now widely used in core areas of breast cancer care, such as breast lesion screening, benign / malignant differentiation of cancerous lesions, tumor risk classification, and personalized treatment plan development. Traditional breast cancer risk prediction models are built based on conventional processes of data preprocessing, feature engineering, model training, and risk assessment, and can complete basic prediction tasks on standardized datasets.

[0003] In existing technologies, deep learning methods for breast cancer risk stratification prediction mainly rely on two-branch deep learning, gating mechanisms, and branch path fusion. Multiple branches extract features independently and in parallel, and fusion is only achieved at the end through fixed concatenation or static weighting, lacking explicit cross-path information interaction and dynamic modulation mechanisms. Furthermore, because evaluation metrics during training cannot drive dynamic updates to the network structure or gating strategy, there is a lack of adaptive fusion mechanisms based on sample characteristics in the multi-feature fusion stage, limiting the feature representation ability and predictive stability of breast cancer risk prediction models in complex clinical data scenarios. Summary of the Invention

[0004] This application provides a method and system for predicting breast cancer risk based on dynamic gating and feedback optimization, which solves the technical problems of insufficient feature expression ability and prediction stability in breast cancer risk prediction under complex clinical data scenarios in the prior art.

[0005] In a first aspect, embodiments of this application provide a breast cancer risk prediction method based on dynamic gating and feedback optimization. The method includes: acquiring breast cancer clinical diagnostic data and preprocessing the data to obtain breast cancer clinical diagnostic feature data; constructing a global feature modeling branch and a local feature modeling branch, and iteratively performing the following operations until the model prediction accuracy reaches a preset threshold to obtain a breast cancer risk prediction result; inputting the breast cancer clinical diagnostic feature data into the global feature modeling branch, and determining the global feature data and the first branch gating through auxiliary modulation by the local feature modeling branch; inputting the breast cancer clinical diagnostic feature data into the local feature modeling branch, and determining the local feature data and the second branch gating through contextual guidance from the global feature modeling branch; calculating the fusion weights corresponding to the global feature data and the local feature data, and fusing the global feature data and the local feature data into corresponding dual-branch fused feature data according to the fusion weights; calculating the indicator feedback signal and risk variable based on the dual-branch fused feature data to obtain a gating feedback signal; and updating the gating functions corresponding to the first branch gating and the second branch gating respectively according to the gating feedback signal.

[0006] In one implementation of this application, data preprocessing is performed on breast cancer clinical diagnostic data to obtain breast cancer clinical diagnostic feature data. Specifically, this includes: sample repair of breast cancer clinical diagnostic data to obtain breast cancer clinical diagnostic data to be standardized; wherein, sample repair includes: sample integrity repair and sample expansion; standardization processing is performed on the breast cancer clinical diagnostic data to be standardized, and the standardized data is converted into floating-point tensors to obtain breast cancer clinical diagnostic feature data.

[0007] In one implementation of this application, breast cancer clinical diagnostic feature data is input into a global feature modeling branch. With the assistance of a local feature modeling branch, global feature data and a first branch gating are determined. Specifically, this includes: performing feature mapping on the breast cancer clinical diagnostic feature data and inputting the mapped feature data into several serially gated residual blocks; obtaining the first cross-branch signal of the local feature modeling branch, and determining the gating function of several serially gated residual blocks based on the serially gated residual blocks and the cross-branch signal to determine the first branch gating; performing feature modulation on the feature data according to the gating function to obtain the corresponding first intermediate variable; and performing nonlinear activation on the intermediate variable through a preset residual path to determine the global feature data.

[0008] In one implementation of this application, breast cancer clinical diagnostic feature data is input into a local feature modeling branch. Guided by the context of the global feature modeling branch, the local feature data and a second branch gating are determined. Specifically, this includes: performing layer normalization on the breast cancer clinical diagnostic feature data and inputting the normalized feature data into a preset CBAM module; processing the feature data through the CBAM module to obtain the corresponding second intermediate variable; acquiring the second cross-branch signal of the global feature modeling branch and determining the corresponding channel gating based on the cross-branch signal to obtain the corresponding second branch gating; and determining the local feature data through feature modulation based on the second branch gating and the second intermediate variable.

[0009] In one implementation of this application, calculating the fusion weights corresponding to the global feature data and the local feature data respectively includes: concatenating the global feature data and the local feature data to obtain a concatenated feature structure; and modeling the fusion weights on the concatenated feature structure to obtain the fusion weights.

[0010] In one implementation of this application, global feature data and local feature data are fused into corresponding dual-branch fused feature data according to the fusion weight. Specifically, this includes: performing weighted fusion of global feature data and local feature data based on the fusion weight to obtain dual-branch fused feature data.

[0011] In one implementation of this application, a gated feedback signal is obtained by calculating the indicator feedback signal and risk variables based on the dual-branch fusion feature data. Specifically, this includes: performing risk modeling on the dual-branch fusion feature data using a preset learnable mapping function to determine the risk variables; obtaining the indicator sets corresponding to the validation set and configuring the differential weight coefficients corresponding to each indicator set; wherein each indicator set includes: area under the curve, recall, F1 score, and precision; calculating the differential weight coefficients and the prediction quality data corresponding to each indicator set, and calculating the scene weight correction value corresponding to the breast cancer risk grading; determining the indicator feedback signal by signal loss modulation based on the prediction quality data and the scene weight correction value; and obtaining the gated feedback signal based on the risk variables and the indicator feedback signal.

[0012] In one implementation of this application, the gating functions corresponding to the first branch gating and the second branch gating are updated according to the gating feedback signal, specifically including: performing bidirectional information modulation and feature modulation on the first branch gating to obtain a first modulation gating; adjusting and updating the first modulation gating based on the gating feedback signal to obtain an updated first gating function; performing dynamic modulation extension on the preceding channel gating in the second branch gating to obtain a second modulation gating; and adjusting and updating the second modulation gating based on the gating feedback signal to obtain an updated second gating function.

[0013] In one implementation of this application, after updating the gating functions corresponding to the first branch gating and the second branch gating according to the gating feedback signal, the method further includes: updating the corresponding breast cancer risk prediction model based on the updated gating function; and obtaining the breast cancer risk prediction result for the corresponding patient based on the breast cancer risk prediction model.

[0014] Secondly, embodiments of this application also provide a breast cancer risk prediction system based on dynamic gating and feedback optimization, characterized in that the system includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to implement a breast cancer risk prediction method based on dynamic gating and feedback optimization.

[0015] This application provides a breast cancer risk prediction method and system based on dynamic gating and feedback optimization. Through gating-based bi-branch feature interaction and collaborative modeling, cross-branch feature fusion and sample-adaptive weight alignment, and multi-index feedback gating modulation, the breast cancer risk prediction model is dynamically updated. This solves the technical problems of insufficient feature representation ability and prediction stability in complex clinical data scenarios in existing breast cancer risk prediction technologies. It improves the multi-granularity feature representation ability of complex structured breast cancer clinical data, enhances the adaptive selection ability of the breast cancer risk prediction model for global and local features under different sample characteristics, and realizes structure-level gating modulation and model adaptive optimization based on sample risk uncertainty, thereby improving the prediction accuracy and versatility of breast cancer risk. Attached Figure Description

[0016] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 A flowchart illustrating a breast cancer risk prediction method based on dynamic gating and feedback optimization, provided for an embodiment of this application; Figure 2 A schematic diagram of the overall architecture of a breast cancer risk prediction system provided in this application embodiment; Figure 3 A schematic diagram of the overall execution flow and training closed-loop mechanism of a model provided in this application embodiment; Figure 4 A schematic diagram of a global feature modeling and gating enhancement structure based on MLP is provided for an embodiment of this application; Figure 5 A schematic diagram illustrating local feature modeling and important substructure synthesis based on CNN, provided for an embodiment of this application; Figure 6 A schematic diagram of a depth convolution residual processing unit provided in an embodiment of this application; Figure 7 This is a schematic diagram of a dynamic fusion weight generation and sample adaptive feature fusion mechanism provided in an embodiment of this application; Figure 8 A schematic diagram of a risk perception modeling and uncertainty gating modulation mechanism provided in this application embodiment; Figure 9 A schematic diagram of a closed-loop gating modulation mechanism based on multi-index feedback provided for an embodiment of this application; Figure 10 This is a schematic diagram of the internal structure of a breast cancer risk prediction system based on dynamic gating and feedback optimization, provided as an embodiment of this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0018] This application provides a breast cancer risk prediction method and system based on dynamic gating and feedback optimization. Through gating-based bi-branch feature interaction and collaborative modeling, cross-branch feature fusion and sample-adaptive weight alignment, and multi-index feedback gating modulation, the breast cancer risk prediction model is dynamically updated. This solves the technical problems of insufficient feature representation ability and prediction stability in complex clinical data scenarios in existing breast cancer risk prediction technologies. It improves the multi-granularity feature representation ability of complex structured breast cancer clinical data, enhances the adaptive selection ability of the breast cancer risk prediction model for global and local features under different sample characteristics, and realizes structure-level gating modulation and model adaptive optimization based on sample risk uncertainty, thereby improving the prediction accuracy and versatility of breast cancer risk. The technical solution proposed in this application will be described in detail below with reference to the accompanying drawings.

[0019] Figure 1 This is a flowchart illustrating a breast cancer risk prediction method based on dynamic gating and feedback optimization, provided as an embodiment of this application. Figure 1 As shown in the figure, the breast cancer risk prediction method based on dynamic gating and feedback optimization provided in this application embodiment specifically includes the following steps: Step 101: Obtain clinical diagnostic data for breast cancer and perform data preprocessing on the clinical diagnostic data for breast cancer to obtain clinical diagnostic feature data for breast cancer.

[0020] For example, raw data from breast cancer clinical diagnosis requires data cleaning and standardization, including completeness imputation and feature scaling. This application performs data preprocessing on breast cancer clinical diagnosis data, applicable to raw data or data input after data augmentation, sample expansion, and feature processing.

[0021] Specifically, data preprocessing is performed on breast cancer clinical diagnostic data to obtain breast cancer clinical diagnostic feature data, including: sample repair of breast cancer clinical diagnostic data to obtain breast cancer clinical diagnostic data to be standardized; wherein, sample repair includes: sample integrity repair and sample expansion; standardization processing is performed on the breast cancer clinical diagnostic data to be standardized, and the standardized data is converted into floating-point tensors to obtain breast cancer clinical diagnostic feature data.

[0022] In one embodiment, clinical diagnostic data for breast cancer mainly includes BMI, age at first delivery, number of benign breast diseases, benign breast tumors, breast hyperplasia, nipple discharge, non-lactational mastitis, lactational mastitis, hypertension, diabetes, smoking history, secondhand smoke, sleep duration, night shift experience, waist-to-hip ratio, whether breastfeeding, and duration of breastfeeding, labeled as whether or not the disease is present.

[0023] First, the clinical diagnostic data for breast cancer undergoes missing value imputation, numerical standardization, and tensor quantization to meet the model input requirements. For high-quality input data that is already complete and standardized, the above preprocessing steps can be appropriately simplified depending on the actual situation.

[0024] The breast cancer clinical diagnostic data consists of structured clinical characteristic data for breast cancer diagnosis. Data sources include medical testing systems, electronic medical record systems, and hospital interview records. This data is organized into XLSX tabular format. The collected raw data contains various feature information, which together constitute a structured feature vector for disease risk prediction.

[0025] Because the original data contains problems such as uneven sample distribution, large differences in dimensionality and dimensions, and missing data, it is necessary to purify and optimize the data through preprocessing to improve the stability and feature representation ability of subsequent model training.

[0026] First, the clinical diagnostic data for breast cancer undergoes integrity restoration. During the clinical data collection process for breast cancer, some samples contain missing values ​​due to missed detections, incomplete records, or manual entry errors. This embodiment employs a mean-based missing value restoration method (Simple Imputer) to complete the missing features. The system automatically calculates the mean of each feature dimension within the known sample space and fills in the missing positions. This step ensures the integrity of the input feature matrix, preventing instability and fluctuations in model training due to missing values.

[0027] Then, since the number of positive samples in breast cancer risk stratification prediction tasks is usually far less than the number of negative samples, resulting in a significant class imbalance problem, this embodiment uses the SMOTE (Synthetic Minority Over-sampling Technique) method to expand the minority class samples. This technique generates new synthetic samples by performing a K-nearest neighbor search in the feature space of the minority class samples and performing linear interpolation between the original samples and their nearest neighbors, thereby increasing the number of minority class samples, improving the class distribution imbalance problem during the training phase, and thus enhancing the model's ability to identify positive samples. It should be noted that this embodiment uses the SMOTE method to expand the minority class samples, but other oversampling methods can also be used instead; this embodiment is not strictly limited to this method.

[0028] Furthermore, feature standardization is performed. For breast cancer clinical data, there are significant dimensional differences between different features. For example, the value ranges of features such as BMI, age, and sleep duration vary considerably. Directly inputting these features into a neural network can easily lead to unstable gradient updates, slowing down the convergence speed of gradient descent, and even causing training oscillations. This embodiment uses Z-score standardization to map all features to a normal distribution space with a mean of 0 and a standard deviation of 1. Perform the transformation.

[0029] in, For the original input, The mean of this feature. This represents the standard deviation of the current feature. After standardization, features of different dimensions are uniformly mapped to a numerical space with a mean of 0 and a standard deviation of 1, thereby reducing the interference of features of different dimensions on the model training process and improving the stability of the model parameter optimization process.

[0030] Finally, feature sequence tensor quantization and dimensionality mapping are performed. The preprocessed structured feature data is converted into a floating-point tensor input model. For the convolutional neural network branch, this embodiment further performs a dimensionality expansion operation on the one-dimensional feature vector, mapping the original two-dimensional features into a three-dimensional tensor structure that meets the requirements of one-dimensional convolution input. This allows the convolution kernel to slide along the feature dimension to extract local correlation patterns between different features.

[0031] After the above preprocessing, the original clinical data for breast cancer risk diagnosis is converted into standardized input data suitable for training a cross-branch collaborative closed-loop regulation dual-branch deep learning model, providing a unified data foundation for subsequent feature extraction and classification prediction.

[0032] Step 102: Construct the global feature modeling branch and the local feature modeling branch.

[0033] For example, two complementary feature extraction branches are constructed: a global feature modeling branch (implemented by a multilayer perceptron, MLP) and a local feature modeling branch (implemented by a convolutional neural network, CNN). In the dual-branch structure, the two feature paths not only extract features independently, but also introduce a cross-branch information interaction mechanism in the intermediate representation layer, enabling the feature representations of different branches to influence each other and be optimized collaboratively.

[0034] Furthermore, the following operations are performed repeatedly until the model's prediction accuracy reaches a preset threshold to obtain the breast cancer risk prediction result.

[0035] Figure 2 This is a schematic diagram of the overall architecture of a breast cancer risk prediction system provided in an embodiment of this application.

[0036] Figure 3 This is a schematic diagram of the overall execution flow and training closed-loop mechanism of a model provided in an embodiment of this application.

[0037] In one embodiment, the main body of the model is a heterogeneous dual-branch collaborative architecture, including a global feature modeling branch and a local feature modeling branch. A cross-branch information interaction and multi-level modulation mechanism is introduced between the two branches, so that the feature representations achieve mutual constraints and collaborative optimization during the generation process. The global feature modeling branch adopts a multilayer perceptron network based on a gated residual structure, which is composed of multiple stacked gated residual blocks. During the gating generation process, semantic features from the local convolutional branch, the risk signal from the previous logical time step, and the feedback signal from the previous logical time step are introduced as conditional inputs, so that the gating weights not only depend on the global features themselves, but also on the guidance of multi-dimensional information, thereby realizing cross-branch conditional feature selection and response modulation.

[0038] The local branch adopts a one-dimensional convolutional residual structure, embeds gated convolutional attention units in the convolutional feature extraction path, and introduces global features as contextual guidance information during the attention weight generation process. At the same time, it injects the risk signal and feedback signal from the previous logical time step, so that the local response has global semantic constraint capability while maintaining structural sensitivity. This enables the model to comprehensively consider multiple factors such as risk and system feedback, and achieve bidirectional collaboration between local pattern extraction and global semantic expression.

[0039] In the feature fusion stage, the output features of the two branches are concatenated and input into the fusion mapping unit. The contribution of different branches is dynamically recalibrated through a sample-adaptive fusion weight mechanism, which enables the model to adaptively adjust the fusion ratio of global semantic information and local structural information according to the feature structure differences of the input samples, thereby improving the adaptability to heterogeneous clinical data.

[0040] The overall execution flow and training closed-loop mechanism of the model are as follows: First, the data is read, and then its integrity is checked. If the check fails, missing values ​​are filled or cleaned, and the data is returned for re-checking. If the check passes, the data proceeds to the standardization stage.

[0041] After standardization, a balancing process is performed on the positive and negative samples. If balancing is needed, oversampling is performed; otherwise, the original data is used directly. The preprocessed data is then output, along with the standardizer (Scaler) and imputer.

[0042] After the model is built, forward propagation is performed to execute cross-branch collaborative dynamic fusion and section gating, and the joint loss is predicted and calculated while the risk variables are updated.

[0043] Furthermore, determine whether oversampling is necessary. If so, oversampling is performed, and the feedback value influences the next round of joint loss; if not, directly perform verification calculations of various indicators and update the feedback value, and adjust the gating and joint loss calculation based on the feedback value.

[0044] Prediction loss is the error generated when the model predicts the target variable. Yin and Yang samples are positive and negative class samples in a binary classification problem. Due to the class imbalance problem in the original data, it is necessary to balance the yin and Yang samples, which can also be expressed as positive and negative sample balancing.

[0045] Step 103: Input the clinical diagnostic feature data of breast cancer into the global feature modeling branch, and determine the global feature data and the first branch gating through the auxiliary modulation of the local feature modeling branch.

[0046] For example, the preprocessed features are input in parallel to two branches. In the MLP global modeling branch, the input is first transformed by a linear mapping layer (128-dimensional) and layer normalization, and then enters a multi-layer residual structure (ResBlock) for deep feature extraction. Each residual block contains a two-layer nonlinear transformation and a feature response gating mechanism.

[0047] When generating feature response weights, the gating mechanism not only bases the generation on the feature response information of the current branch but also introduces the local feature representation of the CNN branch as auxiliary modulation information. Furthermore, it combines sample-level risk perception information as a modulation constraint factor, thereby achieving structural constraints and information guidance on the global feature expression. After linear mapping, Layer Norm, SiLU activation, and random dropout, the main path generates feature response weights through gating units and modulates the residual features dimensionally to adaptively suppress low-contribution features, anomalous perturbation features, and redundant responses. Subsequently, the gated features are fused with the residual path to form a gated residual unit with cross-branch information constraint capabilities.

[0048] Specifically, the clinical diagnostic feature data of breast cancer is input into the global feature modeling branch. With the assistance of the local feature modeling branch, the global feature data and the first branch gating are determined. This includes: performing feature mapping on the clinical diagnostic feature data of breast cancer and inputting the feature-mapped feature data into several serially gated residual blocks; obtaining the first cross-branch signal of the local feature modeling branch, and determining the gating function of several serially gated residual blocks based on the several serially gated residual blocks and the cross-branch signal to determine the first branch gating; performing feature modulation on the feature data according to the gating function to obtain the corresponding first intermediate variable; and performing nonlinear activation on the intermediate variable through a preset residual path to determine the global feature data.

[0049] Figure 4 This is a schematic diagram of a global feature modeling and gating enhancement structure based on MLP provided in an embodiment of this application.

[0050] In one embodiment, the global feature modeling branch is used to learn high-order nonlinear relationships between clinical structural features of breast cancer and to perform deep representation and feature selection of global semantic information. By introducing a gated feature modulation mechanism inside the multilayer perceptron residual structure, adaptive adjustment of the response intensity of different feature dimensions is achieved, thereby reducing the propagation influence of various low-correlation features and abnormal perturbation features in the deep network. Its overall structure consists of an input projection layer, multi-level gated residual blocks, and a feature compression mapping layer.

[0051] The global feature modeling branch (MLP branch) includes an initial projection layer and six cascaded gated residual blocks (Gate-ResBlocks) for progressive deep extraction of global features. Each Gate-ResBlock consists of a main path, a residual path, and a gated modulation unit. The main path is responsible for performing nonlinear transformations of features, the residual path is used to maintain the stable propagation of basic information, and the gated modulation unit is used to perform dimension-by-dimensional response control on the output of the main path, thereby enhancing the expressive power of key risk features and suppressing the cumulative propagation of low-contribution features in the deep network.

[0052] The input layer receives N-dimensional structured clinical feature vectors and first performs high-dimensional latent feature mapping through a fully connected projection layer. This process maps the original low-dimensional structured features to a unified high-dimensional feature space (128 dimensions) to enhance the model's ability to express complex feature coupling relationships. Subsequently, the system normalizes the feature distribution using Layer Norm and performs nonlinear mapping through the SiLU activation function to further enhance the model's ability to express complex feature coupling relationships.

[0053] After the initial mapping is completed, the features are further input into multiple cascaded gated residual blocks for deep feature modeling. Within the main path of each gated residual block, linear mapping, Layer Norm normalization, SiLU activation, and drop-out random deactivation are performed sequentially, ultimately yielding the main path output. Unlike traditional residual structures, this application introduces a Feature ResponseGate after the main residual path output.

[0054] This gating unit generates dynamic feature weights between 0 and 1 based on the Sigmoid activation function and performs dimension-wise modulation on the main path output. Its original form can be explained by the following formula.

[0055] (1) This embodiment first improves the original gating structure by introducing cross-branch feature interaction and bidirectional information modulation to achieve feature collaboration and gating linkage control between the two branches. Furthermore, the gating is updated through risk-sensitive modulation and multi-index feedback value modulation, as explained by the following formula.

[0056] (2) The specific generation logic, signal calculation process, and parameter adjustment mechanism of the aforementioned gating weights will be explained in detail in subsequent chapters.

[0057] Subsequently, the system uses the obtained gating weights to perform element-wise modulation processing on the main path output features, which is explained by the following formula.

[0058] (3) After the above modulation operation, the gating weights of feature dimensions with low contribution, weak correlation, or noise interference will be adaptively reduced to achieve autonomous suppression of redundant information and noise response; while key features that are strongly correlated with breast cancer risk grading prediction can maintain a high response amplitude, thus enhancing the transmission effect of effective features in deep networks.

[0059] The residual block employs an adaptive residual connection method to facilitate information exchange between input and output features. If the input and output features have the same dimension, a path is directly established through an identity mapping; if their dimensions differ, a linear projection layer is used to perform dimension matching calibration. The output of the current residual block is obtained by summing the gated main path features and residual path features element-wise and then performing SiLU activation function calculations, as explained by the following formula.

[0060] (4) Through multi-level gated residual blocks, the model performs layer-by-layer nonlinear transformation. Combined with cross-branch bidirectional information modulation, risk-sensitive screening, and multi-index feedback regulation, and with residual feature fusion processing, the model can fully explore the high-order correlation between various clinical features, while weakening the negative impact of low-correlation features and noise disturbances, and finally generating a global feature expression with better discriminative performance.

[0061] Step 104: Input the clinical diagnostic feature data of breast cancer into the local feature modeling branch, and determine the local feature data and the second branch gating through the context guidance of the global feature modeling branch.

[0062] For example, in the local modeling branch of a CNN, the input features are reconstructed into a one-dimensional sequence before entering the convolutional processing. First, primary feature extraction is performed through a convolutional Stem layer (32 channels), and then gated convolutional block attention units are embedded.

[0063] When calculating channel attention and spatial attention, the attention unit introduces global semantic features from the MLP branch output as contextual guidance information and fuses sample-level risk perception information to constrain and modulate local response intensity, thereby enhancing the responsiveness of local features in important regions and suppressing the activation intensity of irrelevant noise regions. Specifically, channel attention learns channel importance through global average pooling and convolutional mapping; spatial attention captures key region responses through local convolution using 7×1 convolutional kernels.

[0064] Furthermore, the features are processed through a two-stage convolutional residual module (CNN_RES) for deep local feature extraction, and cross-branch semantic guidance information is continuously introduced into the main path of the convolutional residual to enhance the consistency of the response of local features to global structural constraints, thereby adaptively suppressing and weakening the noisy features in the original data and the unstable features introduced during the preprocessing.

[0065] Specifically, breast cancer clinical diagnostic feature data is input into the local feature modeling branch. Guided by the context of the global feature modeling branch, the local feature data and the second branch gating are determined. This includes: performing layer normalization on the breast cancer clinical diagnostic feature data and inputting the layer normalized feature data into a preset CBAM module; processing the feature data through the CBAM module to obtain the corresponding second intermediate variable; acquiring the second cross-branch signal of the global feature modeling branch and determining the corresponding channel gating based on the cross-branch signal to obtain the corresponding second branch gating; and determining the local feature data through feature modulation based on the second branch gating and the second intermediate variable.

[0066] Figure 5 This is a schematic diagram of local feature modeling and important substructure synthesis based on CNN, provided for an embodiment of this application.

[0067] Figure 6 This is a schematic diagram of a depth convolution residual processing unit provided in an embodiment of this application.

[0068] In one embodiment, the local feature modeling branch is used to extract local correlation patterns between different features, and to extract local correlation patterns and local risk response features between different clinical features. This branch is one of the key improved structures of this invention. Unlike traditional convolutional feature extraction structures, this application introduces a cross-branch collaborative modulation mechanism, a risk-sensitive dynamic gating mechanism, and a gating modulation mechanism based on multi-index feedback within the convolutional residual path. This allows the response intensity of the convolutional feature to be affected not only by the current local feature itself, but also by combining global semantic features, sample risk status, and historical performance feedback information for joint dynamic adjustment. This enables adaptive control of the importance of different channel features and local spatial features, reducing the problems of feature response imbalance, noise feature accumulation, and insufficient adaptability of fixed gating strategies in traditional attention structures. Its overall structure consists of a feature stem network (Stem Network), a gated convolutional block attention unit (CBAM_1D_GATED), a deep convolutional residual processing unit (CNN_RES), and an aggregation mapping module. (1) Stem Network: The structured features input to the CNN branch first undergo dimensionality expansion. The system increases the channel dimension through an unsqueeze operation, transforming the original one-dimensional feature vector into a tensor structure suitable for one-dimensional convolution operations. Subsequently, the input features pass through a one-dimensional convolutional layer for initial local pattern mapping, expanding the input channels to a preset number (32 channels) to construct the initial local feature representation. The convolution output is further normalized by Layer Norm to reduce the numerical distribution differences between different channels and improve the stability of subsequent convolution calculations and gradient propagation.

[0069] (2) Gated Convolutional Block Attention Unit (CBAM_1D_GATED): This module is an important feature modulation unit of the CNN branch in this embodiment. Its core function is to adaptively and dynamically adjust the response intensity of different channel features and different spatial locations. Based on the traditional CBAM structure, this embodiment further introduces cross-branch collaborative information, sample risk state information, and historical index feedback information in the channel gating generation stage. This allows the gating weights to not only depend on the current local convolution response, but also to jointly modulate the feature selection process by combining global semantic features, risk uncertainty, and historical training performance, thereby achieving a stronger structural adaptive feature selection capability. This module is composed of a channel attention submodule and a spatial attention submodule connected in series.

[0070] First, in the channel attention stage, the convolutional features input to the CBAM module are denoted as... The system first performs adaptive global average pooling on the input features to statistically compress the overall response of each channel in the spatial dimension; then, it constructs a lightweight bottleneck mapping structure through two layers of one-dimensional convolutions. The first convolutional layer is responsible for compressing the number of channels to a preset ratio (…). The first layer combines SiLU activation function to complete nonlinear mapping; the second layer convolution is responsible for restoring the original channel dimensions, thereby establishing the correlation between different channels. After the above mapping operation, the channel feature representation is obtained. .

[0071] Furthermore, this embodiment, based on the traditional channel gating generation mechanism, introduces output features from the previous round of the MLP global branch. Risk variables generated in the previous integration phase and the dynamic feedback value generated from the previous round of indicator feedback. They jointly participate in the channel gating weight generation process, which is explained by the following formula.

[0072] (5) With the above structure, channel gating no longer relies solely on local convolutional responses, but forms a joint gating mechanism that integrates local features, global semantics, risk states, and indicator feedback.

[0073] Furthermore, the generated channel-gated weights are used to perform element-wise modulation on the input convolutional features, as explained by the following formula.

[0074] (6) Through the aforementioned dynamic gating mechanism, the gating weights of channels with low contribution, poor stability, or weak correlation with the current risk status will be automatically reduced; while important channels that are highly correlated with breast cancer risk prediction will retain a high response strength, thereby enhancing the propagation ability of key local features in the deep network.

[0075] Since the channel attention stage has already completed the joint modulation of cross-branch semantic information, risk state information, and historical indicator feedback information, the subsequent spatial attention stage in this embodiment mainly focuses on the correlation modeling between local spatial locations, and no longer introduces the above-mentioned external modulation signals, so as to avoid redundant modulation and excessive coupling between different levels of gating, and improve the overall structural stability and training convergence consistency.

[0076] After completing channel attention modulation, the system further enters the spatial attention stage. This stage involves... Average pooling and max pooling operations are performed along the channel dimension to obtain statistical feature descriptions at different spatial locations. Average pooling is used to reflect the overall feature response trend, and its mathematical operation is explained by the following formula.

[0077] (7) Where C is the number of channels; channel max pooling is used to highlight local salient response regions, and its mathematical operation is explained by the following formula.

[0078] (8) Subsequently, the system concatenates the two sets of statistical features along the channel dimension and establishes local correlations and long-range dependencies between different spatial locations through one-dimensional convolution to obtain spatial feature representations. Spatial gating weights are then generated using the Sigmoid activation function, as explained by the following formula.

[0079] (9) Finally, the system uses spatial gating weights to further perform element-wise modulation on the channel-modulated features, which is explained by the following formula.

[0080] (10) in, This is the final output of the CBAM module.

[0081] Unlike traditional CBAM structures that generate static attention weights solely based on the current convolutional response, the gated convolutional block attention units in this embodiment further incorporate cross-branch semantic collaboration, risk state awareness, and historical indicator feedback modulation mechanisms. This allows the gated structure to dynamically adjust the intensity of local feature retention based on different sample feature states, risk levels, and historical model performance. This structure not only enhances the expressive power of key local regions but also reduces the risk of the cumulative propagation of low-correlation responses, anomalous perturbation features, and unstable noise features in deep networks, thereby improving the stability of feature representation, training robustness, and final prediction performance in complex medical clinical data scenarios.

[0082] (3) Deep Convolutional Residual Processing Unit (CNN_RES): The CNN branch contains multiple sets of cascaded convolutional residual processing units. This module is used to perform layer-by-layer depth extraction of convolutional features and, in conjunction with the residual connection mechanism, improve the stability of feature propagation and the robustness of training convergence in deep networks.

[0083] The input features first undergo a one-dimensional convolutional layer to initially extract local feature patterns. This is followed by layer normalization, SiLU activation, and dropout operations. Layer normalization stabilizes the feature distribution across different batches, SiLU activation enhances the network's non-linear expressive power, and dropout reduces overfitting to local features during model training, improving overall generalization performance. The features then proceed to a second one-dimensional convolutional layer to further extract more abstract high-level local semantic features. Finally, Layer Norm normalization is applied again to form the output feature representation of the main convolutional path.

[0084] After feature extraction along the main convolutional path, the features do not directly participate in residual fusion. Instead, they are first dynamically modulated by the gated convolutional block attention unit (CBAM_1D_GATED). In this embodiment, the CBAM module has already fused cross-branch semantic information, sample risk uncertainty, and historical index feedback information during the channel attention stage, thus possessing stronger structural adaptive gating capabilities. To avoid multi-level modulation redundancy, the spatial attention stage is modeled only based on local convolutional responses, without introducing additional external modulation signals, ensuring clear division of labor among different modulation levels and improving computational stability. This process enhances the responses of key structures while effectively suppressing low-contribution channels and local noise regions, thereby improving the expressive power of local discriminative features.

[0085] The residual branch employs an adaptive connection method. After dimension alignment, the output features of the main convolutional path modulated by CBAM are added element-wise with the output features of the residual branch, and then processed again by the SiLU activation function and dropout to obtain the final output of the convolutional residual unit. This structure retains the advantages of stable gradient propagation in residual networks while introducing a dynamic attention modulation mechanism, enabling the model to have stronger feature selection capabilities and robustness in complex clinical structured data scenarios.

[0086] (4) Dynamic Aggregation and Linear Representation Mapping: The ends of the CNN branches are used to map the convolutional feature maps into compact feature vectors of fixed length for subsequent cross-branch feature fusion. After processing the residuals of multiple convolutional layers, the system first performs adaptive global average pooling on the output features, and aggregates the responses of local spatial dimensions as a whole, thereby reducing the model's sensitivity to local positional shifts and improving the stability of feature representation.

[0087] After global aggregation, the system linearly projects the aggregated features through a fully connected mapping layer, mapping them to a latent feature space of a preset dimension. Subsequently, the SiLU activation function and Dropout operation are used to perform non-linear transformations and regularization on the features, ultimately obtaining the local feature representation vectors of the CNN branches. .

[0088] Through the above structure, the CNN branch can extract features layer by layer from the perspective of local correlation modeling, and achieve stable feature compression and representation mapping based on the dynamic gating modulation completed by the preceding CBAM module, providing structured local semantic representation for subsequent fusion with the MLP global feature modeling branch.

[0089] Step 105: Calculate the fusion weights corresponding to the global feature data and the local feature data respectively, and fuse the global feature data and the local feature data into the corresponding dual-branch fused feature data according to the fusion weights.

[0090] For example, after the dual-branch processing is completed, the cross-branch feature fusion stage begins. The global features output by the MLP branch and the local features output by the CNN branch are first concatenated along the channel dimension to construct a joint feature representation.

[0091] Unlike traditional fixed fusion methods, this application introduces a dynamic fusion weight generation mechanism based on sample feature distribution to characterize the dependence of the current sample on global semantic information and local pattern information. This dynamic fusion weight is automatically generated by the fusion decision unit based on the feature response strengths and relative differences between MLP and CNN branches, thereby achieving adaptive adjustment of the contribution ratio of different feature paths. This allows the model to flexibly select between relying more on global risk semantics or local structural patterns under different sample conditions.

[0092] After weight allocation, the system performs weighted fusion of global and local features and inputs them into a dedicated fusion processing unit (Fusion FC). This unit achieves spatial alignment and semantic consistency enhancement of the fused features through a combination of linear transformation, Layer Norm normalization, and SiLU nonlinear activation function, thereby obtaining a compact and discriminative joint representation.

[0093] Specifically, the calculation of the fusion weights corresponding to the global feature data and the local feature data includes: concatenating the global feature data and the local feature data to obtain the concatenated feature structure; and modeling the fusion weights on the concatenated feature structure to obtain the fusion weights.

[0094] Furthermore, based on the fusion weights, the global feature data and local feature data are fused into corresponding dual-branch fused feature data. Specifically, this includes: weighting and fusing the global feature data and local feature data based on the fusion weights to obtain dual-branch fused feature data.

[0095] Figure 7 This is a schematic diagram of a dynamic fusion weight generation and sample adaptive feature fusion mechanism provided in an embodiment of this application.

[0096] In one embodiment, the model obtains the output of the MLP global feature modeling branch. Output of the local feature modeling branch of CNN Instead of directly using fixed concatenation or equal-weight fusion, a dynamic fusion mechanism based on sample feature distribution is introduced. This mechanism adaptively models the importance of the two types of features under different sample conditions, thereby achieving dynamic reweighting at the feature level. Specifically, the output features of the two branches are first concatenated to construct a joint feature representation, which is explained by the following formula.

[0097] (11) Then, an independent dynamic fusion weight generation module is introduced to model the feature structure of the current sample and generate dynamic fusion coefficients, which are explained by the following formula.

[0098] (12) in and These are learnable parameters. The fusion weights are constrained within the [0,1] interval using the Sigmoid function, giving them probabilistic feature selection capabilities. Furthermore, based on these dynamic weights, the bi-branch features are weighted and fused to obtain the final fused representation, which is explained by the following formula.

[0099] (13) Through the above mechanism, this invention eliminates the fusion process from relying on fixed rules. Instead, the feature contribution ratio is adaptively determined by the feature distribution of the input samples, thereby enhancing the model's expressive flexibility and generalization ability across different clinical data patterns. Compared to traditional splicing or static weighting methods, this mechanism effectively alleviates the problem of mismatch between global and local feature expressions under different sample types.

[0100] Step 106: Based on the dual-branch fusion feature data, calculate the indicator feedback signal and risk variables to obtain the gating feedback signal.

[0101] For example, during model training, the traditional cross-entropy loss function mainly focuses on the distributional difference between the predicted probability and the true label, making it difficult to directly reflect the comprehensive requirements of business metrics such as precision, recall, F1-score, and AUC (area under the ROC curve) in breast cancer risk prediction tasks. Especially in scenarios with highly imbalanced class distributions, relying solely on classification loss for optimization can easily lead to imbalances between different evaluation metrics. To address this, this application constructs a multi-metric feedback mechanism based on validation set performance feedback to transform multi-dimensional evaluation metrics into auxiliary signals that can participate in model training. After each training round, the system calculates multiple performance metrics based on the validation set prediction results and constructs a weighted evaluation result, comprehensively considering metrics such as AUC, recall, F1-score, and precision, while introducing constraints on false positives to improve the reliability of the model in real-world breast cancer risk prediction scenarios.

[0102] To avoid excessive fluctuations in feedback signals across different training stages, this application further introduces an exponential moving average mechanism to smoothly model historical performance, thereby constructing a stable historical performance benchmark to characterize the model's long-term performance during training. Subsequently, the system calculates the difference between the current performance and the historical benchmark to measure the degree of improvement of the model relative to historical states. Furthermore, to prevent extreme fluctuations in feedback signals from interfering with model training, this application performs nonlinear stabilization processing on this difference, mapping it to a standardized feedback signal within a finite range, giving it a stable numerical scale that can be used for subsequent model structure modulation.

[0103] Furthermore, this application introduces the standardized feedback signal into the gating modulation mechanism within the network to perform reverse modulation on the gating units during feature extraction. When the feedback signal is positive, the activation level of the gating units is increased overall, thereby enhancing feature retention. When the feedback signal is negative, the gating activation strength is reduced to enhance the suppression of redundant or low-contribution features. This achieves a structure-adaptive adjustment mechanism based on model performance feedback, enabling the network to dynamically adjust the feature selection intensity according to its actual performance during training. This mechanism maintains the stability of supervised learning while achieving joint guidance and optimization of multi-dimensional evaluation indicators, thereby improving the model's predictive performance and generalization ability in scenarios with low signal-to-noise ratios and class imbalances in breast cancer clinical data.

[0104] Specifically, based on the dual-branch fusion feature data, the indicator feedback signal and risk variables are calculated to obtain the gating feedback signal. This includes: performing risk modeling on the dual-branch fusion feature data using a pre-defined learnable mapping function to determine the risk variables; obtaining the indicator sets corresponding to the validation set and configuring the differential weight coefficients for each indicator set; wherein each indicator set includes: area under the curve, recall, F1 score, and precision; calculating the differential weight coefficients and the prediction quality data corresponding to each indicator set, and calculating the scene weight correction value corresponding to the breast cancer risk grading; determining the indicator feedback signal through signal loss modulation based on the prediction quality data and the scene weight correction value; and obtaining the gating feedback signal based on the risk variables and the indicator feedback signal.

[0105] Figure 8 This is a schematic diagram of a risk perception modeling and uncertainty gating modulation mechanism provided in an embodiment of this application.

[0106] In one embodiment, after completing dynamic feature fusion, the model introduces a risk perception modeling and uncertainty modulation mechanism to quantify the prediction uncertainty of the current sample and feed the uncertainty signal back to the network gating structure to achieve dynamic control of the feature selection process.

[0107] Specifically, the fused features are obtained by fusing dynamically generated fusion weights with adaptive features of the samples. Participate in risk perception modeling and build a risk perception generation module.

[0108] The fusion feature already contains the joint representation information of the global feature modeling branch and the local feature modeling branch under the current sample conditions. Therefore, it can completely depict the overall expression state of the sample in the unified feature space and is more suitable for sample-level uncertainty modeling than single-branch features.

[0109] First, risk modeling is performed on the fused features using a learnable mapping function to obtain sample-level risk variables, which are then interpreted using the following formula.

[0110] (14) in, and These are learnable parameters. The sigmoid function is used to constrain the risk value within the interval [0,1] to characterize the uncertainty of the model's classification decision on the input samples under the current parameter state, and to characterize the difficulty of separability and discriminative stability of the samples in the feature representation space.

[0111] This risk variable does not directly participate in classification prediction, but is introduced as a gating modulation signal into the feature modulation structure of each branch, dynamically influencing the feature selection process. Specifically, a risk modulation term is introduced into the gating calculation of the MLP and CNN branches, expanding the gating expression from being driven by the original features to a joint feature and risk-driven form. Samples with higher risk will enhance the suppression of low-confidence or redundant features, thereby reducing noise propagation; while samples with lower risk will maintain a higher feature retention strength to enhance the expressive power of stable samples.

[0112] Through the above mechanism, this invention realizes uncertainty modeling based on fusion features and explicitly introduces risk information into the feature selection process, enabling the model to have adaptive response capabilities to different sample confidence levels, thereby improving overall robustness and generalization performance.

[0113] Step 107: Update the gating functions corresponding to the first branch gating and the second branch gating respectively according to the gating feedback signal.

[0114] For example, this application constructs a joint optimization mechanism composed of a classification learning objective and multi-index feedback constraints. While maintaining the stability of supervised learning, it uses the classification loss based on sample labels as the basic optimization objective to complete the learning of class probability distributions and the construction of discriminant boundaries. Simultaneously, this invention further introduces a standardized feedback signal generated by the multi-index feedback mechanism, which participates in parameter updates as a constraint term in the model optimization process. It should be noted that this feedback signal does not act independently on the loss function, but rather modulates the internal control structure of the network through the aforementioned mechanism, thus enabling the model parameter update process to possess evaluation index guidance characteristics at the structural level. Under this joint optimization framework, the classification loss is responsible for maintaining the stable convergence of basic discriminative ability, while the multi-index feedback constraints guide the model optimization direction to maintain consistency with the evaluation indicators in the breast cancer risk prediction task, thereby simultaneously improving comprehensive performance indicators such as Precision, Recall, F1-Score, and AUC during training. This mechanism achieves synergistic optimization between supervised learning objectives and clinical evaluation indicators, enabling the model to have better convergence stability and generalization performance under complex breast cancer data distribution conditions.

[0115] Specifically, based on the gating feedback signal, the gating functions corresponding to the first branch gating and the second branch gating are updated respectively. This includes: performing bidirectional information modulation and feature modulation on the first branch gating to obtain a first modulation gating; adjusting and updating the first modulation gating based on the gating feedback signal to obtain an updated first gating function; performing dynamic modulation extension on the preceding channel gating in the second branch gating to obtain a second modulation gating; and adjusting and updating the second modulation gating based on the gating feedback signal to obtain an updated second gating function.

[0116] Furthermore, after updating the gating functions corresponding to the first branch gating and the second branch gating respectively based on the gating feedback signal, the method also includes: updating the corresponding breast cancer risk prediction model based on the updated gating function; and obtaining the breast cancer risk prediction result for the corresponding patient based on the breast cancer risk prediction model.

[0117] Figure 9 This is a schematic diagram of a closed-loop gating modulation mechanism based on multi-index feedback, provided for an embodiment of this application.

[0118] In one embodiment, after the model completes the forward inference process, its performance is evaluated on a validation set to obtain the model's overall performance across different business dimensions. Specifically, the system calculates four evaluation criteria—AUC, Recall, F1 score, and Precision—to form a set of metrics, which are explained by the following formula.

[0119] (15) Given that different indicators have varying degrees of importance, this embodiment assigns differentiated weighting coefficients to each indicator. The system performs a weighted summation of each indicator based on pre-set indicator weights to construct the original indicator reward value, which uniformly characterizes the overall prediction quality of the model in the current round. This is explained by the following formula.

[0120] (16) in, This represents the numerical results of different evaluation metrics. In this embodiment, the weight parameters can be configured according to specific task requirements. For scenarios requiring passing predictions, the weights of Recall and Precision can be increased to enhance the model's ability to identify positive samples and reduce the false positive rate. Furthermore, to suppress the bias problem caused by excessive false positives, this embodiment further introduces a false positive penalty term to correct the reward value, which is explained by the following formula.

[0121] (17) in, This indicates the number of false positive samples in the current round of validation. Represents the total number of samples. This represents the penalty coefficient. Finally, combining the above steps, we obtain the original reward value used for subsequent feedback modeling, which is explained by the following formula.

[0122] (18) The model prediction results are mapped into a unified multi-index performance evaluation signal, providing a basic input for the subsequent feedback modulation mechanism based on dynamic benchmarks.

[0123] Furthermore, to avoid the volatility and instability caused by relying solely on single-round absolute performance metrics during model training, a dynamic benchmark alignment mechanism based on Exponential Moving Average (EMA) is introduced to constrain the historical consistency of the original reward value, thereby constructing a feedback signal with time-smoothing characteristics.

[0124] Firstly, regarding the first... The original reward value obtained from the training round The system builds a dynamic performance benchmark. The update method is explained by the following formula.

[0125] (19) in, This is a smoothing coefficient used to control the weighting ratio between historical and current information. When... When the size is large, the model relies more on historical performance; when When the size is smaller, it is more sensitive to performance changes in the current round.

[0126] Based on this, this embodiment further defines the relative performance change, which is explained by the following formula.

[0127] (20) This difference component is used to characterize the performance gain or degradation of the current model compared to the historical average. When, it indicates that the current model performance is better than the historical level; when When this occurs, it indicates that the current model performance has declined.

[0128] To avoid excessive gradient fluctuations caused by differential rewards in extreme cases, this embodiment further introduces a nonlinear normalized mapping function to compress the differential rewards to a stable range, as explained by the following formula.

[0129] (twenty one) in, By constraining the feedback signal to the range [0,1], abnormal fluctuations are suppressed, and the numerical stability of the feedback signal in subsequent gating modulation and loss optimization is improved. Finally, the standardized feedback signal is obtained. It not only reflects the relative trend of the current model's performance relative to its historical performance, but also serves as an important control variable for subsequent structural modulation and parameter optimization, providing the model with time-consistent training direction constraints.

[0130] In one embodiment, after completing the multi-index evaluation and feedback signal construction based on the validation set, the normalized feedback signal is obtained. This signal, acting as a global control variable, simultaneously influences both the model's parameter optimization and feature selection processes, thereby achieving coordinated optimization of training objectives and structural control.

[0131] At the optimization objective level, this embodiment constructs a joint optimization function consisting of supervised learning loss and a feedback modulation term. The supervised loss employs a labeled smoothing strategy with cross-entropy loss to ensure stable convergence of the basic classification task; the feedback signal... It then participates in loss modulation as a global performance guiding term, which can be explained by the following formula.

[0132] (twenty two) in, and These are the weighting coefficients for the supervision loss and the feedback modulation term, respectively; It employs a label smoothing strategy for cross-entropy loss. When the current model performs better than the historical average, there is... At this point, the minus item will reduce the total loss value, and the reward item will reduce the overall loss value, thereby reinforcing the current effective parameter update direction; when performance degrades, there are Subtracting negative numbers increases the total loss, while reward items increase the overall loss value, thereby suppressing the current inefficient optimization direction.

[0133] Under this mechanism, the feedback signal not only affects the direction of parameter updates, but also acts as a structural-level control factor on the gating units within the network. Specifically, As a global scalar modulation signal, it guides the gating mechanism to dynamically adjust the retention intensity of different feature channels, thereby achieving adaptive control of the information flow path. This allows the model to enhance or suppress feature responses based on changes in the overall predictive performance. When the model's overall performance on the validation set is better than the historical benchmark, there is... Feedback signals tend to enhance the retention strength of key features, improving the propagation ability of effective information in the network; when performance degrades, there are The feedback signal enhances the suppression of redundant or low-contribution features, thereby reducing the impact of noise information on subsequent predictions.

[0134] Through the above mechanism, this embodiment realizes the unified role of feedback signals in the dual paths of "parameter optimization - structural control", enabling the model to not only optimize at the loss function level, but also achieve dynamic adaptive adjustment at the feature selection level, thereby constructing a closed-loop optimization system based on multi-index feedback.

[0135] In one embodiment, the model introduces cross-branch interaction information, risk uncertainty variables, and feedback signals based on historical performance at different stages to achieve dynamic control of the feature selection and parameter optimization processes. However, these mechanisms are embedded in different modules, resulting in a phased expansion of the gating modulation process. To further unify the structural expression within the model and clarify the role of various feedback signals in the gating mechanism, this embodiment performs unified abstract modeling of all the aforementioned gating units, constructing a multi-source feedback-driven structural-level gating expression. This unified expression not only covers the gating mechanisms in the global feature modeling branch (MLP Branch) and the local feature modeling branch (CNN Branch), but also integrates cross-branch interaction information, risk-perceived variables, and multi-index feedback signals, thus forming a consistent structural-level modulation framework.

[0136] Timing of model training t For example, the superscript [ is used for illustration; where the symbol is used for superscripting] Used to characterize the execution steps in a single training iteration loop, with superscript symbols. t The first character used to characterize the model training process t Iteration Timing. It should be noted that the intermediate feature variables involved in the gating mechanisms of each branch in this paper may differ from the final output features in terms of residual fusion or nonlinear transformation along the numerical computation path, but in terms of temporal semantics and functional definition, they all represent the feature states of the same stage. For the sake of consistent expression, this paper will use unified notation to represent this type of variable in subsequent formula derivations, and will no longer distinguish between intermediate computational forms and final output forms.

[0137] The original gating of the global feature modeling branch is explained by the following formula.

[0138] (twenty three) First, we introduce the cross-branch feature interaction and bidirectional information modulation stage, which is explained by the following formula.

[0139] (twenty four) Then, feature modulation is performed on the global feature modeling branch, which can be explained by the following formula.

[0140] (25) This is the output of the global feature modeling branch at that moment.

[0141] It is important to note that and This represents the initial state of the two branches' characteristics at time t, therefore it is logically equivalent to... and Furthermore, after completing the feature-gated modulation... It has been output as a stable representation of the global branch at this moment.

[0142] Subsequent risk and feedback signals only affect the gating parameter update process and do not numerically correct the feature representation itself; therefore, they are denoted as [missing information] in the subsequent unified expression. Therefore, the above expression can be rewritten as: (26) (27) The model then enters the dynamic fusion stage. This is achieved through dynamic weight fusion. t Moment fusion features And further calculate the risk value at that moment. The modulation effect of the risk signal on gating occurs after the feature output at the current time step is completed, without altering the feature representation already generated at the current time step. Therefore, this adjustment result is only used for the gating calculation at the next time step (at which time the dual-branch output will also be updated to the next time step), as explained by the following formula.

[0143] (28) Similarly, after the system enters the model evaluation and performance feedback generation phase based on the validation set, it obtains the normalized feedback signal at the current moment. The adjustment of the gating structure is explained by the following formula.

[0144] (29) At this point, the gating of the global feature modeling branch has been updated. To facilitate a unified temporal expression and reduce formula complexity, the above-mentioned staged gating expression can be simplified into a temporal iterative form, as explained by the following formula.

[0145] (30) Furthermore, similar to the global feature modeling branch, this embodiment also introduces cross-branch information modulation, risk-aware modulation, and feedback signal modulation mechanisms into the gating structure of the local feature modeling branch. It is important to note that this branch contains a two-level structure of channel gating and spatial gating, both of which are located within the attention unit of the gated convolutional block. This embodiment only dynamically modulates and expands the preceding channel gating, while the spatial gating retains its original local spatial response modeling method to avoid the attention coupling enhancement problem caused by repeated modulation.

[0146] use The channel gating of this branch, in its original form, is explained by the following formula.

[0147] (31) by This represents the input to the attention unit of the gated convolutional block, in order to The channel feature representation at the current moment introduces cross-branch feature interaction and bidirectional information modulation, which is explained by the following formula.

[0148] (32) It should be noted that In terms of temporal logic, it is equivalent to the final output of the local feature modeling branch. Therefore, the above expression can be simplified to: (33) (34) Similar to the global feature modeling branch, feature modulation for this time step is now completed. The adjustment results of risk adjustment and feedback value adjustment are only used for the gating calculation in the next time step, and are explained by the following formula.

[0149] (35) For spatial gating, it maintains its original structure, which can be explained by the following formula.

[0150] (36) Spatial feature modulation is then performed, which is explained by the following formula.

[0151] (37) This is the final output of the attention unit in the gated convolutional block. It's worth noting that, in terms of timing... The final output of the local feature modeling branch equivalence.

[0152] Finally, the summary section is explained using the following formula.

[0153] (38) (39) (40) The above are embodiments of the method proposed in this application. Based on the same concept, embodiments of this application also provide a breast cancer risk prediction system based on dynamic gating and feedback optimization, the structure of which is as follows: Figure 10 As shown.

[0154] Figure 10 This is a schematic diagram of the internal structure of a breast cancer risk prediction system based on dynamic gating and feedback optimization, provided as an embodiment of this application. Figure 10 As shown, the device includes: At least one processor 1001; And a memory 1002 that is communicatively connected to at least one processor; The memory 1002 stores instructions that can be executed by at least one processor. The instructions are executed by at least one processor 1001 to enable at least one processor 1001 to implement a breast cancer risk prediction method based on dynamic gating and feedback optimization.

[0155] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments for IoT devices and media are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0156] The systems, media, and methods provided in this application are one-to-one correspondences. Therefore, the systems and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the systems and media will not be repeated here.

[0157] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0158] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0159] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0160] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0161] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0162] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0163] Computer-readable media include both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0164] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0165] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A breast cancer risk prediction method based on dynamic gating and feedback optimization, characterized in that, The method includes: Acquire clinical diagnostic data of breast cancer and perform data preprocessing on the clinical diagnostic data of breast cancer to obtain clinical diagnostic feature data of breast cancer. Construct a global feature modeling branch and a local feature modeling branch, and repeat the following operations until the model prediction accuracy reaches a preset threshold to obtain the breast cancer risk prediction result: The clinical diagnostic feature data of breast cancer is input into the global feature modeling branch, and the global feature data and the first branch gating are determined by the auxiliary modulation of the local feature modeling branch. The clinical diagnostic feature data of breast cancer is input into the local feature modeling branch, and the local feature data and the second branch gating are determined by the context guidance of the global feature modeling branch. Calculate the fusion weights corresponding to the global feature data and the local feature data respectively, and fuse the global feature data and the local feature data into corresponding dual-branch fused feature data according to the fusion weights; Based on the dual-branch fusion feature data, the indicator feedback signal and risk variable are calculated to obtain the gating feedback signal; Based on the gating feedback signal, update the gating functions corresponding to the first branch gating and the second branch gating respectively; The clinical diagnostic feature data of breast cancer is input into the global feature modeling branch. With the auxiliary modulation of the local feature modeling branch, the global feature data and the first branch gating are determined, specifically including: The clinical diagnostic feature data of breast cancer is feature-mapped, and the feature-mapped feature data is input into several serially gated residual blocks; Obtain the first cross-branch signal of the local feature modeling branch, and based on the plurality of serially gated residual blocks and the cross-branch signal, determine the gating function of the plurality of serially gated residual blocks to determine the first branch gating; Based on the gating function, the feature data is modulated to obtain the corresponding first intermediate variable; The intermediate variables are nonlinearly activated using a preset residual path to determine the global feature data; The clinical diagnostic feature data of breast cancer is input into the local feature modeling branch. Guided by the context of the global feature modeling branch, the local feature data and the second branch gating are determined, specifically including: The clinical diagnostic feature data of breast cancer is hierarchically normalized, and the hierarchically normalized feature data is input into a preset CBAM module; The feature data is processed through the CBAM module to obtain the corresponding second intermediate variable; Obtain the second cross-branch signal of the global feature modeling branch, and determine the corresponding channel gating based on the cross-branch signal to obtain the corresponding second branch gating; Based on the second branch gating and the second intermediate variable, the local feature data is determined through feature modulation.

2. The breast cancer risk prediction method based on dynamic gating and feedback optimization according to claim 1, characterized in that, The clinical diagnostic data of breast cancer are preprocessed to obtain clinical diagnostic feature data of breast cancer, specifically including: The clinical diagnostic data of breast cancer are subjected to sample repair to obtain clinical diagnostic data of breast cancer to be standardized; wherein, the sample repair includes: sample integrity repair and sample expansion; The clinical diagnostic data of breast cancer to be standardized are standardized, and the standardized data is converted into floating-point tensors to obtain clinical diagnostic feature data of breast cancer.

3. The breast cancer risk prediction method based on dynamic gating and feedback optimization according to claim 1, characterized in that, Calculating the fusion weights corresponding to the global feature data and the local feature data respectively includes: The global feature data and the local feature data are concatenated to obtain a concatenated feature structure; The spliced ​​feature structure is modeled with fusion weights to obtain the fusion weights.

4. The breast cancer risk prediction method based on dynamic gating and feedback optimization according to claim 1, characterized in that, Based on the fusion weights, the global feature data and the local feature data are fused into corresponding dual-branch fusion feature data, specifically including: Based on the fusion weights, the global feature data and the local feature data are weighted and fused to obtain the dual-branch fused feature data.

5. The breast cancer risk prediction method based on dynamic gating and feedback optimization according to claim 1, characterized in that, Based on the aforementioned dual-branch fusion feature data The gating feedback signal is obtained by calculating the indicator feedback signal and risk variables, specifically including: Risk modeling is performed on the dual-branch fusion feature data using a preset learnable mapping function to determine the risk variables; Obtain the set of indicators corresponding to the validation set, and configure the differential weight coefficients corresponding to each set of indicators; wherein, each set of indicators includes: area under the curve, recall, F1 score, and precision; Calculate the differential weight coefficients and the prediction quality data corresponding to each set of indicators, and calculate the scenario weight correction value corresponding to the breast cancer risk grading; Based on the predicted quality data and the scene weight correction value, the indicator feedback signal is determined through signal loss modulation; The gating feedback signal is obtained based on the risk variable and the indicator feedback signal.

6. The breast cancer risk prediction method based on dynamic gating and feedback optimization according to claim 1, characterized in that, Based on the gating feedback signal, the gating functions corresponding to the first branch gating and the second branch gating are updated respectively, specifically including: The first branch gate is subjected to bidirectional information modulation and feature modulation to obtain the first modulation gate; Based on the gating feedback signal, the first modulation gating is adjusted and updated to obtain the updated first gating function; The preceding channel gate in the second branch gate is dynamically modulated and extended to obtain the second modulation gate; Based on the gating feedback signal, the second modulation gating is adjusted and updated to obtain the updated second gating function.

7. The breast cancer risk prediction method based on dynamic gating and feedback optimization according to claim 1, characterized in that, After updating the gating functions corresponding to the first branch gating and the second branch gating according to the gating feedback signal, the method further includes: Based on the updated gating function, update the corresponding breast cancer risk prediction model; Based on the breast cancer risk prediction model, the breast cancer risk prediction results for the corresponding patients are obtained.

8. A breast cancer risk prediction system based on dynamic gating and feedback optimization, characterized in that, The system includes: At least one processor; And, a memory communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, which are executed by the at least one processor to enable the at least one processor to implement a breast cancer risk prediction method based on dynamic gating and feedback optimization as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Breast cancer risk prediction system and method based on deep learning

    CN120708896A

  • Breast cancer focus benign and malignant discrimination method based on gated multi-expert mechanism

    CN121483554A