Unbalanced perception-free neural network architecture search method for image classification

By employing a training-free neural network architecture search method, we have addressed the issues of complex network architecture design and insufficient applicability of surrogate metrics in imbalanced medical image classification. This method enables rapid screening of high-performance network architectures, thereby improving the efficiency and accuracy of medical image classification.

CN121545013BActive Publication Date: 2026-04-21CHINA WEST NORMAL UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA WEST NORMAL UNIVERSITY
Filing Date
2026-01-20
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Existing technologies suffer from problems such as complex network architecture design, insufficient applicability of surrogate indices, premature convergence, and getting trapped in local optima in imbalanced medical image classification tasks, resulting in low efficiency in medical image classification.

Method used

An imbalanced perceptual training-free neural network architecture search method for image classification is adopted. By configuring the search space and generating an initial candidate architecture population, training-free evaluation and surrogate scoring are performed. Combined with Softmax probability sampling, mutation control module and evolutionary search, three selection mutation mechanisms are introduced to optimize population diversity and avoid local optima.

Benefits of technology

This method enables the rapid selection of high-performance neural network architectures suitable for imbalanced medical datasets without training candidate network weights, thereby reducing time overhead and improving the efficiency and accuracy of medical image classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121545013B_ABST
    Figure CN121545013B_ABST
Patent Text Reader

Abstract

This invention relates to an imbalance-aware, training-free neural network architecture search method for image classification. It designs the first surrogate index for long-tailed medical dataset classification tasks and introduces three selection and mutation mechanisms during the neural architecture search process, effectively solving the problems of high time overhead, dataset imbalance, and susceptibility to local optima. Through imbalance-aware data sampling and class weighting, candidate architectures are rapidly forward-statistically evaluated on a small number of samples to obtain a training-free surrogate score that characterizes tail recognition ability and overall separability. A unified architecture fitness is formed through a fusion module, enabling rapid ranking and selection of candidate structures. By balancing optimality preservation and exploration through probabilistic selection and the three selection and mutation mechanisms, and combining model complexity constraints, architecture outputs suitable for clinical deployment can be achieved. This significantly reduces time overhead and improves the efficiency and reliability of architecture selection in imbalanced medical image classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of automated machine learning technology, and in particular relates to a method for searching imbalanced perceptual training-free neural network architectures for image classification. Background Technology

[0002] Medical image classification plays a crucial role in early disease screening, lesion localization, and clinical auxiliary diagnosis, significantly improving diagnostic efficiency. Clinical datasets commonly suffer from class imbalance, characterized by a significantly smaller number of lesion-class samples compared to common or negative categories. In image classification tasks, convolutional neural networks and neural architecture search methods demonstrate immense potential due to their powerful inductive bias and automated architecture optimization, respectively.

[0003] Despite the success of these methods in imbalanced medical image classification tasks and the potential of neural architecture search (NAS) methods, the following technical problems remain.

[0004] First, the network architecture of deep and traditional machine learning methods still relies heavily on expert experience for manual design. It requires balancing factors such as pathological characterization, imaging modality, and data imbalance, resulting in a time-consuming and complex process that limits the universality and scalability of the methods.

[0005] Secondly, existing surrogate metrics for training-free NAS are mostly validated on natural images, and their applicability and robustness on medical datasets with imbalanced class distributions are still insufficient. Direct transfer will lead to a low correlation between network ranking and actual performance.

[0006] Furthermore, during the neural architecture search phase, it is susceptible to premature convergence due to exploration exploitation imbalance and candidate diversity decay, thus falling into local optima.

[0007] Therefore, this invention aims to provide a training-free neural network architecture search method for imbalanced perception in image classification, thereby achieving efficient medical image classification. First, a training-free NAS method is proposed, avoiding the manual design process required for CNNs, thus reducing time and effort costs. Then, a zero-cost surrogate index for imbalanced medical image classification is designed to alleviate the problem of insufficient relevance of NAS surrogate in imbalanced scenarios. Furthermore, three selection mutation mechanisms are introduced based on evolutionary algorithms to enhance population diversity during the NAS search process and improve the discovery of high-quality architectures, thereby avoiding the problem of getting trapped in local optima. Summary of the Invention

[0008] The purpose of this invention is to provide an imbalanced perceptual training-free neural network architecture search method for image classification, in order to solve the technical problems existing in the prior art and achieve efficient medical image classification.

