A new energy bus frame assembly processing method

By using a welding system with a clamping mechanism and a moving mechanism combined with machine learning algorithms in the new energy bus frame assembly, the problems of instability and low efficiency of manual welding are solved, and high accuracy and efficiency of automated welding are achieved.

CN118321779BActive Publication Date: 2024-10-15YANGZHOU YITONG AUTO ACCESSORIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410772285.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-15
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

The existing new energy bus frame assembly welding processing technology relies on manual operations, resulting in instability, low efficiency and high labor consumption, and it is difficult to ensure the accuracy and alignment of the welding process.

Method used

A welding equipment system including a clamping mechanism, transverse and longitudinal moving mechanisms is used, combined with deep reinforcement learning and supervised learning algorithms, to adjust the position of the clamping plate and support frame in real time to ensure the accurate positioning and alignment of the frame beam, and through the sensor network Monitor and optimize welding processes.

Benefits of technology

Automated welding is realized, reducing manual labor consumption, improving welding stability and efficiency, ensuring high accuracy and alignment of frame beams, and improving overall processing quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118321779B_ABST
    Figure CN118321779B_ABST
Patent Text Reader

Abstract

The present invention provides a welding device and a processing method for a new energy passenger car frame assembly, which belongs to the technical field of frame assemblies, and comprises a processing table; a welding device, which is arranged between a first support frame and the processing table; a lateral moving mechanism, which is arranged on the first support frame, and is used to realize the lateral linear motion of the welding device; a longitudinal moving mechanism, which is arranged on the lateral moving mechanism, and is used to realize the longitudinal linear motion of the welding device; a clamping mechanism, which is provided with two groups and is symmetrically arranged on the top of the processing table; in the present invention, two frame beams can be clamped by providing two groups of symmetrically distributed clamping mechanisms, which replaces manual hand-held frame beams, which not only reduces the consumption of manual labor but also is more stable; by providing a thickened plate, it can be installed on different clamping plates according to actual needs, so that when clamping the frame beam, it is not necessary to clamp the frame beam at the center, and the welding positions of the two frame beams can be aligned according to actual needs, which is more practical.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of vehicle frame assemblies, and in particular relates to a method for processing a vehicle frame assembly of a new energy bus. Background Art

[0002] The frame is a frame structure that spans the front and rear axles of the car, commonly known as the beam, and is the base of the car. It is generally composed of two longitudinal beams and several cross beams, and is supported on the wheels through the suspension device, the front axle, and the rear axle. The frame must have sufficient strength and rigidity to withstand the load of the car and the impact from the wheels. The function of the frame is to support and connect the various assemblies of the car, so that each assembly maintains a relatively correct position, and withstands various loads inside and outside the car.

[0003] The existing new energy bus frame is usually composed of multiple beams, but these beams need to be processed by welding and other processes when forming the frame, so that the beams can be more stable when combined. However, the existing frame assembly welding processing technology is usually performed manually, which can determine the stability of the welding, and can intuitively see the problems in the welding process to reduce the occurrence of errors. However, during welding, multiple beams are usually placed on the ground for welding or manually held for welding. This method is not only unstable, causing welding deviations, but also inefficient, consumes a lot of manual labor, and is very inconvenient. Summary of the invention

[0004] The purpose of the present invention is to provide a method for processing a new energy passenger car frame assembly, aiming to solve the problem that the frame assembly welding processing technology in the prior art is usually performed manually, so that the stability of the welding can be determined, the problems existing in the welding process can be intuitively seen, and the occurrence of errors can be reduced. However, during welding, multiple beams are usually placed on the ground for welding or manually held for welding. This method is not only unstable, causing welding deviations, but also inefficient, consumes a lot of manual labor, and is very inconvenient.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A new energy bus frame assembly, comprising:

[0007] Processing table;

[0008] A first support frame is fixed to the top of the processing table;

[0009] A welding device is arranged between the first support frame and the processing table;

[0010] A lateral movement mechanism, arranged on the first support frame, for realizing lateral linear movement of the welding equipment;

[0011] A longitudinal moving mechanism, arranged on the transverse moving mechanism, for realizing longitudinal linear movement of the welding equipment;

[0012] The clamping mechanism has two groups, which are symmetrically arranged on the top of the processing table, wherein

[0013] Each group of the clamping mechanisms comprises:

[0014] An adjustment slot is provided on the top of the processing table;

[0015] Two clamping plates are provided and symmetrically arranged on the upper side of the adjusting slot;

[0016] Two third nut blocks are provided and are respectively fixed to the bottoms of the two clamping plates, and the two clamping plates are both slidably connected to the adjusting grooves;

[0017] An adjusting component connected to the two third nut blocks to achieve relative movement thereof;

[0018] The limiting component is connected to both of the two third nut blocks to realize their linear motion.

[0019] As a preferred solution of the present invention, a thickened plate is provided on one side of the clamping plate, and a T-shaped groove is provided on one end of the thickened plate and the clamping plate. A T-shaped block is fixed to the other end of the thickened plate, and the T-shaped block is embedded and slidably connected in the T-shaped groove.

[0020] As a preferred solution of the present invention, two insertion holes are provided on one side end of the clamping plate, and both of the two insertion holes penetrate to one side end of the thickened plate, and U-shaped insertion rods are movably inserted in the two insertion holes.

[0021] As a preferred solution of the present invention, each group of the adjusting components includes:

[0022] A bidirectional screw rod is rotatably connected between the inner walls on both sides of the adjusting groove;

[0023] The two third nut blocks are both threadedly connected to the circumferential surface of the bidirectional screw rod;

[0024] The third motor is fixed to one side end of the processing table, and the output end of the third motor movably penetrates into the adjustment slot and is fixed to one end of the bidirectional screw rod.

[0025] As a preferred solution of the present invention, each group of the limiting components includes:

[0026] There are two limit grooves, which are respectively opened on the inner walls of both sides of the adjustment groove;

[0027] The limiting blocks are provided in plurality and are respectively fixed on both side ends of the two third nut blocks, and the plurality of limiting blocks are respectively slidably connected in the two limiting grooves.

[0028] As a preferred solution of the present invention, the lateral movement mechanism comprises:

[0029] A first screw rod, rotatably connected between the inner walls of both sides of the first support frame;

[0030] A first nut block, threadedly connected to a circumferential surface of the first screw rod;

[0031] The first motor is fixed to one side end of the first support frame, and the output end of the first motor movably penetrates the inner wall of one side of the first support frame and is fixed to one end of the first screw rod.

[0032] As a preferred solution of the present invention, the longitudinal movement mechanism comprises:

[0033] A second support frame, fixed to the bottom of the first nut block;

[0034] A second screw rod, rotatably connected between the inner walls on both sides of the second support frame;

[0035] A second nut block, threadedly connected to a circumferential surface of the second screw rod;

[0036] The second motor is fixed to one side of the second support frame, and the output end of the second motor is movable through the inner wall of one side of the second support frame and fixed to one end of the second screw rod.

[0037] A cylinder is fixed to the bottom of the second nut block, and the bottom of the cylinder is fixed to the top of the welding device.

[0038] As a preferred solution of the present invention, two limiting holes are provided on one side end of the second support frame, U-shaped rods are fixed on both side ends of the first support frame, the second support frame is slidably connected to the two U-shaped rods through the two limiting holes, and two limiting plates are fixed between the inner walls on both sides of the second support frame, and the two limiting plates are respectively abutted against the two side ends of the second nut block.

[0039] As a preferred solution of the present invention, arc frames are fixed on both sides of the top of the processing table, and fixed blocks are fixed on both side ends of the processing table.

[0040] A method for processing a new energy bus frame assembly comprises the following steps:

