A condition-discrete diffusion generation method of a node-beam type mechanical metamaterial actuator
By encoding the node-beam structure as a fixed-length discrete vector using a conditional discrete denoising network, the problems of high computational cost and inaccurate generation results in the design of node-beam metamaterial actuators are solved, enabling efficient and targeted generation of topological structures that meet performance requirements.
Patent Information
- Application Number
- CN202611673351.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies for designing node-beam metamaterial actuators suffer from high computational costs, difficulty in accurately reconstructing the generated results into a clear node-beam connection topology, and a tendency to produce suspended beams or inconsistent connections. Furthermore, traditional methods are easily affected by the initial configuration, resulting in low design efficiency.
A conditional discrete denoising network is used to encode the node-beam structure as a fixed-length discrete vector. By training the network, the node-beam metamaterial actuator structure that meets the specified mechanical properties can be generated iteratively from the target performance. The specific topology is restored by using a preset node layout and a candidate beam mapping table.
It significantly reduces computational costs, improves design efficiency, generates diverse candidate structures, ensures the legitimacy and manufacturability of the generated results, and enhances the practicality and flexibility of the method.
Smart Images

Figure CN123159153A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mechanical metamaterial actuator generation technology, and more specifically to a conditional discrete diffusion generation method for nodal beam mechanical metamaterial actuators. Background Technology
[0002] Mechanical metamaterials are a class of materials that acquire special mechanical properties through the artificial design of microscopic or mesoscopic structural units. Their macroscopic mechanical behavior mainly depends on the geometric configuration and spatial arrangement of the structural units, rather than the chemical composition of the material itself. Node-beam mechanical metamaterial actuators typically consist of several pre-defined nodes and beam units between them. By changing the connection method and geometric configuration of the beams, specific deformation, driving, or load-bearing functions can be achieved, showing potential application value in fields such as flexible robots, smart structures, vibration reduction and isolation, and lightweight drive devices.
[0003] Currently, the design of node-beam metamaterial actuators mainly relies on forward simulation, parametric optimization, or topology optimization methods. Forward design typically requires first defining the structural topology, then calculating its mechanical properties through finite element analysis, and iteratively adjusting node positions, beam connection relationships, or cross-sectional parameters to meet the target performance. Topology optimization methods approximate the target performance by optimizing material distribution or structural configuration within the design domain, such as those based on SIMP methods, level set methods, or movable morphology methods. However, these methods often require extensive iterative simulations and sensitivity analyses, resulting in high computational costs and susceptibility to local optima due to the influence of the initial configuration. Furthermore, node-beam structures inherently have discrete connection relationships, and traditional continuous topology optimization methods still suffer from unnatural representation and complex post-processing when directly generating explicit node connection schemes.
[0004] In recent years, deep learning-based reverse design methods for metamaterials have gradually attracted attention. Existing research has utilized neural networks to learn the mapping relationship between structure and performance, and combined this with genetic algorithms, evolutionary strategies, or generative models to achieve a design process that inversely derives structural parameters from target performance. Generative adversarial networks, variational autoencoders, and diffusion models have also been used to generate metamaterial microstructures or topologies. Among these, diffusion models, through forward noise addition and backward denoising processes, learn data distribution, enabling the generation of structural samples with good diversity, and achieving structure generation for specified performance under conditional guidance.
[0005] However, existing diffusion generation methods are mostly geared towards continuous density fields, voxel meshes, or image-based topological representations, typically modeling the structure as a continuous variable or pixel distribution. For node-beam actuators, the design variable is essentially whether a candidate beam exists in a discrete connection state; the structural validity depends on the explicit correspondence between the node layout, the candidate beam set, and the connection relationships. Directly using continuous diffusion or voxel representation can easily lead to the generation result being difficult to accurately reconstruct into a clear node-beam connection topology, and may also result in problems such as suspended beams, inconsistent connections, or unmanufacturable structures.
[0006] Therefore, providing a conditional diffusion generation method oriented towards the discrete connection characteristics of node-beam structures to improve the efficiency and reliability of actuator reverse design driven by target performance is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0007] In view of the above problems, this invention is proposed to provide a conditional discrete diffusion generation method for node-beam type mechanical metamaterial actuators that overcomes or at least partially solves the above problems. By encoding the node-beam structure into a fixed-length discrete vector and training a conditional discrete denoising network, the method achieves back-iteration generation of matching candidate structure vectors based on the target performance and restores the specific actuator topology, thereby efficiently and directionally generating node-beam type metamaterial actuator structures that meet the specified mechanical performance requirements.
[0008] To achieve the above objectives, the present invention adopts the following technical solution:
[0009] This invention provides a conditional discrete diffusion generation method for a nodal beam-type mechanical metamaterial actuator, comprising: S1. Generate node-beam structure samples with different connection relationships based on the execution task of the mechanical metamaterial actuator; perform mechanical calculations on each sample to obtain the corresponding performance values, and form a structure-performance sample; S2. Construct an ordered candidate beam set based on the preset node layout and all structure-performance samples, and encode the connection state of the candidate beams into discrete vectors; apply a perturbation to the discrete vectors to obtain the perturbed vectors; establish a candidate beam mapping table to record the candidate beam number and the two corresponding nodes; S3. Train a conditional discrete denoising network based on the discrete vector, the perturbed vector, the corresponding performance value, and the number of perturbation steps; S4. Given the target performance, establish random connections and use the trained conditional discrete denoising network to iterate in reverse. In each iteration, input the current connection state, target performance and perturbation step number into the trained conditional discrete denoising network, and update the state according to the retention probability until a candidate structure vector matching the target performance is obtained. S5. Combining the preset node layout and candidate beam mapping table, the candidate structure vector is restored to the corresponding node-beam structure actuator.
[0010] Furthermore, in step S1, the execution task based on the mechanical metamaterial actuator generates node-beam structure samples with different connection relationships; specifically including: The execution task is determined based on the function to be achieved by the mechanical metamaterial actuator, and the task boundary is set based on the execution task to generate multiple node-beam structure samples with different connection relationships. The execution task includes one or more of the following: clamping task, twisting task, and locking task; The task boundary includes the outer contour, fixed support, input area, output area, and measurement area.
[0011] Furthermore, in step S1, the mechanical calculation specifically involves applying fixed constraints, input displacements, or input forces corresponding to the task being performed to each sample to obtain the force and motion response of the corresponding sample structure.
[0012] Furthermore, step S2 specifically includes: S21. Based on the preset node layout and the allowed connection rules within the area to be designed, list all candidate beams used to represent each structure-performance sample. Each candidate beam corresponds to a pair of specific nodes. They are numbered in a unified order to form an ordered set of candidate beams containing M candidate beams, where M is the total number of candidate beams. S22. Establish a candidate beam mapping table to record the number of each candidate beam and its corresponding pair of nodes; S23. Different structure-performance samples use the same set of nodes, node coordinates and candidate beam numbering order. Check the connection status of candidate beams in each structure-performance sample one by one in a fixed order, and encode each structure-performance sample as an M-dimensional discrete vector. S24. Apply discrete perturbation to the discrete vector, randomly select a perturbation step number, and replace some positions in the original discrete vector with random 0 or 1 according to the perturbation degree corresponding to the step number to obtain the perturbed vector.
[0013] Furthermore, step S3 specifically includes: S31. Combine the original discrete vector, the perturbed vector, the corresponding performance value, and the number of perturbation steps to form training data; S32. Input the disturbed vector, the corresponding performance value and the number of disturbance steps into the conditional discrete denoising network. The network outputs the retention probability that each candidate beam should exist in the original structure. S33. Calculate the loss function based on the bitwise difference between the retention probability and the original discrete vector, and update the parameters of the conditional discrete denoising network through backpropagation; S34. Iteratively train the conditional discrete denoising network based on the training samples until the conditional discrete denoising network converges, and obtain the trained conditional discrete denoising network.
[0014] Furthermore, in step S3, the conditional discrete denoising network employs a multilayer perceptron.
[0015] Furthermore, step S4 specifically includes: S41. Given a target performance value, process the target performance value according to the performance parameter scale used in the training phase; randomly initialize an M-dimensional binary connection vector as the initial connection state, set the perturbation step number and gradually decrease it in descending order, and use the trained conditional discrete denoising network to perform reverse iterative denoising. S42. In each iteration, the current connection state, target performance value, and current perturbation step number are input into the trained conditional discrete denoising network, and the network outputs the current retention probability of each candidate beam; the connection state of each candidate beam is sampled and updated according to the current retention probability to obtain the connection state of the next step. S43. Repeat the iteration until the perturbation step count decreases to 0 to obtain the final binary connection vector, which serves as a candidate structure vector that matches the target performance value.
[0016] Furthermore, step S5 specifically includes: S51. Based on the candidate structure vector, output the node set and node coordinates according to the preset node layout, and determine the connection status of each candidate beam one by one according to the numbering order recorded in the candidate beam mapping table. S52. For a candidate beam with state 1, locate the spatial coordinates of the pair of nodes in the preset node layout according to the pair of node numbers corresponding to the candidate beam recorded in the candidate beam mapping table. S53. Establish beam elements between the pairs of nodes to form corresponding beam connection records; S54. Traverse all candidate beams with a state of 1. After adding all beam elements, output the topology data of the node-beam structure actuator, which includes node coordinates and beam connection relationships.
[0017] As can be seen from the above technical solution, compared with the prior art, the present invention discloses a conditional discrete diffusion generation method for a nodal beam-type mechanical metamaterial actuator, which has the following beneficial effects: First, this invention addresses the discrete connection characteristics of node-beam metamaterial actuators by encoding the structure into a fixed-length discrete connection vector and establishing a unified candidate beam index framework based on a preset node layout and candidate beam mapping table. This ensures that the structure generation process is naturally constrained within a legal node-beam topological space, effectively avoiding common problems in continuous diffusion or voxel representation such as suspended beams, inconsistent connections, or unmanufacturability.
[0018] Second, this invention employs a conditional discrete denoising network, which directly embeds the target performance as a generation condition into the reverse iteration process, realizing end-to-end reverse design from target performance to structural topology. This eliminates the need for extensive forward simulation iterations or sensitivity analysis, significantly reducing computational costs and improving design efficiency.
[0019] Third, through the diffusion mechanism of discrete perturbation and inverse denoising, this invention can generate diverse candidate structures while meeting the target performance, providing rich design options for subsequent screening, optimization and multi-objective trade-offs, thus enhancing the practicality and flexibility of the method.
[0020] Fourth, this invention uses a candidate beam mapping table to precisely correspond discrete connection vectors with specific node coordinates and beam connection relationships. The generated results can be directly restored as explicit node-beam structure actuator topology data, which facilitates subsequent finite element verification, manufacturing and processing and performance evaluation, and has good engineering applicability. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0022] Figure 1 This is a flowchart of the conditional discrete diffusion generation method for a nodal beam-type mechanical metamaterial actuator provided in this embodiment of the invention; Figure 2 This is a schematic diagram illustrating the encoding of a structure into a fixed-length discrete vector, as provided in an embodiment of the present invention. Figure 3 This is an overall framework diagram of the conditional discrete denoising network provided in the embodiments of the present invention; Figure 4 This is a schematic diagram showing the structure of the gripper sample provided in this embodiment of the invention encoded as a fixed-length discrete vector; Figure 5 This is a schematic diagram of the clamping actuator condition generation process provided in an embodiment of the present invention; Figure 6 This is a schematic diagram showing the structure of the torsion actuator sample provided in this embodiment of the invention encoded as a fixed-length discrete vector; Figure 7 This is a schematic diagram of the torsion actuator condition generation process provided in an embodiment of the present invention; Figure 8 This is a schematic diagram showing the structure of the snap-action actuator sample provided in this embodiment of the invention encoded as a fixed-length discrete vector; Figure 9 This is a schematic diagram of the condition generation process for the latch actuator provided in an embodiment of the present invention. Detailed Implementation
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] This invention discloses a conditional discrete diffusion generation method for a nodal beam-type mechanical metamaterial actuator, referring to... Figure 1 As shown, it includes: S1. Generate node-beam structure samples with different connection relationships based on the execution task of the mechanical metamaterial actuator; perform mechanical calculations on each sample to obtain the corresponding performance values, and form a structure-performance sample; S2. Construct an ordered set of candidate beams based on the preset node layout and all structure-performance samples, and encode the connection state of the candidate beams into discrete vectors; apply a perturbation to the discrete vectors to obtain the perturbed vectors; establish a candidate beam mapping table to record the candidate beam number and the two corresponding nodes; S3. Training a conditional discrete denoising network based on discrete vectors, perturbed vectors, corresponding performance values, and perturbation steps; S4. Given the target performance, establish random connections and use the trained conditional discrete denoising network to iterate in reverse. In each iteration, input the current connection state, target performance and perturbation step number into the trained conditional discrete denoising network, and update the state according to the retention probability until a candidate structure vector matching the target performance is obtained. S5. Combining the preset node layout and candidate beam mapping table, restore the candidate structure vector to the corresponding node-beam structure actuator.
[0025] This embodiment focuses on a node-beam metamaterial gripping actuator. The design goal is to generate a node-beam structure that satisfies the gripping task based on a given target force transmission efficiency. Force transmission efficiency characterizes the actuator's ability to transmit the input driving force to the output and serves as a performance condition for subsequent condition generation. The implementation steps of this embodiment are described in detail below: Step 1: Determine the executor task, set the task boundary conditions, and create a structure-performance sample.
[0026] This embodiment takes a node-beam gripping actuator as an example. The gripping task is defined, and corresponding node arrangements, fixed supports, input areas, and output areas are set. The nodes are arranged according to an equilateral triangle rule. Under the same task boundary, by changing the presence or absence of beam connections between nodes within the allowable design area, several node-beam structure samples with different topologies are obtained. The force transmission efficiency of each structural sample is obtained using existing mechanical simulations or other equivalent methods, forming a structure-performance sample.
[0027] Step 2: Establish a mapping table between the preset node layout and the candidate beams.
[0028] Based on the node layout and allowed connection rules adopted in Step 1, determine the node set and its spatial coordinates, and list the M candidate beams that are allowed to be connected. Number the candidate beams in a uniform order, establish a candidate beam mapping table, and record the two endpoint nodes corresponding to each candidate beam. The connection states of the M candidate beams constitute a discrete connection vector of length M.
[0029] Step 3: Train the conditional discrete denoising network.
[0030] Discrete perturbations are applied to each structural connection vector to obtain perturbed connection vectors with different perturbation steps. Conditional discrete denoising network is trained to learn the probability distribution of recovering the original structure from the perturbed state, based on performance values and the number of perturbation steps.
[0031] Step 4: Generate candidate structures based on the target performance.
[0032] Given the target performance, an M-dimensional binary connection vector is randomly initialized, and denoising is iteratively reversed starting from the maximum perturbation step count. At each step, the current connection state, target performance conditions, and perturbation step count are input into the trained discrete denoising network, and the connection state of each candidate beam is updated according to the retention probability of the network output, until the perturbation step count decreases to 0, thus obtaining a candidate structure connection vector that matches the target performance.
[0033] Step 5: Restore the node-beam structure.
[0034] Based on the candidate beam mapping table, candidate beams with a state of 1 in the candidate structure connection vector are restored to specific beam element connection relationships. Combined with the node coordinates in the preset node layout, complete node-beam structure topology data is output. The generated node-beam structure can be subjected to performance verification using the same mechanical simulation method as in step one or other equivalent methods to obtain its force transmission efficiency and determine its degree of matching with the target performance. Performance verification, as well as subsequent geometric modeling and manufacturing processing, are subsequent applications of the generated structure and are not necessary steps in this embodiment.
[0035] Through the above steps, after completing the construction of structure-performance samples and training of the conditional discrete denoising network, for the new target force transmission efficiency, there is no need to manually adjust the beam connections one by one and perform positive optimization for each candidate structure. The node-beam clamping actuator candidate topology structure that matches the target performance can be generated, providing a structural foundation for subsequent mechanical verification, geometric modeling and manufacturing processing.
[0036] The steps of this embodiment will be described in detail below: Following step one, first select the actuator task type based on the function to be achieved by the mechanical metamaterial actuator.
[0037] The execution task types in this embodiment include one or more of gripping, twisting, and locking tasks. A gripping task is selected when the goal is to move the output area closer to or further away to complete the gripping; a twisting task is selected when the goal is to convert the translational motion of the input area into the rotation of the output area; and a locking task is selected when the goal is to move the moving part along a predetermined path and make contact with another part, overcome an obstacle, or form a locking relationship. The specific task type can be adjusted according to the execution function to be implemented.
[0038] Secondly, the task boundaries are determined based on the selected task type, including the actuator's outer contour, fixed supports, input area, output area, and measurement area. In this embodiment, the outer contour is determined based on the installation interface, motion space, and contact requirements; nodes or boundaries connected to external supports or mounting points are designated as fixed supports; nodes or node regions where displacement or force loads are applied are designated as input areas; and nodes or node regions that generate target motion or perform performance measurements are designated as output areas or measurement areas. These task boundaries remain unchanged within the structural sample for the same task.
[0039] After determining the task boundaries, equilateral or isosceles triangles are selected as the basic geometric units internally, based on the outer contour shape, the designable area, and the task's requirements for structural orientation. The vertices of the selected triangular units are used as nodes, and adjacent nodes are connected along the sides of the triangular units, thereby determining the node positions and candidate connection positions for the beams. The specific selection of equilateral or isosceles triangles is determined based on their compatibility with the outer contour and the task area; under the same task, the selected triangle type and node arrangement remain consistent.
[0040] In this design, a beam is a structural member connecting two nodes, with its endpoints determined by the corresponding two nodes. The beam's length and direction are determined by the positions of the endpoint nodes. Within the designable area, node pairs that satisfy the connection rules are selected as candidate beam connection locations. By setting or canceling connections for each candidate beam, multiple node-beam structure samples with different internal beam connection relationships are generated. During sample generation, the node positions, fixed supports, input areas, output areas, necessary outer contours, and the basic arrangement of triangular elements remain unchanged; what changes is whether connections exist for each candidate beam within the designable area. The specific geometric and material parameters of the beams are determined according to the settings during sample construction.
[0041] Subsequently, for each node-beam structure sample, a corresponding mechanical calculation model is established based on its node position, beam connection relationship, and task boundary. Fixed constraints, input displacements, or input forces corresponding to the task are applied to obtain the stress and motion response of the structure. For the clamping task, a specified displacement or force load is applied to the input region, and the force transmission efficiency is determined based on the force results in the input and output regions. For the torsion task, a specified horizontal displacement is applied to the input region, and the corresponding rotational performance is determined based on the rotational response of the nodes in the measurement region. For the snapping task, the moving part is moved along a specified snapping path, the input force during the movement is recorded, and the peak input force is extracted as the performance value. Thus, the performance values corresponding to each structural sample are obtained, forming a structure-performance sample. The performance values in this embodiment can be obtained through existing mechanical simulations, experimental measurements, or other equivalent methods; the specific solver, calculation model, and performance calculation steps are not limited.
[0042] Following step two, after constructing the structure-performance samples, based on the node layout and allowed connection rules within the designable area determined in step S1, a list of all candidate beams that can represent each structure sample is compiled. Each candidate beam corresponds to a pair of defined endpoint nodes, and they are numbered in a uniform order to form an ordered set containing M candidate beams, where M is the total number of candidate beams, i.e., the length of the discrete connection vector under this task. Simultaneously, a candidate beam mapping table is established to record the number of each candidate beam and its two corresponding endpoint nodes.
[0043] Different structural samples use the same node set, node coordinates, and candidate beam numbering order; only the existence state of each candidate beam differs. This embodiment checks the beam connection state of each structural sample one by one in a fixed order: when the... i The existence of a root candidate beam is recorded as 1, and its absence as 0. Thus, each structural sample is represented as an M-dimensional discrete vector, i.e., an M-dimensional binary connection vector; expressed by the formula:
[0044] in, x0 represents the structural connection vector, and M represents the total number of candidate beams. In this embodiment, Represents the first in the structural connection vector The element corresponds to the element in the candidate beam space. If the root beam exists in the current structure, then ,otherwise . Reference Figure 2 The diagram illustrates how a structure is encoded as a fixed-length discrete vector, where 1 indicates that the beam exists in the current structure and 0 indicates that the beam does not exist in the current structure.
[0045] In subsequent training of the conditional discrete denoising network, the performance conditions of the training samples need to be uniformly scaled, and discrete perturbations need to be applied to the discrete vectors. In this embodiment, a perturbation step number is randomly selected, and according to the perturbation degree corresponding to that step number, some positions in the original connection vector are replaced with random 0s or 1s to obtain the perturbed vector. The perturbation process can be expressed by the following formula:
[0046] in, x 0 represents the original structure connection vector. x t For the first t The perturbation vector of the step, where "⊙" represents bitwise operation; m t Indicates the first t The preserved mask of the step, z Represents a random binary vector; m t Positions with a value of 1 retain their original connection state, while positions with a value of 0 use a random state. As the number of steps increases, the proportion of positions that are replaced increases.
[0047] Following step three, train the conditional discrete denoising network.
[0048] The disturbed vector x t Corresponding performance conditions y The number of perturbation steps represents the current level of perturbation. t Discrete denoising network with common input conditions.
[0049] Reference Figure 3 The diagram shown illustrates the overall framework of the conditional discrete denoising network in this embodiment. Figure 3 middle, x t Indicates the first t The noisy edge vector under each perturbation step has a length of M, where each bit corresponds to the current connection state of a candidate beam; t This indicates the current perturbation step count. Perturbation Step Count t The time embedding is obtained after time embedding processing.e t This is used to provide the network with information about the current level of disturbance. Performance conditions. y After conditional embedding processing, the conditional embedding is obtained. e y It is used to provide the network with target execution performance information.
[0050] Noisy side vectors x t Time embedding e t and conditional embedding e y In the stitching module, the components are stitched together along the feature dimension to form the combined input of the network. The stitched combined input is then fed into a multilayer perceptron (MLP) for computation. The MLP consists of an input layer, hidden layers, and an output layer: the input layer receives the stitched combined input; the hidden layer performs feature computation on edge connection states, perturbation steps, and performance conditions; and the output layer outputs the prediction results for each candidate beam.
[0051] The output of the MLP is denoted as the logit vector. l= ( l 1 ,l 2 ,…,l i ,…,l M ),in l i Corresponding to the i The output value of the root candidate beam. Perform probability transformation on each element of the logit vector to obtain the probability vector of the candidate beam's existence. ,in p i Indicates the first i The probability that the root candidate beam exists in the original structure. x 0 is used as the training target, which is compared bit by bit with the predicted probability vector to calculate the loss function.
[0052] Figure 3 The lines in the diagram represent data transmission relationships, the arrows indicate the direction of data processing, and the input layer, hidden layer, and output layer represent the computational layers in the network.
[0053] During training, the original connection vectors without perturbation are used. x Using 0 as the training objective, the predicted existence probability of each candidate beam is compared bit by bit with the actual connection state at the corresponding position in the original connection vector. The bit-by-bit loss function is calculated, and the network parameters of the multilayer perceptron are updated through backpropagation. The above training process is repeated for different structural samples, different performance conditions, and different perturbation steps until the preset training requirements are met, resulting in a trained conditional discrete denoising network.
[0054] After training, the network can output the probability of each candidate beam existing in the target structure based on the current perturbed connection state, target performance, and current perturbation step, and use it for reverse iteration generation in step four.
[0055] Following step four, given the target performance, the trained conditional discrete denoising network is used to iteratively generate candidate beam connection states step by step, and finally, candidate structure vectors matching the target performance are generated.
[0056] In this embodiment, the trained conditional discrete denoising network is used for the inference stage of actual structure generation. The network parameters are fixed, and backpropagation updates are no longer performed. Instead, the structural topology that meets the target performance is gradually recovered from random noise through forward propagation. The specific implementation process is as follows: 1. Initialize and set the iteration strategy.
[0057] First, given the user's desired target performance value. For example, the force transmission efficiency in a gripping task, or other performance metrics that characterize the corresponding task execution. Next, a random initial connection state is established. Specifically, an M-dimensional binary connection vector is randomly initialized. x T As the initial connection state (i.e.) t=T (State at time step). Each bit in the initial vector represents a candidate beam, and each bit is set to 1 (existence) or 0 (non-existence) with a probability of 0.5, simulating a completely disordered high-entropy state. Simultaneously, the total number of perturbation steps T is set; in this embodiment, T = 200. The iteration order is planned as follows: following the perturbation order from strong to weak, i.e., the time step t decreases from T to 1, performing reverse iteration denoising.
[0058] 2. Condition-guided single-step denoising and state update.
[0059] In each step of the reverse iteration t Perform the following sub-steps: Constructing input conditions: Using the current connection state vector x t Given target performance values and the current time step index t The components are spliced or merged and fed as input tensors into a pre-trained conditional discrete denoising network.
[0060] Predicting retention probability: After forward computation, the network outputs a probability vector p with the same dimension as the input. t =[p t,1 ,p t,2 ,...,p t,M ]. Where p t,iThis represents the probability estimate of whether the i-th candidate beam should be retained after the current denoising step. This probability value integrates the geometric characteristics of the current structure with the target performance. The constraints and requirements.
[0061] Sampling update state: based on the output retention probability p t The connection state is randomly sampled and updated to obtain the next step. t Connection state at time 1 x t 1.
[0062] Specifically, for the first i For the root candidate beam, generate a uniformly distributed random number r in the interval [0,1]. i .
[0063] If r i ≤p t,i Then x t The i-th bit of 1 is set to 1; if r i >p t,i Then x t Set the i-th bit of 1 to 0.
[0064] This embodiment uses Bernoulli sampling to probabilistically update the connection state of candidate beams based on the target performance, generating candidate structures under the guidance of the target performance, and retaining the possibility of generating different structural results.
[0065] 3. Iteration termination and result output.
[0066] The time step t is gradually decreased, and the state update is repeated. t The iteration process ends when the value decreases to 0. The resulting binary connection vector is x0. , This is the final generated candidate structure vector. Each "1" in this vector represents a structure that meets the target performance. The beam elements that should exist constitute a complete, discrete node-beam topology scheme.
[0067] Following step five, the generated candidate structure vectors are restored to the corresponding node-beam structure actuators.
[0068] The candidate beam mapping table is used to record the correspondence between each position in the discrete connection vector and the actual physical beam connection, including the candidate beam number and the numbers of its two endpoint nodes.
[0069] The final candidate structure connection vector obtained in step four is checked bit by bit: when the... iWhen the value of the bit is 1, the number is written into the output structure according to the candidate beam mapping table. i The candidate beam and its two endpoint nodes; when the first i When the value of the bit is 0, the candidate beam connection is not written.
[0070] In this embodiment, when restoring the structural actuator, the node records use the node set, node number, and node coordinates determined in step one. Fixed supports, input areas, output areas or measurement areas, and necessary outer contours are retained according to the settings of the corresponding execution task. This converts the generated discrete connection vectors into node-beam topology data containing node records and beam connection records. The obtained structural data can be used for subsequent mechanical verification, geometric modeling, or other structural processing.
[0071] This step only performs physical structure mapping and data recovery on the discrete connection vectors generated in step four; it does not involve model training, performance label calculation, or network parameter updates. The candidate beam mapping table remains consistent throughout the sample encoding, network training, and structure recovery processes, thus ensuring that each bit in the generated vector corresponds to a unique actual beam connection.
[0072] This embodiment establishes datasets for three types of node-beam-type metamaterial actuators—clamping, torsion, and snap-fit—based on the steps described above. Each of the three tasks uses its own fixed node template, boundary conditions, and performance definitions, but all employ a processing method of "ordered candidate beam—binary vector—conditional discretization generation—same mapping recovery."
[0073] When generating the gripper actuator, refer to Figure 4 As shown, this illustrates the process of encoding a clamping actuator structure sample into a fixed-length discrete vector. Figure 4 The left half of the space is a candidate beam space consisting of preset nodes and all allowed candidate beams, which is used to represent all positions where beams are allowed to be set under the current task. Therefore, each position of the corresponding connection vector is 1. Figure 4 The right half of the diagram represents a specific clamping actuator structure sample within the candidate beam space, retaining only a portion of the candidate beams. The two sets of red circles and arrows in the diagram represent the correspondence between candidate beams and connection vector positions: one set indicates candidate beams present in the right half of the structure, with the corresponding position marked as 1; the other set indicates candidate beams not present in the right half, with the corresponding position marked as 0. By sequentially determining the existence of each candidate beam according to the same candidate beam numbering order, the right half of the structure can be encoded into a fixed-length binary connection vector.
[0074] Reference Figure 5 The diagram illustrates the condition-guided reverse generation process of the gripper actuator. Figure 5From left to right, the diagram represents the connection states when the perturbation steps are T=198, T=113, and T=0. T=198 represents the initial highly perturbated state, where the candidate beam connection states are mainly determined by random binary states; T=113 represents the intermediate state during the reverse generation process; and T=0 represents the final state after the reverse iteration. Blue lines represent candidate beams that exist in the current state and have not changed in adjacent steps, while red lines represent candidate beams whose state has changed relative to the previous step. Undisplayed lines indicate that the corresponding candidate beam does not currently exist. Due to the high perturbation level in the initial state, the candidate beam connection states are highly random, resulting in a large number of candidate beams undergoing state changes in the initial stage, hence more red lines. As the perturbation steps decrease, the network gradually determines the candidate beam connection states, and state changes gradually decrease, ultimately obtaining a node-beam topology that matches the performance target of the clamping task.
[0075] When generating the torsional actuator, refer to Figure 6 As shown, this illustrates the process of encoding a torsion actuator structure sample into a fixed-length discrete vector. Figure 6 The left half of the space is a candidate beam space consisting of preset nodes and all allowed candidate beams, with each position of the corresponding connection vector being 1. Figure 6 The right half of the image shows a sample of a specific torsional actuator structure in the candidate beam space, with only a portion of the candidate beams retained. Figure 6 The two sets of red circles and arrows represent the correspondence between the candidate beams and the connection vector positions: one set indicates that the candidate beams exist in the right half of the structure, and the corresponding position is marked as 1; the other set indicates that the candidate beams do not exist in the right half of the structure, and the corresponding position is marked as 0. By checking the existence of each candidate beam one by one according to the unified candidate beam numbering order, the fixed-length binary connection vector corresponding to the torsion actuator structure can be obtained. Figure 6 The orange arrows indicate the input or direction of motion corresponding to the twisting task.
[0076] Reference Figure 7 The diagram illustrates the condition-guided reverse generation process of a torsion actuator. Figure 7From left to right, the diagram represents the connection states when the perturbation steps are T=198, T=95, and T=0. T=198 represents the initial high-perturbation state, T=95 represents the intermediate state during the reverse generation process, and T=0 represents the final generated state. Blue lines represent candidate beams that exist in the current state and have not changed in adjacent steps, red lines represent candidate beams whose state has changed relative to the previous step, and lines not shown indicate that the corresponding candidate beam does not currently exist. Due to the high perturbation level in the initial state, the candidate beam connection states are highly random, resulting in more candidate beams undergoing state changes in the initial stage, hence more red lines. As the perturbation steps decrease, the network gradually determines the candidate beam connection states, and state changes gradually decrease, ultimately obtaining a node-beam topology that matches the performance target of the torsion task.
[0077] When generating the snap-fit actuator, refer to Figure 8 As shown, this illustrates the process of encoding a snap-action actuator structure sample into a fixed-length discrete vector. Figure 8 The left half of the space is a candidate beam space consisting of preset nodes and all allowed candidate beams, with each position of the corresponding connection vector being 1. Figure 8 The right half of the image shows a sample of a specific snap-fit actuator structure in the candidate beam space, with only a portion of the candidate beams retained. Figure 8 The two sets of red circles and arrows represent the correspondence between candidate beams and connection vector positions: one set indicates candidate beams that exist in the right half of the structure, and their corresponding positions are marked as 1; the other set indicates candidate beams that do not exist in the right half of the structure, and their corresponding positions are marked as 0. By checking the existence of each candidate beam one by one according to the unified candidate beam numbering order, the right half of the latch actuator structure can be encoded into a fixed-length binary connection vector.
[0078] Reference Figure 9 The diagram illustrates the condition-guided reverse generation process of the latch actuator. Figure 9 From left to right, the diagram represents the connection states when the perturbation steps are T=198, T=103, and T=0. T=198 represents the initial high-perturbation state, T=103 represents the intermediate state during the reverse generation process, and T=0 represents the final generated state. Blue lines represent candidate beams that exist in the current state and have not changed in adjacent steps, red lines represent candidate beams whose state has changed relative to the previous step, and lines not shown indicate that the corresponding candidate beam does not currently exist. Due to the high perturbation level in the initial state, the candidate beam connection states are highly random, resulting in more candidate beams undergoing state changes in the initial stage, hence more red lines. As the perturbation steps decrease, the network gradually determines the candidate beam connection states, and state changes gradually decrease, ultimately obtaining a node-beam topology that matches the target performance of the snap-fit task.
[0079] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0080] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A conditional discrete diffusion generation method for a nodal beam-type mechanical metamaterial actuator, characterized in that, include: S1. Generate node-beam structure samples with different connection relationships based on the execution task of the mechanical metamaterial actuator; Mechanical calculations are performed on each sample to obtain the corresponding performance values, forming a structure-performance sample. S2. Construct an ordered candidate beam set based on the preset node layout and all structure-performance samples, and encode the connection state of the candidate beams into discrete vectors; apply a perturbation to the discrete vectors to obtain the perturbed vectors; establish a candidate beam mapping table to record the candidate beam number and the two corresponding nodes; S3. Train a conditional discrete denoising network based on the discrete vector, the perturbed vector, the corresponding performance value, and the number of perturbation steps; S4. Given the target performance, establish random connections and use the trained conditional discrete denoising network to iterate in reverse. In each iteration, input the current connection state, target performance and perturbation step number into the trained conditional discrete denoising network, and update the state according to the retention probability until a candidate structure vector matching the target performance is obtained. S5. Combining the preset node layout and candidate beam mapping table, the candidate structure vector is restored to the corresponding node-beam structure actuator.
2. The method as described in claim 1, characterized in that, In step S1, the execution task based on the mechanical metamaterial actuator generates node-beam structure samples with different connection relationships; specifically including: The execution task is determined based on the function to be achieved by the mechanical metamaterial actuator, and the task boundary is set based on the execution task to generate multiple node-beam structure samples with different connection relationships. The execution task includes one or more of the following: clamping task, twisting task, and locking task; The task boundary includes the outer contour, fixed support, input area, output area, and measurement area.
3. The method as described in claim 1, characterized in that, In step S1, the mechanical calculation specifically involves applying fixed constraints, input displacements, or input forces corresponding to the task being performed to each sample to obtain the force and motion response of the corresponding sample structure.
4. The method as described in claim 1, characterized in that, Step S2 specifically includes: S21. Based on the preset node layout and the allowed connection rules within the area to be designed, list all candidate beams used to represent each structure-performance sample. Each candidate beam corresponds to a pair of specific nodes. They are numbered in a unified order to form an ordered set of candidate beams containing M candidate beams, where M is the total number of candidate beams. S22. Establish a candidate beam mapping table to record the number of each candidate beam and its corresponding pair of nodes; S23. Different structure-performance samples use the same set of nodes, node coordinates and candidate beam numbering order. Check the connection status of candidate beams in each structure-performance sample one by one in a fixed order, and encode each structure-performance sample as an M-dimensional discrete vector. S24. Apply discrete perturbation to the discrete vector, randomly select a perturbation step number, and replace some positions in the original discrete vector with random 0 or 1 according to the perturbation degree corresponding to the step number to obtain the perturbed vector.
5. The method as described in claim 1, characterized in that, Step S3 specifically includes: S31. Combine the original discrete vector, the perturbed vector, the corresponding performance value, and the number of perturbation steps to form training data; S32. Input the disturbed vector, the corresponding performance value and the number of disturbance steps into the conditional discrete denoising network. The network outputs the retention probability that each candidate beam should exist in the original structure. S33. Calculate the loss function based on the bitwise difference between the retention probability and the original discrete vector, and update the parameters of the conditional discrete denoising network through backpropagation; S34. Iteratively train the conditional discrete denoising network based on the training samples until the conditional discrete denoising network converges, and obtain the trained conditional discrete denoising network.
6. The method as described in claim 5, characterized in that, In step S3, the conditional discrete denoising network employs a multilayer perceptron.
7. The method as described in claim 1, characterized in that, Step S4 specifically includes: S41. Given a target performance value, process the target performance value according to the performance parameter scale used in the training phase; randomly initialize an M-dimensional binary connection vector as the initial connection state, set the perturbation step number and gradually decrease it in descending order, and use the trained conditional discrete denoising network to perform reverse iterative denoising. S42. In each iteration, the current connection state, target performance value, and current perturbation step number are input into the trained conditional discrete denoising network, and the network outputs the current retention probability of each candidate beam; the connection state of each candidate beam is sampled and updated according to the current retention probability to obtain the connection state of the next step. S43. Repeat the iteration until the perturbation step count decreases to 0 to obtain the final binary connection vector, which serves as a candidate structure vector that matches the target performance value.
8. The method as described in claim 1, characterized in that, Step S5 specifically includes: S51. Based on the candidate structure vector, output the node set and node coordinates according to the preset node layout, and determine the connection status of each candidate beam one by one according to the numbering order recorded in the candidate beam mapping table. S52. For a candidate beam with state 1, locate the spatial coordinates of the pair of nodes in the preset node layout according to the pair of node numbers corresponding to the candidate beam recorded in the candidate beam mapping table. S53. Establish beam elements between the pairs of nodes to form corresponding beam connection records; S54. Traverse all candidate beams with a state of 1. After adding all beam elements, output the topology data of the node-beam structure actuator, which includes node coordinates and beam connection relationships.