[0009] The technical solution adopted in this invention is as follows:

[0010] A method for searching imbalance-aware, training-free neural network architectures for image classification includes the following steps:

[0011] S1: Configure the initial candidate architecture population to be randomly generated within the search space, and set the initial values ​​or ranges of the initial individual mutation rate (IMR) and global mutation rate (GMR) for each candidate architecture.

[0012] S2: Collect samples of a specified batch size from the imbalanced medical image dataset, perform training-free evaluation on each candidate architecture, obtain feature gradient information related to the candidate architecture, and after standardizing and robustly transforming the feature gradient information, perform imbalance-aware weighting to generate surrogate score values ​​for the candidate architectures. ;

[0013] S3: Agent score based on each candidate architecture Set up a Softmax probability sampling selection mechanism to select the agent score value. The temperature-scaled exponential mapping is converted into selection probabilities, and candidate architectures are randomly sampled according to the selection probabilities to determine the parent population;

[0014] S4: Set up the mutation control module, based on the parent population and its corresponding agent score value. The individual mutation rate (IMR) of the parent generation and the global mutation rate (GMR) of the current generation are updated, and structural mutation operations are performed on the parent generation candidate architecture under the constraints of the IMR and the GMR to form the next generation population.

[0015] S5: Repeat steps S2-S4 to perform a cyclical evolutionary search for evaluating, selecting, and mutating candidate architectures until the final generation evaluation is completed, and output the surrogate score. The optimal target architecture.

[0016] Preferably, the specific process of step S1 is as follows:

[0017] S11: Configure the candidate architecture search space Ω, set the structural encoding method, optional operator set and connection rules of the candidate architecture, so that the candidate architecture can be combined by Normal cell and Reduction cell and expanded according to the preset Stage structure;

[0018] S12: Set the initial population size N and the random sampling strategy, and randomly sample candidate architectures within the search space Ω to obtain the candidate architecture set. ;

[0019] S13: For the candidate architecture set Perform structural validity checks and constraint elimination, removing candidate architectures that do not meet the preset structural constraints to form an initial candidate architecture population. ;

[0020] S14: The initial candidate architecture population Each candidate architecture individual Set individual variation rates separately Initial value or range of values, and set the global mutation rate for the current generation. The initial value or range of values ​​is used for mutation control in subsequent evolutionary searches.

[0021] Preferably, the specific process of step S2 is as follows:

[0022] S21: From an imbalanced medical image dataset Collect small batches of samples ,in For batch size, For the input image, Category labels;

[0023] S22: For the aforementioned small batch of sample sets For each candidate architecture Perform a forward propagation to obtain multi-layer feature activations And perform a backpropagation once to obtain the loss gradient corresponding to the feature activation. ,in Representation layer index, L The number of layers participating in the evaluation;

[0024] S23: For each layer Feature activation Calculate the mean within the layer with intralayer standard deviation :

[0025] ;

[0026] ;

[0027] in, For the first The dimension of the activation channel after the layer space is expanded;

[0028] S24: Based on step S23 and For each layer Feature activation is normalized using Z-score to obtain normalized activation. :

[0029] ;

[0030] in, To prevent division by zero of constants;

[0031] S25: Based on standardized activation With gradient Calculate the Fisher inner product for each sample in each layer. :

[0032] ;

[0033] S26: For the Fisher inner product Perform logarithmic smoothing and absolute value processing to obtain the robust amount required for category-hierarchy aggregation:

[0034] ;

[0035] Among them, for categories , This indicates that the label in the current mini-batch is a category. The sample set, ;

[0036] S27: Set class weights based on the number of samples in each class of the dataset. :

[0037] ;

[0038] in, For category The number of samples, The maximum number of samples in the largest category. For hyperparameters;

[0039] S28: Based on the category weights With the category-hierarchy aggregation amount Agent scores for generating candidate architectures :

[0040] ;

[0041] And the agent score The fitness of the candidate architecture is used in subsequent steps S3–S5.

[0042] Preferably, the specific process of step S3 is as follows:

[0043] S31: Agent scores for each candidate architecture obtained in step S2 Set the temperature coefficient And score the agent. Perform a temperature-scaled exponential mapping to generate selection probabilities. ;