[0041] S1. When performing welding processing on the frame beam, first place the crossbeam to be welded between two clamping plates that are distributed oppositely, and then use the third motor in each set of clamping mechanisms to make the two third motors drive the bidirectional screws to rotate, and the bidirectional screws make the two third nut blocks on the surface thereof move in a direction close to each other, and finally drive the two clamping plates to clamp the frame beam, so that the clamping plates in the two sets of clamping mechanisms respectively clamp the corresponding frame beams to be welded, and make the two frame beams connected and aligned;

[0042] S2, then starting the first motor of the lateral movement mechanism, the first motor drives the first screw rod to rotate through the output shaft, so that the first nut block moves linearly on the surface of the first screw rod, thereby adjusting the lateral position of the first nut block;

[0043] S3. After the position adjustment of the first nut block is completed, that is, the first nut block drives the second support frame to complete the lateral position adjustment, and then the second motor is started, and the output end of the second motor drives the second screw rod to rotate, so that the second nut block moves linearly on the surface of the second screw rod to adjust the longitudinal position, and the second nut block drives the welding equipment to move through the cylinder, so that the welding equipment finally moves to the top of the position to be welded, and then the cylinder is started to make the welding equipment descend, so that welding operations can be carried out, and there is no need for manual holding of the frame beam or welding gun for welding, which is more convenient.

[0044] Furthermore, in S1, when the frame beam is processed and welded, the processing process of the frame assembly is optimized based on intelligent algorithms based on machine learning and real-time data analysis. The algorithm can adjust the position of the clamping plate and the support frame in real time according to the sensor data to ensure the accurate positioning and alignment of the frame beam; the specific process is as follows:

[0045] Step 1: Install a sensor network to collect real-time data during the frame assembly process, including the position, posture, and processing status of the clamping plate, support frame, and welding equipment; transmit the sensor data to the data acquisition module for processing and preparation;

[0046] Position sensor: installed on the clamping plate and support frame to monitor their position and posture in real time, using photoelectric encoder or Hall effect sensor;

[0047] Processing state sensor: installed on welding equipment to monitor welding current, voltage and welding speed during welding, including current sensor, voltage sensor and speed sensor;

[0048] During the actual frame assembly processing, the sensor network collects the position, posture and welding status data of each component in real time and transmits it to the data acquisition module for processing and preparation; the photoelectric encoder and Hall effect sensor can monitor the position and posture of the clamping plate and the support frame, while the current sensor and voltage sensor can monitor the current, voltage and welding status of the welding equipment; the data acquisition module transmits the sensor data to the data processing software in real time by setting the sampling frequency and transmission protocol;

[0049] Step 2: Build a model combining deep reinforcement learning and supervised learning based on sensor data. Use existing process data and real-time feedback to train the model to understand the impact of different processing parameters on the accuracy and alignment of the frame assembly, ensuring that the machine learning model can make rapid inferences and decisions in a real-time environment.

[0050] The deep reinforcement learning DRL model is:

[0051] 1. State space design:

[0052] Use vector s t To represent the state at time step t, including the position and posture information of the clamping plate, support frame, and welding equipment;

[0053] 2. Action space design:

[0054] With vector a t To represent the state s t The actions performed below include adjusting the positions of the clamping plate and the support frame;

[0055] 3. Reward function design:

[0056] Use r t represents the reward at time step t, and the reward function is designed according to the accuracy and alignment indicators of the frame assembly, such as r t =f(s t ,a t );

[0057] 4. Reinforcement learning model establishment:

[0058] State transfer function P(s t+1 ∣s t ,a t ): describes the state s in a given state t and action a t Next, transfer to the next state s t+1 The probability distribution of

[0059] The state s t Represented as a grid containing the clamping plate position , the vector of the support frame position psupport and the welding equipment position pwelding, action a t Represented as a system that includes adjusting the clamping plate position and the vector of the support position Δpsupport;

[0060] In this case, the state transition function can be simply expressed as a deterministic function:

[0061] s t+1 = f(s t ,a t ) where f is a state that changes the current state s t and action a t Mapped to the next state s t+1 The deterministic function determines the linear relationship between the position adjustment of the clamping plate and the position of the clamping plate clamping the frame, and given the action a t In this case, the position of the clamping plate can be adjusted by simple addition and subtraction operations, so the state transfer function can be expressed as:

[0062] pclamp(t+1)=pclamp(t)+Δpclamp

[0063] psupport(t+1)= psupport(t)+ Δpsupport

[0064] pwelding(t+1)= pwelding(t)+ Δpwelding

[0065] Here pclamp(t), psupport(t) and pwelding(t) represent the positions of the clamping plate, support frame and welding equipment at time step t, respectively, and Respectively represent the actions of adjusting the positions of the clamping plate, the support frame and the welding equipment;

[0066] State value function Q(s t ,a t ;θ): evaluate at a given state s t and action a t The expected return value under ; usually represented by a neural network in a deep Q network DQN;

[0067] Use a multilayer perceptron MLP as an approximator of the state-value function, where the input is the state s t and action a t , the output is the expected reward value of the corresponding action;

[0068] Assume that the structure of the neural network is as follows:

[0069] Input layer: receives state s t and action a t ;

[0070] Hidden layer: There can be multiple hidden layers, each of which contains multiple neurons and performs nonlinear transformation through activation functions;

[0071] Output layer: Output each possible action a t The corresponding expected return value;

[0072] The hidden layer uses the ReLU activation function, and the output layer does not use the activation function, so the specific expression of the state value function can be expressed as:

[0073] Q(s t ,a t ;θ)=output, where output is the value of the output layer of the neural network;

[0074] The parameters θ of this neural network can be updated during the training process through the optimization algorithm so that the output of the state value function is as close as possible to the actual expected return value. During the training process, the experience tuples in the experience replay buffer are used to calculate the loss, and the parameters of the neural network are updated through the back-propagation algorithm.

[0075] Specifically, the current state s t and action a t Input the neural network to get the corresponding expected return value; then, use the difference between these expected return values ​​and the actual return value to calculate the loss, and update the neural network parameters θ through the back-propagation algorithm;

[0076] During the continuous training process, the parameters θ of the neural network will gradually adjust to make the state value function Q(s t ,a t ;θ) is a state where the output is as close as possible to the actual expected return value;

[0077] The policy function π(a t ∣s t ): A function that selects the optimal action based on the current state s;

[0078] In reinforcement learning, the policy function represents the probability distribution of selecting an action in a given state. A neural network is used to represent the policy function, and the input is the current state s t , the output is the probability distribution of each action;

[0079] The state space is S, the action space is A, and the state s t The corresponding action probability distribution is π(a t ∣s t), then the specific expression of the policy function can be expressed as the output layer of a neural network, and the output is the probability distribution of the action. The softmax function is usually used to convert the output of the neural network into a probability distribution, that is:

[0080] π(a t ∣s t )=softmax(Q(s t ,a t ));

[0081] Among them, Q(s t ,a t ) is the state action value function, which means that in state s t Take action a t During the training process, by continuously optimizing the parameters of the neural network, the policy function can output the action probability distribution that maximizes the long-term return.

[0082] The policy function of the deep reinforcement learning (DRL) model can output the probability distribution of actions through a neural network, where the action probability is obtained by processing the state action value function through a softmax function.

[0083] 5. Model training and optimization:

[0084] Using the deep Q network DQN algorithm, the value function is optimized by minimizing the TD error, and then the strategy function is optimized, so that the model can learn the optimal processing strategy through continuous trial and error;

[0085] Supervised Learning SL Model:

[0086] 1. Input feature design:

[0087] With vector x t To represent the input features at time step t, the information in the state space is used as the input features of the supervised learning model;

[0088] 2. Output label design:

[0089] With vector y t to represent the output label at time step t, i.e., the accuracy and alignment index of the frame assembly;

[0090] 3. Supervised learning model establishment:

