In this work, a multibody system dynamics model of a battery pack is constructed based on the recursive idea, which can characterize the state information of each cell, such as velocity, acceleration, deformation, etc., during extrusion. By utilizing machine learning techniques, it is possible to achieve both the forward and reverse design of the adhesive for the battery pack. This enables accurate prediction of battery deformation under various adhesive stiffness and damping coefficients, as well as different battery SOCs. Consequently, the design of the battery adhesive can be guided, resulting in minimal distortion of the battery pack during extrusion and reducing the risk of internal short circuits.