[0044] S32: Based on the stated selection probability The candidate architectures are randomly sampled using the Softmax probability sampling method to determine the parent population. The selection probability satisfy:

[0045] ;

[0046] in, This represents the current generation of candidate architecture population size;

[0047] S33: Transfer the parent population Output to subsequent mutation stages, while retaining the surrogate score of the parent individual. As input for adaptive variation control.

[0048] Preferably, step S4 specifically includes:

[0049] S41: Based on the parent population determined in step S3 and its corresponding agent rating The agent score is normalized to obtain a normalized score. :

[0050] ;

[0051] in , It is a very small positive constant used to avoid the denominator being zero;

[0052] S42: Based on the normalized score Update the individual variation rate for each parent individual The individual variation rate is then truncated to a preset range. :

[0053] ;

[0054] Where represents the truncation function, and Used as parent individuals The structural variation intensity parameter during offspring generation;

[0055] S43: Update the global mutation rate based on the current search status. The global mutation rate is truncated to a preset range. :

[0056] ;

[0057] in, The global baseline mutation rate varies with algebra and is used to characterize the overall exploration intensity in the current search phase;

[0058] S44: In the individual variability rate With the global mutation rate Under the common constraints, the structural mutation operator is executed on the parent candidate architecture. Generate a set of child architectures :

[0059] ;

[0060] Wherein, the structural mutation operator It includes at least one of the following: operator replacement, connection reconnection, channel number adjustment, or network depth adjustment;

[0061] S45: Set the sub-architecture collection The population is input into the next round of evaluation and participates in environmental selection together with the parent population to update and obtain the next generation of candidate architecture populations. :

[0062] ;

[0063] in, This represents an environment selection operator based on agent rating, used to retain high-rated individuals and maintain population diversity under a given capacity constraint.

[0064] Preferably, the specific process of step S5 is as follows:

[0065] S51: Set a search termination condition, which includes at least one of the following: the number of generations reaches a preset upper limit. The cumulative number of assessments has reached the preset budget. Or the best agent score in continuous The intra-generation improvement is less than the preset threshold. The optimal agent rating is defined as follows:

[0066] ;

[0067] S52: If the termination condition is not met, iteratively execute the cross-generational update process: for the current generation of candidate architecture population Chinese architecture Calculate imbalance-aware agent scores without weight training. Based on agent scores, the system completes parent selection, offspring generation, and environment selection to obtain the next generation of candidate architecture population. ;

[0068] S53: After each generation update, maintain a set of cross-generational optimal solution archives. And the best individuals of the present generation will be recorded in the archives:

[0069] ;

[0070] And save the above The structure encoding, operator configuration, and connection topology information are processed in a loop until the termination condition is met, and the optimal architecture of the population evolution is output.

[0071] The beneficial effects of this invention include:

[0072] The imbalance-aware training-free neural network architecture search method for image classification provided by this invention differs from the traditional NAS approach, which requires long-term training on a large number of candidate architectures. This invention does not rely on complete training during the search phase, but instead uses imbalance-aware training-free agent scoring to quickly and comparablely distinguish the merits of candidate architectures.

[0073] Furthermore, in the neural architecture search phase, this invention introduces three selection and mutation mechanisms based on evolutionary algorithms. These three mechanisms mutually constrain each other during the search process, thereby guiding the search for the optimal architecture. This training-free NAS technology theoretically guarantees that this invention can search for the optimal architecture suitable for medical clinical data on imbalanced datasets. It effectively avoids the time overhead of manually designing architectures, stabilizes the correlation between surrogate metric scores and actual architecture performance, and effectively avoids getting trapped in local optima. It is particularly suitable for the technical needs of assisting doctors in diagnosis, such as medical image classification.

[0074] Through the complete technical implementation path described above, this invention successfully achieves the ability to find a suitable neural network architecture for a given medical dataset in a simple candidate search space without training, providing a technical solution with rigorous theoretical guarantees and practical engineering feasibility for medical image classification tasks.

[0075] Other advantages, objectives, and features of the invention will be set forth in part in the detailed description that follows, and in part will be apparent to those skilled in the art from the following examination, or may be learned from practice of the invention. The objectives and other advantages of the invention can be realized and obtained through the following description. Attached Figure Description

[0076] Figure 1 This is a flowchart provided in an embodiment of the present invention.