[0091] Use the function f(x t ) to represent the supervised learning model, where f(x t ) can be a deep neural network that takes as input the feature x t Mapped to output label y t ;

[0092] Let the input feature space be X, the output label space be Y, and the input feature corresponding to time step t be x t , the output label is y t During the training process, the parameters of the neural network are optimized so that the model's predicted output f(x t ) is as close to the true output label y as possible t ;

[0093] Then the specific expression of the supervised learning model can be expressed as a deep neural network, and the specific expression of the supervised learning model can be expressed as:

[0094] y t =f(x t )

[0095] 4. Model training and optimization:

[0096] Using historical processing data sets, by minimizing the loss function L(f(x t ),y t ) to train supervised learning models to understand the impact of different processing parameters on frame assembly accuracy and alignment, and to perform predictions and optimizations;

[0097] Commonly used loss functions include mean square error (MSE) or Huber loss function; L(θ)=E[(s t ,a t ,r t+1 ,s t+1 )~D][(r t+1 +γmaxa′Q(s t+1 ,a′;θtarget)-Q(s t ,a t ;θ))^2];

[0098] L(θ): represents the loss function, which is the objective to be minimized, where θ is the parameter of the neural network;

[0099] E[(s t ,a t ,r t+1 ,s t+1 )~D]: This part is the expected operator, which means to perform the expected operation on the samples in the data set D; t Indicates the current state, a t Indicates the action taken in the current state, r t+1 Represents the reward obtained after executing the action, s t+1 Indicates the next state to transfer to;

[0100] (r t+1+ γ maxa'Q(s t+1 ,a′;θtarget)-Q(s t ,a t ;θ))^2: This is the core part of the loss function, which is the mean square error between the predicted Q value and the target Q value; specifically:

[0101] r t+1 : The immediate reward obtained after performing the action;

[0102] γ: discount factor, used to balance the importance of current rewards and future rewards;

[0103] maxa'Q(s t+1 , a′; θtarget): In the next state s t+1 The maximum Q value after selecting action a′ in ; θtarget here represents the parameters of the target network, which is used to stabilize the training;

[0104] Q(s t , a t ; θ): current state s t Next, perform action a t The predicted Q value of is given by the neural network;

[0105] By continuously optimizing the parameters θ of the neural network during the training process, the state value function Q(s t ,a t ;θ) gradually converges to the true state value function and makes predictions and decisions in practical applications;

[0106] The specific ways in which the deep reinforcement learning DRL model and the supervised learning SL model can be related and assist each other in optimizing the frame assembly processing are as follows:

[0107] DRL model output actions: Based on the current state, the DRL model directly outputs the optimal actions to adjust the positions of the clamping plate and the support frame so that the frame beam is accurately positioned and aligned. These actions may correspond to a series of discrete operations to move the clamping plate and the support frame to the left, right, up and down respectively;

[0108] SL model outputs adjustment suggestions: Based on historical data, the SL model has learned the relationship between the position of the clamping plate and the support frame and the accurate positioning and alignment of the frame beam, and can provide more detailed adjustment suggestions. The SL model can output the adjustment suggestions of moving the clamping plate to the right and the support frame upward in the current position to optimize the parameter settings during the processing;

[0109] Step 3: During the processing, the sensor data is monitored in real time and transmitted to the machine learning model. The model analyzes the data and provides real-time feedback, suggesting adjustments to the clamping plate and support frame to optimize the accurate positioning and alignment of the frame beam. The control center guides the operation of the clamping mechanism and the moving mechanism based on the output of the model to achieve real-time optimization of the processing process.

[0110] Compared with the prior art, the present invention has the following beneficial effects:

[0111] 1. In this solution, two sets of symmetrically distributed clamping mechanisms are provided to clamp two frame beams, and the clamping operation is simple, and only the third motor needs to be started, which replaces the manual hand-held frame beams, which not only reduces the consumption of manual labor, but also is more stable.

[0112] 2. In this solution, a thickened plate is provided, which can be installed on one side of a clamping plate and can be installed on different clamping plates according to actual needs. In this way, when clamping the frame beam, it is not necessary to align the frame beams. The welding positions of the two frame beams can be aligned according to actual needs, which is more practical.

[0113] 3. In this solution, the lateral position of the welding equipment can be adjusted more conveniently by means of the lateral moving mechanism. The first motor can be started to rotate the first screw rod forward or reverse, which is more convenient.

[0114] 4. In this solution, the longitudinal moving mechanism is provided to more conveniently adjust the front and rear longitudinal positions of the welding equipment. The second motor can be started to make the second screw rod rotate forward and reverse, which is more convenient. At the same time, the cylinder can be used to adjust the upper and lower longitudinal positions of the welding equipment, so as to better align the welding position.

[0115] 5. In this solution, by providing two arc frames, when placing the frame beam between the two clamping plates, one end of the frame beam can be placed in the arc frame, and it can be lifted up when clamping is required. When flipping is required, it is more convenient to flip it on the arc-shaped inner surface of the arc frame.

[0116] 6. Deep reinforcement learning (DRL) and supervised learning (SL) as well as state value function, policy function, state transfer function, loss function and other methods are integrated together. The main goal is to optimize the processing process of the frame assembly and ensure that the position and posture of the clamping plate and the support frame are effectively adjusted, so as to achieve accurate positioning and alignment of the frame beam. By using DRL and SL models, as well as state value function, policy function, state transfer function and other methods, parameters can be adjusted in real time during the processing process and optimization suggestions can be provided, thereby improving processing efficiency and product quality. The deep reinforcement learning DRL model and the supervised learning SL model can be interrelated and assist each other in optimizing the processing of the frame assembly. The DRL model can directly output the optimal action to adjust the position of the clamping plate and the support frame according to the current state, while the SL model can provide more detailed adjustment suggestions to optimize the parameter settings during the processing process. The combination of the two can more comprehensively optimize the processing process and provide higher quality output suggestions. BRIEF DESCRIPTION OF THE DRAWINGS

[0117] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0118] Figure 1 It is a first-view stereogram in the present invention;

[0119] Figure 2 It is an exploded view of the present invention;

[0120] Figure 3 It is a partial stereoscopic diagram of the lateral movement mechanism in the present invention;

[0121] Figure 4 It is a partial stereoscopic diagram of the clamping mechanism in the present invention;

[0122] Figure 5 It is a partial stereoscopic view of the thickened plate in the present invention;

[0123] Figure 6 It is a second viewing angle stereogram in the present invention.

[0124] In the figure: 1, processing table; 2, first support frame; 3, first screw rod; 4, first nut block; 5, first motor; 6, U-shaped rod; 7, limiting hole; 8, second support frame; 9, second screw rod; 10, second nut block; 11, limiting plate; 12, cylinder; 13, welding equipment; 14, adjusting groove; 15, clamping plate; 16, third nut block; 17, limiting block; 18, bidirectional screw rod; 19, third motor; 20, limiting groove; 21, T-shaped groove; 22, thickened plate; 23, T-shaped block; 24, jack; 25, U-shaped plug rod; 26, fixing block; 27, arc frame; 28, second motor. DETAILED DESCRIPTION

[0125] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example 1

[0126] See also Figure 1-Figure 5 , the present invention provides the following technical solutions:

[0127] A new energy bus frame assembly, comprising:

[0128] Processing table 1;

[0129] The first support frame 2 is fixed on the top of the processing table 1;

[0130] The welding device 13 is arranged between the first support frame 2 and the processing table 1;

[0131] A lateral movement mechanism, provided on the first support frame 2, for realizing lateral linear movement of the welding device 13;

[0132] A longitudinal moving mechanism, arranged on the transverse moving mechanism, is used to realize longitudinal linear movement of the welding device 13;

[0133] The clamping mechanism has two groups, which are symmetrically arranged on the top of the processing table 1.