[0077] Figure 2 This is a graph showing the experimental results of the correlation coefficient on the MedMNIST dataset provided in this embodiment of the invention.

[0078] Figure 3 This is a radar chart showing the multi-index experimental results on the MedMNIST, ISIC, and BUSI datasets provided in this embodiment of the invention. Figure 3 In this context, 'a' represents the experimental results of the dermoscopic skin lesion dataset. Figure 3 In this context, 'b' represents the experimental results of the breast ultrasound dataset. Figure 3 In the figure, 'c' represents the experimental results of a small medical image dataset. Detailed Implementation

[0079] The following is in conjunction with the appendix Figures 1-3 The present invention will be described in further detail. It should be understood that the preferred embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.

[0080] Example 1

[0081] See appendix Figure 1 As shown, the imbalanced perceptual no-training neural network architecture search method for image classification includes the following steps:

[0082] S1: Configure the initial candidate architecture population to be randomly generated within the search space, and set the initial values ​​or ranges of the initial individual mutation rate (IMR) and global mutation rate (GMR) for each candidate architecture.

[0083] S2: Collect samples of a specified batch size from the imbalanced medical image dataset. Perform training-free evaluation processing on each candidate architecture generated in step S1 to obtain feature gradient information related to the candidate architecture. After standardizing and robustly transforming the feature gradient information, apply imbalance-aware weighting to generate surrogate score values ​​for the candidate architecture. .

[0084] S3: Agent score values ​​for each candidate architecture obtained in step S2 Set up a Softmax probability sampling selection mechanism to select the agent score value. The temperature-scaled exponential mapping is converted into selection probabilities, and candidate architectures are randomly sampled according to these selection probabilities to determine the parent population.

[0085] S4: Set up the mutation control module, based on the parent population and its corresponding agent score value. The individual mutation rate (IMR) of the parent generation and the global mutation rate (GMR) of the current generation are updated, and structural mutation operations are performed on the parent generation candidate architecture under the constraints of the IMR and the GMR to form the next generation population.

[0086] S5: Repeat steps S2-S4 to perform a cyclical evolutionary search for evaluating, selecting, and mutating candidate architectures until the final generation evaluation is completed, and output the surrogate score. The optimal target architecture.

[0087] In this embodiment, the specific process of step S1 is as follows:

[0088] S11: Configure the candidate architecture search space Ω, set the structural encoding method, optional operator set and connection rules of the candidate architecture, so that the candidate architecture can be combined by Normal cell and Reduction cell and expanded according to the preset Stage structure;

[0089] S12: Set the initial population size N and the random sampling strategy, and randomly sample candidate architectures within the search space Ω to obtain the candidate architecture set. ;

[0090] S13: For the candidate architecture set Perform structural validity checks and constraint elimination, removing candidate architectures that do not meet the preset structural constraints to form an initial candidate architecture population. ;

[0091] S14: The initial candidate architecture population Each candidate architecture individual Set individual variation rates separately The initial value or range of values ​​is set, and the global mutation rate of the current generation is set. The initial value or range of values ​​is used for mutation control in subsequent evolutionary searches.

[0092] Example 2

[0093] Based on Example 1, the specific process of step S2 is as follows:

[0094] S21: From an imbalanced medical image dataset Collect small batches of samples ,in For batch size, For the input image, Category labels;

[0095] S22: For the aforementioned small batch of sample sets For each candidate architecture Perform a forward propagation to obtain multi-layer feature activations And perform a backpropagation once to obtain the loss gradient corresponding to the feature activation. ,in Representation layer index, L The number of layers participating in the evaluation;

[0096] S23: For each layer Feature activation Calculate the mean within the layer with intralayer standard deviation :

[0097] ;

[0098] ;

[0099] in, For the first The dimension of the activation channel after the layer space is expanded;

[0100] S24: Based on step S23 and For each layer Feature activation is normalized using Z-score to obtain normalized activation. :

[0101] ;

[0102] in, To prevent division by zero of constants;

[0103] S25: Based on standardized activation With gradient Calculate the Fisher inner product for each sample in each layer. :

[0104] ;

[0105] S26: For the Fisher inner product Perform logarithmic smoothing and absolute value processing to obtain the robust amount required for category-hierarchy aggregation:

[0106] ;

[0107] Among them, for categories , This indicates that the label in the current mini-batch is a category. The sample set, ;

[0108] S27: Set class weights based on the number of samples in each class of the dataset. :

[0109] ;

[0110] in, For category The number of samples, The maximum number of samples in the largest category. For hyperparameters;

[0111] S28: Based on the category weights With the category-hierarchy aggregation amount Agent scores for generating candidate architectures :

[0112] ;

[0113] And the agent score The fitness of the candidate architecture is used in subsequent steps S3–S5.

[0114] In this embodiment, the specific process of step S3 is as follows:

[0115] S31: Agent scores for each candidate architecture obtained in step S2 Set the temperature coefficient And score the agent. Perform a temperature-scaled exponential mapping to generate selection probabilities. ;

[0116] S32: Based on the stated selection probability The candidate architectures are randomly sampled using the Softmax probability sampling method to determine the parent population. The selection probability satisfy:

[0117] ;

[0118] in, This represents the current generation of candidate architecture population size;

[0119] S33: Transfer the parent population Output to subsequent mutation stages, while retaining the surrogate score of the parent individual. As input for adaptive variation control.

[0120] Example 3

[0121] Based on Example 1 or Example 2, step S4 specifically includes:

[0122] S41: Based on the parent population determined in step S3 and its corresponding agent rating The agent score is normalized to obtain a normalized score. :

[0123] ;

[0124] in , It is a very small positive constant used to avoid the denominator being zero;

[0125] S42: Based on the normalized score Update the individual variation rate for each parent individual The individual variation rate is then truncated to a preset range. :

[0126] ;

[0127] Where represents the truncation function, and Used as parent individuals The structural variation intensity parameter during offspring generation;

[0128] S43: Update the global mutation rate based on the current search status. The global mutation rate is truncated to a preset range. :

[0129] ;

[0130] in, The global baseline mutation rate varies with algebra and is used to characterize the overall exploration intensity in the current search phase;

[0131] S44: In the individual variability rate With the global mutation rate Under the common constraints, the structural mutation operator is executed on the parent candidate architecture. Generate a set of child architectures :

[0132] ;

[0133] Wherein, the structural mutation operator It includes at least one of the following: operator replacement, connection reconnection, channel number adjustment, or network depth adjustment;

[0134] S45: Set the sub-architecture collection The population is input into the next round of evaluation and participates in environmental selection together with the parent population to update and obtain the next generation of candidate architecture populations. :

[0135] ;

[0136] in, This represents an environment selection operator based on agent rating, used to retain high-rated individuals and maintain population diversity under a given capacity constraint.

[0137] In this embodiment, the specific process of step S5 is as follows:

[0138] S51: Set a search termination condition, which includes at least one of the following: the number of generations reaches a preset upper limit. The cumulative number of assessments has reached the preset budget. Or the best agent score in continuous The intra-generation improvement is less than the preset threshold. The optimal agent rating is defined as follows:

[0139] ;

[0140] S52: If the termination condition is not met, iteratively execute the cross-generational update process: for the current generation of candidate architecture population Chinese architecture Calculate imbalance-aware agent scores without weight training. Based on agent scores, the system completes parent selection, offspring generation, and environment selection to obtain the next generation of candidate architecture population. ;

[0141] S53: After each generation update, maintain a set of cross-generational optimal solution archives. And the best individuals of the present generation will be recorded in the archives:

[0142] ;

[0143] And save the above The structure encoding, operator configuration, and connection topology information are processed in a loop until the termination condition is met, and the optimal architecture of the population evolution is output.

[0144] This invention organically embeds an imbalance-aware, training-free agent scoring system, designed for long-tail medical data distribution, into the core optimization objective of Neural Architecture Search (NAS) for medical clinical image classification. This achieves a complete technical path from "abstract agent evaluation criteria" to "executable evolutionary search algorithm." Through imbalance-aware data sampling and class weighting, this invention enables rapid forward / backward statistical analysis of candidate architectures using only a small number of samples, without training candidate network weights. This yields a training-free agent score that characterizes tail-end recognition ability and overall separability. Furthermore, probabilistic selection and adaptive mutation mechanisms are introduced to balance "preserving excellence" and "exploration," thereby efficiently screening high-performance network structures suitable for clinical deployment constraints.

[0145] Example 4

[0146] Based on Example 1, Example 2, or Example 3, this example provides... A dataset consisting of medical image training samples ;