[0134] Each clamping mechanism includes:

[0135] An adjustment slot 14 is provided on the top of the processing table 1;

[0136] There are two clamping plates 15, which are symmetrically arranged on the upper side of the adjusting slot 14;

[0137] Two third nut blocks 16 are provided and are fixed to the bottoms of the two clamping plates 15 respectively, and the two clamping plates 15 are slidably connected to the adjustment slots 14;

[0138] An adjusting component connected to the two third nut blocks 16 to achieve relative movement thereof;

[0139] The limiting component is connected to both third nut blocks 16 to achieve linear motion.

[0140] In a specific embodiment of the present invention, the device is used for welding the frame beams in the frame assembly of a new energy bus. The processing table 1 is a base, and the first support frame 2 is fixed on the top of the processing table 1 in an inverted "concave" shape, which can carry the welding equipment 13. The welding equipment 13 is electrically connected to the external power supply and can realize electric welding. The position adjustment of the welding equipment 13 can be realized through the lateral movement mechanism and the longitudinal movement mechanism, so that the welding head of the welding equipment 13 can be aligned with the frame beam part that needs to be welded. When the frame beam is located on the upper side of the processing table 1, it is clamped and fixed by the clamping mechanism, replacing the manual hand-holding. When clamping, the two groups of clamping mechanisms are symmetrically distributed, so that the two frame beams to be welded can be docked, and they are not easy to shake after docking. The adjusting components in the clamping mechanism can make the two third nut blocks 16 move in a direction close to each other, thereby driving the clamping plate 15 to clamp the frame beam. After clamping, welding can be performed by the welding equipment 13, which not only reduces the consumption of manual labor but also is more stable.

[0141] Specifically, a thickened plate 22 is provided on one side of the clamping plate 15 , and a T-shaped slot 21 is provided on one side of the thickened plate 22 and the clamping plate 15 . A T-shaped block 23 is fixed on the other side of the thickened plate 22 , and the T-shaped block 23 is embedded and slidably connected in the T-shaped slot 21 .

[0142] Specifically, two insertion holes 24 are provided at one side end of the clamping plate 15 , and both of the two insertion holes 24 penetrate to one side end of the thickened plate 22 , and U-shaped insertion rods 25 are movably inserted into the two insertion holes 24 .

[0143] In this embodiment: a plurality of thickened plates 22 can be provided according to actual needs. The thickened plates 22 are fixed to one side of the clamping plate 15 by embedding the T-shaped block 23 in the T-shaped groove 21. One side of the T-shaped groove 21 is open and the other side is closed. When the T-shaped block 23 slides into the T-shaped groove 21, the U-shaped plug 25 is inserted into the plug hole 24 to fix the T-shaped block 23 in the T-shaped groove 21, so that the thickened plate 22 is fixed to one side of the U-shaped plug 25, and one side of the thickened plate 22 also begins to have a T-shaped groove 21. By analogy, a thickened plate 22 can also be fixed on the thickened plate 22, so that it can be installed on different clamping plates 15 according to actual needs, and different numbers of thickened plates 22 are connected. In this way, when clamping the frame beam, it is not necessary to align the frame beam. The welding positions of the two frame beams can be aligned according to actual needs, which is more practical.

[0144] Specifically, each set of adjustment components includes:

[0145] A bidirectional screw rod 18 is rotatably connected between the inner walls of both sides of the adjusting groove 14;

[0146] The two third nut blocks 16 are both threadedly connected to the circumferential surface of the bidirectional screw rod 18;

[0147] The third motor 19 is fixed to one side of the processing table 1 , and the output end of the third motor 19 movably penetrates into the adjustment slot 14 and is fixed to one end of the bidirectional screw rod 18 .

[0148] In this embodiment: by starting the third motor 19, the output end of the third motor 19 can drive the bidirectional screw rod 18 to rotate. The threads on both sides of the surface of the bidirectional screw rod 18 are in opposite directions, so that when the bidirectional screw rod 18 rotates, it drives the two third nut blocks 16 on its surface to move relative to each other, and move in a direction close to each other or a direction away from each other, thereby clamping and loosening the frame beam.

[0149] Specifically, each set of limiting components includes:

[0150] There are two limit grooves 20, which are respectively opened on the inner walls of both sides of the adjustment groove 14;

[0151] There are a plurality of limit blocks 17 , which are respectively fixed to both side ends of the two third nut blocks 16 , and the plurality of limit blocks 17 are respectively slidably connected to the two limit grooves 20 .

[0152] In this embodiment: when the bidirectional screw rod 18 rotates to drive the third nut block 16 to move, since the multiple limit blocks 17 are respectively slidably connected to the two limit grooves 20, and the limit blocks 17 are fixed to the third nut block 16, the position of the third nut block 16 is limited, and it can only move in a straight line and cannot be offset, so that the two third nut blocks 16 can better drive the clamping plate 15 to clamp the frame beam.

[0153] Specifically, the lateral movement mechanism includes:

[0154] The first screw rod 3 is rotatably connected between the inner walls of both sides of the first support frame 2;

[0155] A first nut block 4 is threadedly connected to the circumferential surface of the first screw rod 3;

[0156] The first motor 5 is fixed to one side end of the first support frame 2 , and the output end of the first motor 5 movably penetrates the inner wall of one side of the first support frame 2 and is fixed to one end of the first screw rod 3 .

[0157] In this embodiment: by starting the first motor 5 of the lateral movement mechanism, the first motor 5 drives the first screw rod 3 to rotate through the output shaft, so that the first nut block 4 moves linearly on the surface of the first screw rod 3, thereby adjusting the lateral position of the first nut block 4.

[0158] Specifically, the longitudinal movement mechanism includes:

[0159] A second support frame 8 is fixed to the bottom of the first nut block 4;

[0160] The second screw rod 9 is rotatably connected between the inner walls of both sides of the second support frame 8;

[0161] A second nut block 10 is threadedly connected to the circumferential surface of the second screw rod 9;

[0162] The second motor 28 is fixed to one side of the second support frame 8, and the output end of the second motor 28 is movable through the inner wall of one side of the second support frame 8 and fixed to one end of the second screw rod 9.

[0163] The cylinder 12 is fixed to the bottom of the second nut block 10 , and the bottom of the cylinder 12 is fixed to the top of the welding device 13 .

[0164] In this embodiment: after the position adjustment of the first nut block 4 is completed, that is, the first nut block 4 drives the second support frame 8 to complete the lateral position adjustment, and then the second motor 28 is started, and the output end of the second motor 28 drives the second screw rod 9 to rotate, so that the second nut block 10 moves linearly on the surface of the second screw rod 9 to adjust the longitudinal position, and the second nut block 10 drives the welding equipment 13 to move through the cylinder 12, so that the welding equipment 13 is finally moved above the position to be welded, and then the cylinder 12 is started to make the welding equipment 13 descend, so that welding operations can be carried out, and there is no need to manually hold the frame beam or welding gun for welding, which is more convenient.

[0165] Specifically, two limiting holes 7 are provided on one side end of the second support frame 8, U-shaped rods 6 are fixed on both side ends of the first support frame 2, the second support frame 8 is slidably connected to the two U-shaped rods 6 through the two limiting holes 7, and two limiting plates 11 are fixed between the inner walls on both sides of the second support frame 8, and the two limiting plates 11 are respectively abutted against the two side ends of the second nut block 10.

[0166] In this embodiment: when the first screw rod 3 drives the first nut block 4 to move, the first nut block 4 drives the second support frame 8 to move. Since the second support frame 8 is slidably connected to the two U-shaped rods 6 through the two limiting holes 7, the position of the second support frame 8 is limited and can only make linear motion. Therefore, when the first screw rod 3 rotates, it drives the first nut block 4 to make linear motion, and it is not easy for the position to shift. Similarly, when the second screw rod 9 rotates to drive the second nut block 10 to move, since the two limiting plates 11 are respectively attached to the two side ends of the second nut block 10, the position of the second nut block 10 is limited, and it can only slide between the two limiting plates 11 for linear motion, and it is not easy for the position to shift.