[0147] in, For the first Zhang's medical images, For category labels, Let be the number of categories. To adapt to the long-tailed imbalanced distribution commonly found in medical scenarios, this invention first performs statistical analysis on the category distribution, assuming the th category is... The number of samples in each class is Then the prior proportion of the categories is:

[0148] ;

[0149] And construct the category weights accordingly. This is used to increase the contribution of tail categories to the agent score, for example, by employing:

[0150] ;

[0151] in, To prevent division by zero and the resulting stable term. Then, from the dataset... A small batch of samples was drawn from the middle. This batch is used for training-free evaluation of candidate architectures. An imbalanced sensing sampling strategy can be employed to ensure that tail-class samples are included. It is covered.

[0152] To reduce the interference of differences in the numerical scale of features across different layers on the proxy score, this invention performs intra-layer normalization on the intermediate features of the network before calculating the proxy score. Specifically, let the candidate network be at the th layer... Layer to the first The feature activation of each sample is... The standardization result is:

[0153] ;

[0154] in, and They represent the first Layer activation in batch Mean and standard deviation within, To prevent small constants from being divided by zero, and to map "training-free evaluation" from abstract criteria to an executable computational process, this invention provides the following definition.

[0155] Definition 1: Tail-perception learnability statistics

[0156] Let the candidate architecture be Randomly initialized parameters are The network is recorded as The weighted gradient expectation of tail-aware sensing is defined in this invention as:

[0157] ;

[0158] in, For sample categories The corresponding weights This indicates the network output regarding the parameters. The gradient (which can be obtained through a single backpropagation in engineering). Furthermore, the energy form of the above statistics is defined as the tail-perceived learnability component:

[0159] ;

[0160] This component, without training the weights, can directly reflect the response strength of the candidate architecture to the "supervised signal with class weights", especially emphasizing the learnability of the tail classes.

[0161] Definition 2: Overall expressiveness and separability statistics

[0162] To characterize the feature representation ability and inter-class separability of candidate architectures under random initialization, this invention extracts standardized features in several key layers. And define the feature covariance of this layer. Inter-class divergence Let the first... Class in The mean characteristics of the layer are The overall mean is Then the inter-class divergence is defined as:

[0163] ;

[0164] Based on this, the present invention constructs expressive / separable components:

[0165] ;

[0166] in, Represents the largest eigenvalue operator. For balance coefficient, This represents the number of layers involved in the statistics. This component relies solely on forward feature statistics and can be computed without any weight training.

[0167] Definition 3: Imbalance-aware training-free agent scoring (architecture fitness)

[0168] This invention uses a fusion function to combine the two components obtained from Definition 1 and Definition 2. Synthesize into a unified agent rating:

[0169] ;

[0170] in It is a coordinate monotonic fusion function, that is, when Increase or When it increases, This also increases accordingly to ensure that the agent score remains semantically consistent and interpretable.

[0171] The core technological contribution of this invention lies in establishing a systematic mapping mechanism from abstract evaluation indicators such as "tail learnability, overall separability, and expressiveness" to "a proxy score that can be directly obtained through a single forward / backward pass of a small number of samples." Through a carefully designed technical solution, a strict one-to-one correspondence is established between the abstract objects and the data and computational objects in the actual training / search process: wherein the real data distribution consists of the original medical dataset... Bearing; training-free statistical sampling is based on mini-batch sets Bearing; the abstract "tail importance" is determined by class weights. Concrete implementation; the abstract "learnability" is determined by weighted gradient statistics. Concrete implementation; the abstract "expressiveness and separability" are... and The combined statistics are specifically implemented; ultimately, through a fusion function. Forming a single fitness , used for evolutionary search.

[0172] Based on the above-mentioned mapping relationship from theory to implementation, this invention fully embeds the training-free agent scoring into the optimization objective of NAS, transforming the abstract problem of "selecting the best architecture" into the following executable search objective:

[0173] ;

[0174] When clinical deployment constraints need to be met simultaneously, complexity constraints are introduced. (For example, the number of parameters, FLOPs, or inference latency), resulting in a constrained optimization form:

[0175] ;

[0176] Alternatively, an executable single-objective score can be constructed using a penalty-based approach:

[0177] ;

[0178] In order to balance "high score preservation" and "diversity exploration" in the subsequent search phase, and to avoid premature convergence and local optima trapping on imbalanced medical data, this invention further adopts an evolutionary search strategy and introduces three adaptive selection and mutation mechanisms.

[0179] First, there is the selection of Softmax probability sampling, for the th Individuals by temperature Calculate the probability of selection:

[0180] ;

[0181] Then, individual adaptive variation intensity control is performed, first by normalizing the scores:

[0182] ;

[0183] Remapping yields the offspring mutation rate:

[0184] ;

[0185] Secondly, there is the adaptive adjustment of the global baseline variability rate, which adjusts based on the degree of contemporary convergence and structural diversity. Dynamic updates suppress search stagnation and improve global exploration efficiency from a mechanism perspective.

[0186] Unlike the common NAS technique approach in existing technologies that evaluates candidate architectures through full training or long training curves, this invention obtains reliable surrogate scores for imbalanced long-tail medical data through rapid statistical analysis of a small number of samples without weight training in the candidate network. Furthermore, this invention explicitly introduces tail class weights and three adaptive selection / mutation mechanisms during the search process, enabling the search to both stably retain high-scoring architectures and continuously explore potentially superior structures. This effectively reduces time overhead and improves the efficiency and reliability of architecture selection in imbalanced medical image classification tasks.

[0187] Through the complete technical implementation path described above, this invention successfully transforms the training-free agent scoring from a mathematical statistical definition to a practically deployable NAS search algorithm, providing an engineering-feasible and interpretable technical solution for rapidly obtaining high-performance network structures that meet resource constraints in clinical scenarios.

[0188] Figure 2 The correlation coefficients of the present invention on 11 subsets of the MedMNIST dataset are shown, which demonstrate that the agent score and architecture performance of the method of the present invention are strongly correlated on this dataset. Figure 3 The radar charts showing the performance of the method of the present invention compared with other methods on three datasets demonstrate that the method of the present invention achieves effective performance while having the minimum number of parameters.

[0189] In summary, the imbalanced perception training-free neural network architecture search method for image classification provided by this invention rapidly selects high-performance network structures suitable for long-tailed medical data distributions from a predefined search space without training candidate network weights. This invention designs the first surrogate index for long-tailed medical dataset classification tasks and introduces three selection and mutation mechanisms during the neural architecture search process, effectively solving the problems of high time overhead, dataset imbalance, and susceptibility to local optima. Through imbalanced perception data sampling and class weighting, this invention performs rapid forward statistics on candidate architectures on a small number of samples, obtaining a training-free surrogate score that characterizes tail recognition ability and overall separability. A unified architecture fitness is formed through a fusion module, thereby achieving rapid ranking and selection of candidate structures. Based on this, this invention introduces an evolutionary search strategy oriented towards stability and diversity, balancing "preserving excellence" and "exploration" through probabilistic selection and the three selection and mutation mechanisms, and can combine model complexity constraints to achieve architecture outputs suitable for clinical deployment. This invention can significantly reduce time overhead, improve the efficiency and reliability of architecture selection in imbalanced medical image classification, and provide a feasible technical path for rapidly obtaining high-performance model structures in clinical scenarios.

Claims

1. A method for searching imbalanced perceptual, training-free neural network architectures for image classification, characterized in that, Includes the following steps: S1: Configure the initial candidate architecture population to be randomly generated within the search space, and set the initial values ​​or ranges of the individual mutation rate and the global mutation rate for each candidate architecture. S2: Collect samples of a specified batch size from the imbalanced medical image dataset, perform training-free evaluation on each candidate architecture, obtain feature gradient information related to the candidate architecture, and perform imbalance-aware weighting on the feature gradient information after standardization and robust transformation to generate surrogate score values ​​for the candidate architecture. S3: Based on the agent score of each candidate architecture, a Softmax probability sampling selection mechanism is set up to convert the agent score into a selection probability through temperature-scaled exponential mapping, and the candidate architecture is randomly sampled according to the selection probability to determine the parent population. S4: Set up a mutation control module to update the individual mutation rate of the parent generation and the global mutation rate of the current generation based on the parent generation population and its corresponding agent score value. Under the constraints of the individual mutation rate and the global mutation rate of the current generation, perform structural mutation operation on the parent generation candidate architecture to form the next generation population. S5: Repeat steps S2-S4 to perform a cyclical evolutionary search for evaluating, selecting, and mutating candidate architectures until the last generation of evaluation is completed, and output the target architecture with the best agent score. The specific process of step S2 is as follows: S21: Acquire a small batch of samples from an imbalanced medical image dataset; S22: For a mini-batch sample set, perform forward propagation once for each candidate architecture to obtain multi-layer feature activations, and perform backpropagation once to obtain the loss gradient corresponding to the feature activations; S23: Calculate the in-layer mean and in-layer standard deviation for the feature activation of each layer; S24: Based on the mean and standard deviation within the layer, perform Z-score normalization on the feature activations of each layer to obtain normalized activations; S25: Calculate the Fisher inner product for each sample in each layer based on the normalized activation and loss gradients; S26: Perform logarithmic smoothing and absolute value processing on the Fisher inner product to obtain the robust amount required for category-hierarchy aggregation; S27: Set class weights based on the number of samples in each class of the dataset; S28: Generate a proxy score for the candidate architecture based on the category weights and the robustness required for category-hierarchy aggregation, and use the proxy score as the fitness of the candidate architecture for subsequent steps S3–S5.