[0167] Specifically, arc frames 27 are fixed on both sides of the top of the processing table 1 , and fixing blocks 26 are fixed on both side ends of the processing table 1 .

[0168] In this embodiment, by providing two arc frames 27, when placing the frame beam between the two clamping plates 15, one end of the frame beam can be placed in the arc frame 27, and it can be lifted when clamping is required. When flipping is required, it is more convenient to flip on the arc-shaped inner surface of the arc frame 27. Threaded holes are provided on the fixing block 26, and the processing table 1 can be installed in the specified position by bolts, which is more firm and not easy to shake.

[0169] It should be noted that the first motor 5, the cylinder 12, the third motor 19 and the second motor 28 are all existing technologies, and corresponding models can be selected according to actual needs, and no further details are given for this. Example 2

[0170] This example also provides a method for using a new energy bus frame assembly, which is used to further explain and illustrate the working principle and method for using the new energy bus frame assembly provided in the above embodiment 1, as follows:

[0171] Specifically, a processing method for a new energy bus frame assembly includes the following steps:

[0172] S1. When processing and welding the frame beam, first place the beam to be welded between two clamping plates 15 that are oppositely distributed, and then use the third motor 19 in each set of clamping mechanisms to make the two third motors 19 drive the bidirectional screw rods 18 to rotate, and the bidirectional screw rods 18 move the two third nut blocks 16 on the surface thereof in a direction close to each other, and finally drive the two clamping plates 15 to clamp the frame beam, so that the clamping plates 15 in the two sets of clamping mechanisms respectively clamp the corresponding frame beams to be welded, and make the two frame beams connected and aligned;

[0173] S2, then by starting the first motor 5 of the lateral movement mechanism, the first motor 5 drives the first screw rod 3 to rotate through the output shaft, so that the first nut block 4 moves linearly on the surface of the first screw rod 3, thereby adjusting the lateral position of the first nut block 4;

[0174] S3. After the position adjustment of the first nut block 4 is completed, that is, the first nut block 4 drives the second support frame 8 to complete the lateral position adjustment, and then the second motor 28 is started. The output end of the second motor 28 drives the second screw rod 9 to rotate, so that the second nut block 10 moves linearly on the surface of the second screw rod 9 to adjust the longitudinal position. The second nut block 10 drives the welding equipment 13 to move through the cylinder 12, so that the welding equipment 13 finally moves to the top of the position to be welded, and then the cylinder 12 is started to make the welding equipment 13 descend, so that welding operations can be carried out, and there is no need to manually hold the frame beam or welding gun for welding, which is more convenient.

[0175] In S1, when processing and welding the frame beam, the intelligent algorithm based on machine learning and real-time data analysis optimizes the processing process of the frame assembly. The algorithm can adjust the position of the clamping plate and the support frame in real time according to the sensor data to ensure the accurate positioning and alignment of the frame beam; the specific process is as follows:

[0176] Step 1: Install a sensor network to collect real-time data during the frame assembly process, including the position, posture, and processing status of the clamping plate, support frame, and welding equipment; transmit the sensor data to the data acquisition module for processing and preparation;

[0177] Sensor Installation:

[0178] Position sensor: installed on the clamping plate and support frame to monitor their position and posture in real time, using photoelectric encoder or Hall effect sensor.

[0179] Parameter variables:

[0180] Clamping plate position (X1, Y1, Z1)

[0181] Support frame position (X2, Y2, Z2)

[0182] Clamping plate posture (Roll1, Pitch1, Yaw1)

[0183] Support frame posture (Roll2, Pitch2, Yaw2)

[0184] Processing status sensor: installed on welding equipment to monitor the status of the welding process, such as welding current, voltage and welding speed, including current sensors, voltage sensors and speed sensors.

[0185] Parameter variables:

[0186] Welding current (I)

[0187] Welding voltage (V)

[0188] Welding speed (S)

[0189] Welding status (Welding_Status)

[0190] Data acquisition module and processing: using industrial-grade data acquisition card or embedded processor.

[0191] Data processing and preparation: Use professional data processing software such as MATLAB, Python, etc.

[0192] Parameter variables:

[0193] Data Processing Algorithm

[0194] Data Storage Format (Data_Storage_Format)

[0195] In this embodiment, during the actual frame assembly processing, the sensor network collects the position, posture and welding status data of each component in real time and transmits it to the data acquisition module for processing and preparation. For example, the photoelectric encoder and the Hall effect sensor can monitor the position and posture of the clamping plate and the support frame, while the current sensor and the voltage sensor can monitor the current, voltage and welding status of the welding equipment.

[0196] The data acquisition module transmits the sensor data to the data processing software in real time by setting the sampling frequency and transmission protocol. In the data processing software, professional data processing algorithms are used to process and analyze the sensor data to extract useful information, such as the position adjustment of the clamping plate and the support frame, and optimization suggestions for welding parameters.

[0197] Finally, the processed and prepared data is stored in an appropriate format and can be used for real-time monitoring of the machining process, optimization of machining parameters, and generation of machining reports.

[0198] Step 2: Build a model that combines deep reinforcement learning and supervised learning based on sensor data. Use existing processing data and real-time feedback to train the model to understand the impact of different processing parameters on the accuracy and alignment of the frame assembly, ensuring that the machine learning model can perform rapid reasoning and decision-making in a real-time environment.

[0199] The deep reinforcement learning (DRL) model is:

[0200] 1. State space design:

[0201] Assume that we use vector s t To represent the state at time step t, which includes the position and posture information of the clamping plate, support frame, and welding equipment.

[0202] 2. Action space design:

[0203] Assume that vector a t To represent the state s t The actions performed below include adjusting the positions of the clamping plate and the support frame.

[0204] 3. Reward function design:

[0205] Assume that r t represents the reward at time step t, and the reward function is designed according to the accuracy and alignment indicators of the frame assembly, such as r t=f(s t ,a t ).

[0206] 4. Reinforcement learning model establishment:

[0207] State transfer function P(s t+1 ∣s t ,a t ): describes the state s in a given state t and action a t Next, transfer to the next state s t+1 The probability distribution of .

[0208] For example, the state s t Represented as a grid containing the clamping plate position , the vector of the support frame position psupport and the welding equipment position pwelding, action a t Represented as a system that includes adjusting the clamping plate position and the vector of the support position Δpsupport.

[0209] In this case, the state transition function can be simply expressed as a deterministic function:

[0210] s t+1 = f(s t ,a t ) where f is a state that changes the current state s t and action a t A deterministic function that maps to the next state st+1. For example, suppose we know the linear relationship between the position adjustment of the clamping plate and the position of the clamping plate clamping the frame, and given the action at, the position of the clamping plate can be adjusted by simple addition and subtraction operations. Then the state transition function can be expressed as:

[0211] pclamp(t+1)=pclamp(t)+Δpclamp

[0212] psupport(t+1)= psupport(t)+ Δpsupport

[0213] pwelding(t+1)= pwelding(t)+ Δpwelding

[0214] Here pclamp(t), psupport(t) and pwelding(t) represent the positions of the clamping plate, support frame and welding equipment at time step t, respectively, and Respectively represent the actions of adjusting the positions of the clamping plate, the support frame and the welding equipment.

[0215] State value function Q(s t ,a t ;θ): evaluate at a given state s t and action a t The expected return value under . It is usually represented by a neural network in a deep Q network (DQN).

[0216] Assume that a multilayer perceptron (MLP) is used as an approximator of the state-value function, where the input is the state s t and action a t , the output is the expected reward value of the corresponding action.

[0217] Assume that the structure of the neural network is as follows:

[0218] Input layer: receives state s t and action a t .

[0219] Hidden layer: There can be multiple hidden layers, each hidden layer contains multiple neurons, and nonlinear transformation is performed through activation functions.

[0220] Output layer: Output each possible action a t The corresponding expected return value.

[0221] Assuming that the hidden layer uses the ReLU activation function and the output layer does not use the activation function, the specific expression of the state value function can be expressed as:

[0222] Q(s t ,a t ;θ)=output, where output is the value of the output layer of the neural network.

[0223] The parameters of this neural network, θ, can be updated during the training process through an optimization algorithm (such as stochastic gradient descent) so that the output of the state-value function is as close as possible to the actual expected reward value. During the training process, the experience tuples in the experience replay buffer are used to calculate the loss, and the parameters of the neural network are updated through the back-propagation algorithm.

[0224] Specifically, the current state s t and action a t Input the neural network and get the corresponding expected return value. Then, use the difference between these expected return values ​​and the actual return value to calculate the loss and update the neural network parameters θ through the back-propagation algorithm.

[0225] In this way, during the continuous training process, the parameters θ of the neural network will gradually adjust to make the state value function Q(s t ,a t ;θ) is a state where the output is as close as possible to the actual expected return value.

[0226] The policy function π(a t ∣s t ): A function that selects the best action based on the current state s.

[0227] In reinforcement learning, the policy function represents the probability distribution of selecting an action in a given state. Assume that a neural network is used to represent the policy function, and the input is the current state s t , the output is the probability distribution of each action.

[0228] Assume that the state space is S, the action space is A, and the state s t The corresponding action probability distribution is π(a t ∣s t ), then the specific expression of the policy function can be expressed as the output layer of a neural network, and the output is the probability distribution of the action. The softmax function is usually used to convert the output of the neural network into a probability distribution, that is:

[0229] π(a t ∣s t )=softmax(Q(s t ,a t ))

[0230] Among them, Q(s t ,a t ) is the state action value function, which means that in state s t Take action a t During the training process, by continuously optimizing the parameters of the neural network, the policy function can output the action probability distribution that maximizes the long-term return.

[0231] In summary, the policy function of the deep reinforcement learning (DRL) model can output the probability distribution of actions through a neural network, where the action probability is obtained by processing the state-action value function through the softmax function.

[0232] 5. Model training and optimization:

[0233] The deep Q network (DQN) algorithm is used to optimize the value function by minimizing the TD error, and then optimize the policy function, so that the model can learn the optimal processing strategy through continuous trial and error.

[0234] Supervised Learning (SL) Model:

[0235] 1. Input feature design:

[0236] Suppose we use vector x tTo represent the input features at time step t, the information in the state space is used as the input features of the supervised learning model.

[0237] 2. Output label design:

[0238] Suppose we use the vector y t to represent the output label at time step t, which is the accuracy and alignment index of the frame assembly.

[0239] 3. Supervised learning model establishment:

[0240] Suppose we use the function f(x t ) to represent the supervised learning model, where f(x t ) can be a deep neural network that takes as input the feature x t Mapped to output label y t .

[0241] Let the input feature space be X, the output label space be Y, and the input feature corresponding to time step t be x t , the output label is y t During the training process, the parameters of the neural network are optimized so that the model's predicted output f(x t ) is as close to the true output label y as possible t .

[0242] The specific expression of the supervised learning model can be expressed as a deep neural network. The specific expression of the supervised learning model can be expressed as:

[0243] y t =f(x t )

[0244] 4. Model training and optimization:

[0245] Using historical processing data sets, by minimizing the loss function L(f(x t ),y t ) to train a supervised learning model to understand the impact of different processing parameters on the accuracy and alignment of the frame assembly, and to perform predictions and optimizations.

[0246] Commonly used loss functions include mean square error (MSE) or Huber loss function.

[0247] L(θ)= E[(s t ,a t ,r t+1 ,s t+1 )~D][(r t+1 +γmaxa′Q(s t+1 ,a′;θtarget)-Q(s t ,at ;θ))^2]

[0248] Where D is the experience replay buffer, (s t ,a t ,r t+1 ,s t+1 ) is an experience tuple randomly sampled from the experience replay buffer, γ is the discount factor, and θtarget is the parameter of the target network. The goal of this loss function is to minimize the mean squared error between the network output and the target value.

[0249] By continuously optimizing the parameters θ of the neural network during the training process, the state value function Q(s t ,a t ;θ) gradually converges to the true state value function and performs prediction and decision-making in practical applications.

[0250] The deep reinforcement learning (DRL) model and the supervised learning (SL) model can be interrelated and assist each other in optimizing the frame assembly processing. The DRL model can directly output the optimal action for adjusting the position of the clamping plate and the support frame according to the current state, while the SL model can provide more detailed adjustment suggestions to optimize the parameter settings during the processing. The combination of the two can more comprehensively optimize the processing process and provide higher quality output suggestions.

[0251] The specific ways in which the deep reinforcement learning (DRL) model and the supervised learning (SL) model can be interrelated and assist each other in optimizing the frame assembly processing are as follows:

[0252] DRL model output actions: Based on the current state, the DRL model directly outputs the optimal actions to adjust the position of the clamping plate and the support frame so that the frame beam is accurately positioned and aligned. These actions may correspond to a series of discrete operations, such as moving the clamping plate and the support frame to the left, right, up and down, etc.

[0253] SL model outputs adjustment suggestions: Based on historical data, the SL model has learned the relationship between the clamping plate and support frame positions and the accurate positioning and alignment of the frame beam, and can provide more detailed adjustment suggestions. For example, the SL model can output suggestions such as moving the clamping plate 0.5 meters to the right and adjusting the support frame upward by 0.2 meters in the current position to optimize the parameter settings during the processing.

[0254] Comprehensive output suggestions: The outputs of the DRL model and the SL model are combined to obtain more comprehensive output suggestions. For example, the position of the clamping plate and the support frame can be roughly adjusted based on the actions output by the DRL model, and then further fine-tuned based on the adjustment suggestions of the SL model to achieve a higher level of accurate positioning and alignment of the frame rails.

[0255] Step 3: During the machining process, sensor data is monitored in real time and transmitted to the machine learning model, which analyzes the data and provides real-time feedback, suggesting adjustments to the clamping plate and support frame to optimize the accurate positioning and alignment of the frame beam. The control center guides the operation of the clamping mechanism and the moving mechanism based on the output of the model, achieving real-time optimization of the machining process.

[0256] A deep reinforcement learning (DRL) model and a supervised learning (SL) model were built to analyze the data and provide real-time feedback to optimize the adjustment of the clamping plates and support brackets to optimize the accurate positioning and alignment of the frame rails.

[0257] In the DRL model, the state space includes information such as the position and posture of the clamping plate, support frame, and welding equipment, and the action space includes the adjustment method of the clamping plate and support frame. The model learns from historical data and adjusts the position of the clamping plate and support frame in real time to maximize the accuracy and alignment of the frame beam.

[0258] In the SL model, sensor data is used as input features, and the accuracy and alignment indicators of the frame assembly are used as output labels. The model is trained through a supervised learning algorithm to understand the impact of different processing parameters on the frame assembly and provide optimization suggestions.

[0259] Real-time monitoring and adjustment: Real-time monitoring of sensor data and model output during the processing, real-time adjustment of processing parameters, and timely adjustment of the position of the clamping plate and support frame based on real-time data analysis to ensure accurate positioning and alignment of the frame beam.

[0260] Numerical case analysis:

[0261] DRL model output actions:

[0262] Based on the current state, the DRL model directly outputs the optimal action for adjusting the position of the clamping plate and the support frame, as shown below:

[0263] Clamping plate movement: move 0.2 meters to the left and adjust 0.1 meters upward

[0264] Support frame movement: move right 0.3 meters, adjust downward 0.2 meters

[0265] SL model output adjustment:

[0266] The SL model has learned from historical data the relationship between the clamp plate and support bracket positions and the accurate positioning and alignment of the frame rails, providing more refined adjustment suggestions, as shown below:

[0267] Clamping plate adjustment suggestion: In the current position, move 0.01m to the left and adjust 0.05m upwards

[0268] Support frame adjustment suggestion: In the current position, move right 0.02 meters and adjust downward 0.15 meters

[0269] Comprehensive output:

[0270] Combining the outputs of the DRL model and the SL model, we get a more comprehensive output recommendation, as shown below:

[0271] Clamping plate position adjustment:

[0272] According to the DRL model output action, the clamping plate is moved 0.2 meters to the left and adjusted 0.1 meters upward.

[0273] According to the adjustment suggestions output by the SL model, fine-tune the position of the clamping plate, moving it 0.01 meter to the left and 0.05 meter upward.

[0274] Comprehensive suggestion: The clamping plate finally moves 0.21 meters to the left and adjusts upward by 0.15 meters.

[0275] Support frame position adjustment:

[0276] According to the DRL model output action, the support frame is moved 0.3 meters to the right and adjusted downward by 0.2 meters.

[0277] According to the adjustment suggestions output by the SL model, fine-tune the position of the support frame, moving it 0.02 meters to the right and 0.15 meters downward.

[0278] Comprehensive suggestion: The support frame finally moved 0.32 meters to the right and adjusted downward by 0.35 meters.

[0279] By combining the output recommendations of the DRL model and the SL model, a more accurate and comprehensive clamp plate and support bracket position adjustment solution can be obtained to achieve a higher level of frame rail accurate positioning and alignment.

[0280] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for processing a new energy bus frame assembly, characterized in that: The new energy bus frame assembly includes: Processing table (1); A first support frame (2) fixed to the top of the processing table (1); A welding device (13) is arranged between the first support frame (2) and the processing table (1); A transverse movement mechanism, arranged on the first support frame (2), and used to enable the welding device (13) to perform transverse linear movement; A longitudinal moving mechanism, arranged on the transverse moving mechanism, for realizing longitudinal linear movement of the welding device (13); The clamping mechanism is provided with two groups, which are symmetrically arranged on the top of the processing table (1), wherein Each group of the clamping mechanisms comprises: An adjustment groove (14) is provided on the top of the processing table (1); Two clamping plates (15) are provided and are symmetrically arranged on the upper side of the adjustment slot (14); Two third nut blocks (16) are provided and are respectively fixed to the bottoms of the two clamping plates (15), and the two clamping plates (15) are both slidably connected in the adjustment groove (14); An adjusting component connected to the two third nut blocks (16) to achieve relative movement thereof; A limiting component connected to both of the two third nut blocks (16) to enable them to move linearly; A thickened plate (22) is provided on one side of the clamping plate (15), and a T-shaped groove (21) is provided on one side end of the thickened plate (22) and the clamping plate (15), and a T-shaped block (23) is fixed on the other side end of the thickened plate (22), and the T-shaped block (23) is embedded in the T-shaped groove (21) for sliding connection; Two insertion holes (24) are provided at one side end of the clamping plate (15), and the two insertion holes (24) are both extended through one side end of the thickened plate (22), and a U-shaped insertion rod (25) is movably inserted into the two insertion holes (24); Each set of adjusting components comprises: A bidirectional screw rod (18) rotatably connected between the inner walls on both sides of the adjustment groove (14); The two third nut blocks (16) are both threadedly connected to the circumferential surface of the bidirectional screw rod (18); A third motor (19) is fixed to one side end of the processing table (1), and an output end of the third motor (19) movably penetrates into the adjustment slot (14) and is fixed to one end of the bidirectional screw rod (18); Each set of the limiting components includes: Two limiting grooves (20) are provided and are respectively opened on the inner walls on both sides of the adjusting groove (14); A plurality of limit blocks (17) are provided, each of which is fixed to both side ends of the two third nut blocks (16), and each of the limit blocks (17) is slidably connected to the two limit grooves (20); The lateral movement mechanism comprises: A first screw rod (3) rotatably connected between two inner walls of the first support frame (2); A first nut block (4) threadedly connected to the circumferential surface of the first screw rod (3); A first motor (5) is fixed to one side end of the first support frame (2), and an output end of the first motor (5) movably penetrates an inner wall of one side of the first support frame (2) and is fixed to one end of the first screw rod (3); The longitudinal movement mechanism comprises: A second support frame (8) fixed to the bottom of the first nut block (4); A second screw rod (9) rotatably connected between two inner walls of the second support frame (8); A second nut block (10) threadedly connected to the circumferential surface of the second screw rod (9); A second motor (28) is fixed to one side end of the second support frame (8), and an output end of the second motor (28) movably penetrates an inner wall of one side of the second support frame (8) and is fixed to one end of the second screw rod (9); A cylinder (12) is fixed to the bottom of the second nut block (10), and the bottom of the cylinder (12) is fixed to the top of the welding device (13); Two limiting holes (7) are provided at one side end of the second support frame (8), U-shaped rods (6) are fixed at both side ends of the first support frame (2), the second support frame (8) is slidably connected to the two U-shaped rods (6) through the two limiting holes (7), and two limiting plates (11) are fixed between the inner walls on both sides of the second support frame (8), and the two limiting plates (11) are respectively abutted against the two side ends of the second nut block (10); Both sides of the top of the processing table (1) are fixed with arc-shaped frames (27), and both side ends of the processing table (1) are fixed with fixing blocks (26); The processing method of the new energy bus frame assembly includes the following steps: S1. When performing welding processing on a frame beam, firstly, the cross beam to be welded is placed between two clamping plates (15) that are arranged opposite to each other, and then the two third motors (19) in each set of clamping mechanisms drive the two bidirectional screw rods (18) to rotate, and the bidirectional screw rods (18) move two third nut blocks (16) on the surfaces thereof in a direction close to each other, and finally drive the two clamping plates (15) to clamp the frame beam, so that the clamping plates (15) in the two sets of clamping mechanisms respectively clamp the corresponding frame beams to be welded, and the two frame beams are connected and aligned; S2, then starting the first motor (5) of the transverse movement mechanism, the first motor (5) drives the first screw rod (3) to rotate via the output shaft, so that the first nut block (4) moves linearly on the surface of the first screw rod (3), thereby adjusting the transverse position of the first nut block (4); S3, after the position adjustment of the first nut block (4) is completed, that is, the first nut block (4) drives the second support frame (8) to complete the lateral position adjustment, then the second motor (28) is started, and the output end of the second motor (28) drives the second screw rod (9) to rotate, so that the second nut block (10) moves linearly on the surface of the second screw rod (9) to adjust the longitudinal position, and the second nut block (10) drives the welding device (13) to move through the cylinder (12), so that the welding device (13) finally moves to the top of the position to be welded, and then the cylinder (12) is started to make the welding device (13) descend, so that welding operations can be carried out, without the need for manual hand-held frame beams or welding guns for welding, which is more convenient; In S1, when processing and welding the frame beam, the intelligent algorithm based on machine learning and real-time data analysis optimizes the processing process of the frame assembly. The algorithm adjusts the position of the clamping plate and the support frame in real time according to the sensor data to ensure the accurate positioning and alignment of the frame beam. The specific process is as follows: Step 1: Install a sensor network to collect real-time data during the frame assembly process, including the position, posture, and processing status of the clamping plate, support frame, and welding equipment; transmit the sensor data to the data acquisition module for processing and preparation; Position sensor: installed on the clamping plate and support frame to monitor their position and posture in real time, using photoelectric encoder or Hall effect sensor; Processing state sensor: installed on welding equipment to monitor welding current, voltage and welding speed during welding process, including current sensor, voltage sensor and speed sensor; During the actual frame assembly processing, the sensor network collects the position, posture and welding status data of each component in real time and transmits it to the data acquisition module for processing and preparation; the data acquisition module transmits the sensor data to the data processing software in real time by setting the sampling frequency and transmission protocol; Step 2: Build a model combining deep reinforcement learning and supervised learning based on sensor data. Use existing process data and real-time feedback to train the model to understand the impact of different processing parameters on the accuracy and alignment of the frame assembly, ensuring that the machine learning model can make rapid inferences and decisions in a real-time environment. The deep reinforcement learning DRL model is:

1. State space design: Use vector s t To represent the state at time step t, including the position and posture information of the clamping plate, support frame, and welding equipment; 2. Action space design: With vector a t To represent the state s t The actions performed below include adjusting the positions of the clamping plate and the support frame; 3. Reward function design: Use r t represents the reward at time step t, and the reward function is designed based on the accuracy and alignment indicators of the frame assembly; 4. Reinforcement learning model establishment: State transfer function P(s t+1 ∣s t ,a t ): describes the state s t and action a t Next, transfer to the next state s t+1 The probability distribution of The state s t Represented as a grid containing the clamping plate position , the vector of the support frame position psupport and the welding equipment position pwelding, action a t Represented as a system that includes adjusting the clamping plate position and the vector of the support position Δpsupport; In this case, the state transition function is simply expressed as a deterministic function: s t+1 = f(s t ,a t ), where f is a state that changes the current state s t and action a t Mapped to the next state s t+1 The deterministic function determines the linear relationship between the position adjustment of the clamping plate and the position of the clamping plate clamping the frame, and given the action a t Under this condition, the position of the clamping plate is adjusted by simple addition and subtraction operations, and the state transfer function is expressed as: pclamp(t+1)=pclamp(t)+Δpclamp psupport(t+1)= psupport(t)+ Δpsupport pwelding(t+1)= pwelding(t)+ Δpwelding Here pclamp(t), psupport(t) and pwelding(t) represent the positions of the clamping plate, support frame and welding equipment at time step t, respectively, and Respectively represent the actions of adjusting the positions of the clamping plate, the support frame and the welding equipment; State value function Q(s t ,a t ;θ): evaluate at a given state s t and action a t The expected return value under the condition of ; usually represented by a neural network in the deep Q network DQN; Use a multilayer perceptron MLP as an approximator of the state-value function, where the input is the state s t and action a t , the output is the expected reward value of the corresponding action; The structure of the neural network is as follows: Input layer: receives state s t and action a t ; Hidden layer: There are multiple hidden layers, each of which contains multiple neurons and performs nonlinear transformation through activation functions; Output layer: Output each action a t The corresponding expected return value; The hidden layer uses the ReLU activation function, and the output layer does not use the activation function. Then the specific expression of the state value function is expressed as: Q(s t ,a t ;θ)=output, where output is the value of the output layer of the neural network; The current state s t and action a t Input the neural network to get the corresponding expected return value; then, use the difference between these expected return values ​​and the actual return value to calculate the loss, and update the neural network parameters θ through the back-propagation algorithm; During the continuous training process, the parameters θ of the neural network will gradually adjust to make the state value function Q(s t ,a t ;θ) is close to the actual expected return value; The policy function π(a t ∣s t ): According to the current state s t A function that selects the best action; In reinforcement learning, the policy function represents the probability distribution of selecting an action in a given state. A neural network is used to represent the policy function, and the input is the current state s t , the output is the probability distribution of each action; The state space is S, the action space is A, and the current state is s t The corresponding action probability distribution is π(a t ∣s t ), then the specific expression of the policy function is represented by the output layer of a neural network, and the output is the probability distribution of the action. The softmax function is usually used to convert the output of the neural network into a probability distribution, that is: π(a t ∣s t )=softmax(Q(s t ,a t )); Among them, Q(s t ,a t ) is the state action value function, which means that in state s t Take action a t During the training process, by continuously optimizing the parameters of the neural network, the policy function can output the action probability distribution that maximizes the long-term return. The policy function of the deep reinforcement learning (DRL) model outputs the probability distribution of actions through a neural network, where the action probability is obtained by processing the state action value function through the softmax function.

5. Model training and optimization: Using the deep Q network DQN algorithm, the value function is optimized by minimizing the TD error, and then the strategy function is optimized, so that the model can learn the optimal processing strategy through continuous trial and error; Supervised Learning SL Model:

1. Input feature design: With vector x t To represent the input features at time step t, the information in the state space is used as the input features of the supervised learning model; 2. Output label design: With vector y t to represent the output label at time step t, i.e., the accuracy and alignment index of the frame assembly; 3. Supervised learning model establishment: Use the function f(x t ) to represent the supervised learning model, where f(x t ) is a deep neural network that takes as input the feature x t Mapped to output label y t ; Let the input feature space be X, the output label space be Y, and the input feature corresponding to time step t be x t , the output label is y t During the training process, the parameters of the neural network are optimized so that the model's predicted output f(x t ) is close to the true output label y t ; The specific expression of the supervised learning model is a deep neural network. The specific expression of the supervised learning model is: t =f(x t ) 4. Model training and optimization: Using historical processing data sets, by minimizing the loss function L(f(x t ),y t ) to train supervised learning models to understand the impact of different processing parameters on frame assembly accuracy and alignment, and to perform predictions and optimizations; The loss function uses the Huber loss function: L(θ)=E[(s t ,a t ,r t+1 ,s t+1 )~D][(r t+1 +γmaxa′Q(s t+1 ,a′;θtarget)-Q(s t ,a t ;θ))^2]; L(θ): represents the loss function, which is the objective to be minimized, where θ is the parameter of the neural network; E[(s t ,a t ,r t+1 ,s t+1 )~D]: This part is the expected operator, which means to perform the expected operation on the samples in the data set D; t Indicates the current state, a t Indicates the action taken in the current state, r t+1 Represents the reward obtained after executing the action, s t+1 Indicates the next state to transfer to; (r t+1 + γ maxa'Q(s t+1 ,a′;θtarget)-Q(s t ,a t ;θ))^2: This is the core part of the loss function, which is the mean square error between the predicted Q value and the target Q value; specifically: r t+1 : The immediate reward obtained after performing the action; γ: discount factor, used to balance the importance of current rewards and future rewards; maxa'Q(s t+1 , a′; θtarget): In the next state s t+1 The maximum Q value after selecting action a′ in ; θtarget here represents the parameters of the target network, which is used to stabilize the training; Q(s t , a t ; θ): current state s t Next, perform action a t The predicted Q value of is given by the neural network; By continuously optimizing the parameters θ of the neural network during the training process, the state value function Q(s t ,a t ;θ) gradually converges to the true state value function and makes predictions and decisions in practical applications; The specific ways in which the deep reinforcement learning DRL model and the supervised learning SL model are related and assist each other in optimizing the frame assembly processing are as follows: DRL model output action: Based on the current state, the DRL model directly outputs the optimal action to adjust the position of the clamping plate and the support frame so that the frame beam is accurately positioned and aligned; SL model outputs adjustment suggestions: Based on historical data, the SL model learns the relationship between the clamping plate and support frame positions and the accurate positioning and alignment of the frame rails, and can provide more refined adjustment suggestions; Step 3: During the processing, the sensor data is monitored in real time and transmitted to the machine learning model. The model analyzes the data and provides real-time feedback, suggesting adjustments to the clamping plate and support frame to optimize the accurate positioning and alignment of the frame beam. The control center guides the operation of the clamping mechanism and the moving mechanism based on the output of the model to achieve real-time optimization of the processing process.