2. The method for searching an imbalanced perceptual, training-free neural network architecture for image classification according to claim 1, characterized in that, The specific process of step S1 is as follows: S11: Configure the candidate architecture search space, set the structural encoding method, optional operator set and connection rules of the candidate architecture, so that the candidate architecture can be combined by Normal cell and Reduction cell and expanded according to the preset Stage structure; S12: Set the initial population size and random sampling strategy, and randomly sample candidate architectures in the search space to obtain a candidate architecture set; S13: Perform structural validity verification and constraint screening on the candidate architecture set, eliminate candidate architectures that do not meet the preset structural constraints, and form an initial candidate architecture population; S14: Set the initial value or range of individual mutation rate for each candidate architecture individual in the initial candidate architecture population, and set the initial value or range of global mutation rate for the current generation, for mutation control in subsequent evolutionary search.

3. The method for searching an imbalanced perceptual, training-free neural network architecture for image classification according to claim 1, characterized in that, The specific process of step S3 is as follows: S31: Based on the agent scores of each candidate architecture obtained in step S2, set the temperature coefficient and perform temperature-scaled exponential mapping on the agent scores to generate selection probabilities. S32: Based on the selection probability, the candidate architecture is randomly sampled using the Softmax probability sampling method to determine the parent population; S33: Output the parent population to the subsequent mutation stage, and retain the surrogate score of the parent individual as input for adaptive mutation control.

4. The method for searching an imbalanced perceptual, training-free neural network architecture for image classification according to claim 3, characterized in that, Step S4 specifically includes: S41: Based on the parent population and its corresponding agent score determined in step S3, normalize the agent score to obtain the normalized score. S42: Update the individual mutation rate for each parent individual based on the normalized score, and truncate the individual mutation rate to a preset range; S43: Update the global mutation rate based on the current search status and truncate the global mutation rate to a preset range; S44: Under the joint constraints of individual mutation rate and global mutation rate, perform structural mutation operator on parent candidate architectures to generate a set of child architectures; S45: Input the set of offspring architectures into the next round of evaluation and participate in environmental selection together with the parent population to update and obtain the next generation of candidate architecture populations.

5. The method for searching an imbalanced perceptual, training-free neural network architecture for image classification according to claim 4, characterized in that, The specific process of step S5 is as follows: S51: Set search termination conditions, which include at least one of the following: the number of generations reaches a preset upper limit, the cumulative number of evaluations reaches a preset budget, or the optimal agent score is within a certain range. K The improvement within a generation is less than the preset threshold; S52: If the termination condition is not met, iteratively execute the cross-generational update process: calculate the imbalance-aware agent score for each architecture in the current generation candidate architecture population without weight training, and complete the parent generation screening, offspring generation generation and environment selection based on the agent score to obtain the next generation candidate architecture population. S53: After each generation update, maintain a set of cross-generational optimal solution archives, write the current generation's best individual into the archive, and save the structure encoding, operator configuration, and connection topology information of the archive. Repeat this process until the termination condition is met, and output the optimal architecture of population evolution.

Citation Information

Patent Citations

  • Fault-tolerant neural network optimization method based on automatic architecture search

    CN120930687A

  • Method and apparatus for neural architecture search

    US20220101089A1