Autonomous buckling method, device and equipment for male and female heads of flexible flat cable, medium and product
By establishing a Marshall distance characterization model and using the actuator, the problems of inaccurate contact state perception and low fastening efficiency in soft cable assembly are solved, and the precise and autonomous fastening of male and female heads of soft cables are achieved, which improves assembly efficiency .
Patent Information
- Application Number
- CN202411139248.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-08-19
AI Technical Summary
In the 3C production line, soft cable assembly is difficult to observe and precisely fasten due to its small size and thin characteristics, and the alignment accuracy of male and female heads is high, making it difficult for the prior art to achieve efficient independent fastener.
By obtaining the tactile data of the male and female heads of the soft cable cable, a Mahayana distance characterization model is established, the offset of the male head is predicted, and the actuator is used to achieve accurate autonomous clamping.
The precise perception and efficient clamping of male and female head contact status of soft cables is achieved, significantly improving assembly efficiency.
Smart Images

Figure CN118920175A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of 3C assembly technology, and in particular to a method, device, equipment, medium and product for autonomously fastening male and female connectors of a flexible flat cable. Background Art
[0002] At present, most processes in 3C production lines have been automated, but small parts such as mobile phone flexible cables are difficult to observe and perceive due to their small size, easy to be blocked, thin and light, and unstable warping posture. In addition, the alignment accuracy required for the male and female heads to be fastened is high and the allowable deviation is small, making it difficult to assemble them through simple visual servoing. The advantage of tactile perception is that it can obtain parameters such as the force change of the contact surface, the posture and shape of the parts through contact area perception, which can better compensate for the problem of visual occlusion after the male and female heads contact.
[0003] Patent CN116690617A describes an intelligent end effector and a method for sensing the snap-on state. This method uses the 2×6 array tactile data obtained by the end effector to fit the normal force slope of the male and female contact surfaces, and uses the slope as the basis for judging the deviation state to guide the actuator to drive the male cable head to move in the alignment direction, and presses to snap when it is judged to be aligned. However, this method only realizes the contact state perception of the male and female heads through classification, that is, it can only judge the three contact states of left deviation, right deviation and alignment, and there is a problem of inaccurate contact state perception. This also causes the method to only be able to move step by step in the alignment direction during the perception adjustment process, and fails to achieve autonomous snapping based on tactile information feedback, making this method inefficient. Summary of the invention
[0004] The purpose of the present application is to provide a method, device, equipment, medium and product for autonomously fastening male and female connectors of a flexible flat cable, which can solve the problems of inaccurate contact state perception and low fastening efficiency in the current flexible flat cable assembly.
[0005] To achieve the above objectives, this application provides the following solutions:
[0006] In a first aspect, the present application provides an autonomous buckling method for male and female connectors of a flexible flat cable, the autonomous buckling method comprising:
[0007] Get the tactile data set of the contact surface of the male connector of the flexible flat cable and the contact status of the male and female connectors of the flexible flat cable.
[0008] Based on the consistency criterion of the tactile array information, the contact surface of the male connector of the flexible flat cable and the tactile sensor are initialized and leveled.
[0009] A Mahalanobis distance characterization model is established based on a tactile data set of the contact state of the male and female connectors of the flexible flat cable; the Mahalanobis distance characterization model is used to predict the offset of the male connector of the flexible flat cable.
[0010] According to the tactile data acquired by the tactile sensor in the current contact state, based on the Mahalanobis distance characterization model, the male head offset of the flexible flat cable male head is predicted.
[0011] Based on the male head offset, the actuator is controlled to complete the autonomous buckling of the flexible flat cable male head and the flexible flat cable female head.
[0012] Optionally, the process of determining the consistency criterion of the tactile array information specifically includes:
[0013] Step 201: Acquire tactile array information of the male connector of the flexible flat cable; the tactile array information is information acquired by applying pressure to the surface of the male connector of the flexible flat cable through a tactile sensor when the male and female connectors of the flexible flat cable are in a buckled state.
[0014] Step 202: Process the tactile array information and fit the array data to obtain a normal plane of the contact surface of the male connector of the flexible flat cable.
[0015] Step 203: Process the normal plane of the contact surface to determine the normal vector of the normal plane.
[0016] Step 204: Compare the normal vector of the normal plane with the normal vector of the parallel contact state to determine the conversion angle.
[0017] Step 205: after performing posture conversion on the tactile sensor according to the conversion angle, the tactile array information of the male connector of the flexible flat cable is obtained again.
[0018] Step 206: Process the reacquired tactile array information to determine the maximum value of the difference between the normal force value of each array data and the mean value of all array data.
[0019] Step 207: Execute steps 201 to 206 repeatedly for a set number of times to obtain a maximum value set; the maximum value set includes the maximum value of the difference between the normal force value of each array data and the mean value of all array data obtained at each number of cycles.
[0020] Step 208: Determine a leveling threshold based on the minimum value in the maximum value set.
[0021] Step 209: Determine the consistency criterion of the tactile array information according to the leveling threshold.
[0022] Optionally, based on the consistency criterion of the tactile array information, the contact surface of the male connector of the flexible flat cable and the tactile sensor are initialized and leveled, specifically including:
[0023] Acquire the tactile array information of the male connector of the flexible flat cable.
[0024] The acquired tactile array information is processed to determine the difference between the normal force value of each array data and the mean value of all array data.
[0025] The difference is judged based on the consistency criterion of the tactile array information.
[0026] If the differences are all less than or equal to the leveling threshold, it is determined that each array meets the consistency criterion and the initialization leveling is completed.
[0027] If the differences are all greater than the leveling threshold, the conversion angle is solved, and the tactile sensor is transformed in position according to the conversion angle and the steps are executed again; the tactile array information of the male connector of the flexible flat cable is obtained until each array meets the consistency criterion.
[0028] Optionally, a Mahalanobis distance characterization model is established based on the tactile dataset of the contact state of the male and female connectors of the flexible flat cable, specifically including:
[0029] The principal component analysis is performed on the tactile data set to reduce the dimensionality in two dimensions, so as to obtain a principal component analysis model and a tactile feature set; the tactile data set is a data set containing a plurality of tactile samples; the tactile sample is composed of an array data and an offset label corresponding to the array data; the array data is stable output data corresponding to each offset label under a set downward pre-pressure condition; the tactile feature set includes the tactile features under each offset label and the tactile features in an aligned state corresponding to the 0 label.
[0030] According to the tactile feature set, a Mahalanobis distance between each offset state and the aligned state is determined.
[0031] According to each offset in the tactile feature set and the Mahalanobis distance, a functional relationship between the offset and the Mahalanobis distance is obtained.
[0032] According to the functional relationship between the offset and the Mahalanobis distance, a Mahalanobis distance characterization model is determined.
[0033] Optionally, predicting the male head offset of the male head of the flexible flat cable according to the tactile data acquired by the tactile sensor in the current contact state and based on the Mahalanobis distance characterization model specifically includes:
[0034] According to the tactile data acquired by the tactile sensor in the current contact state, the tactile features of the current contact state are determined based on the two-dimensional dimension reduction of the principal component analysis model.
[0035] According to the tactile features of the current contact state and the tactile features of the aligned state corresponding to the 0 label, the Mahalanobis distance of the current contact state is solved based on the covariance matrix.
[0036] The Mahalanobis distance of the current contact state is input into the Mahalanobis distance characterization model to predict the male connector offset of the flexible flat cable male connector.
[0037] Optionally, based on the male head offset, controlling the actuator to complete the autonomous buckling of the male head of the flexible flat cable with the female head of the flexible flat cable specifically includes:
[0038] The predicted male connector offset is compared with the snap-fit tolerance; the snap-fit tolerance is the maximum offset that the male connector of the flexible flat cable can be directly pressed down to snap-fit with the female connector of the flexible flat cable.
[0039] If the male connector offset is less than or equal to the buckling tolerance, the actuator is controlled to complete the autonomous buckling of the flexible flat cable male connector and the flexible flat cable female connector.
[0040] If the male head offset is greater than the buckling tolerance, the actuator is controlled to use the male head offset as a movement amount to drive the flexible flat cable male head to move toward an aligned state, thereby obtaining a contact state after the movement.
[0041] Based on the contact state after the movement, the male head offset of the flexible flat cable male head is updated, and the step of comparing the predicted male head offset with the buckling tolerance is performed until the autonomous buckling of the flexible flat cable male head and the flexible flat cable female head is completed.
[0042] In a second aspect, the present application provides an autonomous buckling device for male and female connectors of a flexible flat cable, the autonomous buckling device comprising:
[0043] The acquisition module is used to acquire the contact surface of the male connector of the flexible flat cable and the tactile data set of the contact state of the male and female connectors of the flexible flat cable.
[0044] The contact surface leveling initialization module is used to initialize and level the contact surface of the flexible flat cable male connector and the tactile sensor based on the consistency criterion of the tactile array information.
[0045] The first contact state perception module is used to establish a Mahalanobis distance characterization model based on the tactile data set of the contact state of the male and female heads of the flexible flat cable; the Mahalanobis distance characterization model is used to predict the offset of the male head of the flexible flat cable.
[0046] The second contact state perception module is used to predict the male head offset of the flexible flat cable male head based on the Mahalanobis distance characterization model according to the tactile data obtained by the tactile sensor in the current contact state.
[0047] The flexible flat cable autonomous buckling module is used to control the actuator to complete the autonomous buckling of the flexible flat cable male connector and the flexible flat cable female connector based on the male connector offset.
[0048] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any one of the above-described methods for autonomously snapping together male and female heads of a flexible flat cable.
[0049] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned methods for autonomously snapping together male and female connectors of a flexible flat cable.
[0050] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for autonomously snapping together male and female connectors of a flexible flat cable.
[0051] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0052] The present application provides a method, device, equipment, medium and product for autonomous fastening of male and female heads of a flexible flat cable. Specifically, the method first obtains a tactile data set of the contact surface of the male head of the flexible flat cable and the contact state of the male and female heads of the flexible flat cable. Subsequently, the contact surface of the male head of the flexible flat cable and the tactile sensor are initialized and leveled according to the consistency criterion of the tactile array information. Furthermore, a Mahalanobis distance characterization model is constructed based on the collected tactile data set of the contact state of the male and female heads of the flexible flat cable, and the model is mainly used to predict the offset of the male head of the flexible flat cable. In practical applications, the offset of the male head of the flexible flat cable is accurately predicted by combining the tactile data obtained by the tactile sensor in the current contact state with the Mahalanobis distance characterization model. Finally, based on the predicted male head offset, the actuator is controlled to achieve accurate autonomous fastening of the male head of the flexible flat cable and the female head of the flexible flat cable. The present application not only realizes the accurate perception of the contact state of the male and female heads of the flexible flat cable, but also significantly improves the fastening efficiency of the flexible flat cable. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 This is a diagram of the application environment of a method for autonomously fastening male and female connectors of a flexible flat cable in one embodiment of the present application.
[0055] Figure 2 A flow chart of a method for autonomously fastening male and female connectors of a flexible flat cable provided in an embodiment of the present application.
[0056] Figure 3 A schematic diagram of consistency criteria provided in one embodiment of the present application.
[0057] Figure 4 A contact surface leveling initialization flow chart provided in an embodiment of the present application.
[0058] Figure 5 A flow chart of constructing a tactile data set for the contact status of male and female connectors of a flexible flat cable according to an embodiment of the present application.
[0059] Figure 6 A schematic diagram of a Mahalanobis distance representation model for establishing tactile data provided by an embodiment of the present application.
[0060] Figure 7 A flowchart for accurately predicting the offset of a male head provided in an embodiment of the present application.
[0061] Figure 8 A flowchart of the autonomous snap-fitting operation of the male and female connectors of a flexible flat cable provided in one embodiment of the present application.
[0062] Fig. 9 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0064] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0065] The autonomous buckling method of the male and female connectors of the flexible flat cable provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store data that the server 104 needs to process. The data storage system can be set up separately, or it can be integrated on the server 104, or it can be placed on the cloud or other servers. The terminal 102 can send the tactile data set of the contact surface of the male head of the soft flat cable to be processed and the contact state of the male and female heads of the soft flat cable to the server 104. After the server 104 receives the tactile data set of the contact surface of the male head of the soft flat cable to be processed and the contact state of the male and female heads of the soft flat cable, for the tactile data set of the contact surface of the male head of the soft flat cable to be processed and the contact state of the male and female heads of the soft flat cable, the server 104 obtains the tactile data set of the contact surface of the male head of the soft flat cable and the contact state of the male and female heads of the soft flat cable; consistency criterion judgment based on tactile array information , initialize and level the contact surface of the male head of the flexible flat cable with the tactile sensor; establish a Mahalanobis distance characterization model based on the tactile data set of the contact state of the male and female heads of the flexible flat cable; the Mahalanobis distance characterization model is used to predict the offset of the male head of the flexible flat cable; predict the male head offset of the male head of the flexible flat cable based on the Mahalanobis distance characterization model according to the tactile data obtained by the tactile sensor in the current contact state; and control the actuator to complete the autonomous buckling of the male head of the flexible flat cable with the female head of the flexible flat cable based on the male head offset. The server 104 can feed back the obtained male head offset to the terminal 102. In addition, in some embodiments, the autonomous snap-fitting method of the male and female heads of the soft flat cable can also be implemented independently by the server 104 or the terminal 102. For example, the terminal 102 can directly perform data processing on the contact surface of the male head of the soft flat cable to be processed and the tactile data set of the contact status of the male and female heads of the soft flat cable, or the server 104 can obtain the tactile data set of the contact surface of the male head of the soft flat cable to be processed and the contact status of the male and female heads of the soft flat cable from the data storage system, and perform data processing on the tactile data set of the contact surface of the male head of the soft flat cable to be processed and the contact status of the male and female heads of the soft flat cable.
[0066] The terminal 102 may be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers, or may be a cloud server.
[0067] In an exemplary embodiment, Figure 2 As shown, a method for autonomously fastening male and female connectors of a flexible flat cable is provided. The method is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or can be executed by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 Taking the server 104 in the example as an example, the following steps are included:
[0068] Step 101: Acquire a tactile data set of a contact surface of a male connector of a flexible flat cable and a contact state of male and female connectors of the flexible flat cable.
[0069] Step 102: Based on the consistency criterion of the tactile array information, the contact surface of the male connector of the flexible flat cable and the tactile sensor are initialized and leveled.
[0070] Step 103: establishing a Mahalanobis distance characterization model according to the tactile data set of the contact state of the male and female connectors of the flexible flat cable; the Mahalanobis distance characterization model is used to predict the offset of the male connector of the flexible flat cable.
[0071] Step 104: predicting the male connector offset of the flexible flat cable male connector based on the Mahalanobis distance characterization model according to the tactile data acquired by the tactile sensor in the current contact state.
[0072] Step 105: Based on the male connector offset, control the actuator to complete the autonomous buckling of the flexible flat cable male connector and the flexible flat cable female connector.
[0073] Before executing step 101, the method further includes constructing a tactile data set of the contact status of the male and female connectors of the flexible flat cable, which may be specifically as follows:
[0074] The offset range of the long side direction of the male connector of the flexible flat cable relative to the female connector is (-p, p) mm, where the contact state in the negative offset range is characterized as a left offset state, and the contact state in the positive offset range is characterized as a right offset state. An offset of 0 indicates that the male and female connectors are aligned.
[0075] The offset interval is divided into fixed intervals q, and the 2p / q values after the division are used as offset labels.
[0076] Press the tactile sensor down under each offset label to make full contact between the male and female connectors of the flexible flat cable.
[0077] Given a pre-pressure of the tactile sensor, record the m-frame array data stably output by the tactile sensor under each offset label.
[0078] Each frame of array data in the m frames of array data and the corresponding offset label are included in a data set as a tactile sample to obtain m frames of tactile samples.
[0079] The pressing is performed repeatedly w times with the given pre-pressure under each offset label, and a total of 2pmw / q tactile samples are integrated to obtain a tactile data set of the contact state of the male and female heads.
[0080] Specifically, Figure 5As shown, the flowchart of constructing the tactile data set of the contact status of the male and female heads of the soft flat cable provided in this embodiment, firstly, the offset range of (-1,1) mm is divided at intervals of 0.1 mm to obtain 21 offset labels, and the tactile sensor under each offset label presses the male head and the female head into contact with each other with a fixed pre-pressure, and records 50 frames of array data stably output under each offset label of the sensor, each frame of array data and the corresponding offset label is a tactile sample to obtain 1050 tactile samples, and the above operation is repeated ten times to obtain 10500 tactile samples to complete the collection of the tactile data set.
[0081] When executing step 102, the determination process of the consistency criterion of the tactile array information may be specifically as follows:
[0082] Step 201: Acquire tactile array information of the male connector of the flexible flat cable; the tactile array information is information acquired by applying pressure to the surface of the male connector of the flexible flat cable through a tactile sensor when the male and female connectors of the flexible flat cable are in a buckled state.
[0083] Step 202: Process the tactile array information and fit the array data to obtain a normal plane of the contact surface of the male connector of the flexible flat cable.
[0084] Step 203: Process the normal plane of the contact surface to determine the normal vector of the normal plane.
[0085] Step 204: Compare the normal vector of the normal plane with the normal vector of the parallel contact state to determine the conversion angle.
[0086] Step 205: after performing posture conversion on the tactile sensor according to the conversion angle, the tactile array information of the male connector of the flexible flat cable is obtained again.
[0087] Step 206: Process the reacquired tactile array information to determine the maximum value of the difference between the normal force value of each array data and the mean value of all array data.
[0088] Step 207: Execute steps 201 to 206 repeatedly for a set number of times to obtain a maximum value set; the maximum value set includes the maximum value of the difference between the normal force value of each array data and the mean value of all array data obtained at each number of cycles.
[0089] Step 208: Determine a leveling threshold based on the minimum value in the maximum value set.
[0090] Step 209: Determine the consistency criteria of the tactile array information according to the leveling threshold. If the difference between the normal force value of each array data acquired by the tactile sensor and the mean value of all array data is less than or equal to the leveling threshold, it is determined that each array meets the consistency; otherwise, it is determined that each array does not meet the consistency.
[0091] Specifically, Figure 3 As shown, the schematic diagram of the consistency criterion provided in this embodiment is that the tactile sensor first presses down the male head to contact the female head, obtains the 2×6 tactile array information in the offset state, fits the normal force of the array to obtain the normal plane of the contact surface, and then determines the normal vector of the normal plane to be (x1, y1, z1), assuming that the normal vector of the aligned state is (x2, y2, z2). Through the following transformation:
[0092] 1) Rotate around Y so that the vector is on the YZ plane. The angle of rotation should be the angle α of the vector on the YZ plane, that is,
[0093] 2) Rotate around the X axis so that the vector is on the negative half axis of the Z axis. The angle of this rotation should be the angle between the projection of the vector rotation on the XZ plane and the negative half axis of the Z axis, that is
[0094] Determine the conversion angles α and β, and transmit the conversion angles to the actuator to drive the tactile sensor to complete the posture conversion on the contact surface. Then the sensor obtains the tactile array information again, and solves the maximum value ε of the difference between each array and the mean of each array max Repeat the above process ten times to obtain the maximum value set {ε max Then determine the leveling threshold ε=min{ε max Therefore, the consistency criterion of the tactile array information is determined as follows: first, the tactile array information is obtained, and the set of mean differences between each array and each array is obtained by solving {ε′}, and the size of max{ε′} and ε are compared. If max{ε′}≤ε, the array information satisfies the consistency, otherwise the array information does not meet the consistency.
[0095] The step of initializing and leveling the contact surface of the male connector of the flexible flat cable and the tactile sensor based on the consistency criterion of the tactile array information specifically includes:
[0096] Acquire the tactile array information of the male connector of the flexible flat cable.
[0097] The acquired tactile array information is processed to determine the difference between the normal force value of each array data and the mean value of all array data.
[0098] The difference is judged based on the consistency criterion of the tactile array information.
[0099] If the differences are all less than or equal to the leveling threshold, it is determined that each array meets the consistency criterion and the initialization leveling is completed.
[0100] If the differences are all greater than the leveling threshold, the conversion angle is solved, and the tactile sensor is transformed in position according to the conversion angle and the steps are executed again; the tactile array information of the male connector of the flexible flat cable is obtained until each array meets the consistency criterion.
[0101] Specifically, Figure 4 As shown, the contact surface leveling initialization flow chart provided in this embodiment, firstly, the tactile sensor is pressed down to the male head of the soft flat cable to obtain the tactile array information, and the set of mean difference values of each array and each array is obtained by solving {ε′}, and the size of max{ε′} and ε are compared by using the consistency criterion of the tactile array information. If max{ε′}≤ε, the array information meets the consistency, and it is considered that the leveling initialization is completed; otherwise, the array information does not meet the consistency, and the size of the sensor adjustment times n is judged. If n≥5, the leveling initialization is not completed, and it is necessary to exit the execution to analyze the reasons and try again; otherwise, the tactile array information is fitted to obtain the contact surface normal plane, and then the normal vector of the normal plane is determined to determine the conversion angles α and β, and the conversion angles are transmitted to the actuator to drive the tactile sensor to complete the posture conversion on the contact surface, and then the sensor obtains the tactile array information again for cyclic judgment.
[0102] When executing step 103, the specific steps may be as follows:
[0103] According to the tactile data set of the contact state of the male and female heads of the flexible flat cable, a Mahalanobis distance representation model is established, which specifically includes:
[0104] The principal component analysis is performed on the tactile data set to reduce the dimensionality in two dimensions, and a principal component analysis model and a tactile feature set are obtained.
[0105] A covariance matrix is solved for the tactile feature set.
[0106] The tactile features under each offset label, the tactile features of the aligned state corresponding to the 0 label and the covariance matrix are substituted into the Mahalanobis distance formula to obtain the Mahalanobis distance between each offset state and the aligned state.
[0107] The difference term in the Mahalanobis distance formula is plotted in a scatter plot, and the second term of the difference is used as a criterion for the offset direction of the male head relative to the female head. If the difference is positive, it indicates a right offset state, and if the difference is negative, it indicates a left offset state.
[0108] Each offset in the tactile data set and the corresponding Mahalanobis distance are plotted in a scatter plot.
[0109] The scatter plot is fitted using piecewise linear, piecewise quadratic parabola and fully connected network in the positive and negative offset intervals to obtain a functional relationship between the offset and the Mahalanobis distance.
[0110] The functional relationship between the offset direction criterion, the offset amount and the Mahalanobis distance is used as a Mahalanobis distance characterization model.
[0111] Specifically, Figure 6 As shown in FIG. 1 , the Mahalanobis distance representation model of the tactile data provided in this embodiment first divides the tactile data set into array data X and label data O. T , perform principal component analysis on the array data to reduce the dimensionality in two dimensions and obtain the tactile feature set X′=PCA(X), solve the covariance matrix of the tactile feature set to obtain S=Cov(X′), and compare the alignment feature t0′ with an offset of 0 mm in the tactile feature set with the offset label O t The corresponding offset feature t′ is used to solve the Mahalanobis distance Due to the two-dimensional dimensionality reduction, the (t′-t0′) term contains two dimensions. Assume that the first two dimensions are Δx and Δy respectively. The Δy term is used as the basis for judging the offset direction. If Δy ≥ 0, it is considered that the male connector of the cable is biased to the left relative to the female connector. Otherwise, it is considered that the male connector of the cable is biased to the right relative to the female connector. t With O t Draw a scatter plot, using linear regression y = a·x+b, quadratic polynomial regression y = a·x 2 +b·x+c is fitted with a fully connected network, which uses the offset feature t′ and the Mahalanobis distance M t As network input, the offset O t As the network output, four fully connected layers are used to fit the relationship between tactile features and Mahalanobis distance and offset. The ratio of training set to validation set is 8:2. The model uses mean square error as the loss function and uses Adam optimizer to optimize parameters. The functional relationship between offset and Mahalanobis distance is estimated as follows: Linear regression: Quadratic Polynomial Regression: Fully connected network regression: M t =f(O t ); the above functional relationship is used as the Mahalanobis distance representation model.
[0112] When executing step 104, the specific steps may be as follows:
[0113] The tactile data acquired by the tactile sensor in the contact state is reduced into two dimensions using the principal component analysis model to determine the tactile features of the current contact state.
[0114] The Mahalanobis distance of the current contact state is solved by using the covariance matrix between the tactile feature of the current contact state and the tactile feature of the aligned state corresponding to the 0 label.
[0115] The difference term in the Mahalanobis distance formula is solved by using the tactile feature of the current contact state and the tactile feature of the aligned state corresponding to the 0 label.
[0116] The difference term and the Mahalanobis distance of the current contact state are input into the Mahalanobis distance characterization model, the offset direction is determined according to the offset direction criterion in the model, and then the selection of the piecewise function is determined according to the offset direction, and the offset obtained by the Mahalanobis distance under the selected piecewise function is used as the male head offset predicted by the contact state.
[0117] Specifically, Figure 7 As shown in the flowchart of the accurate prediction of the male head offset provided by this embodiment, first, the tactile sensor is pressed down to the male head of the soft flat cable to obtain the tactile array information t, and the principal component analysis is performed to reduce the dimensionality by two dimensions to obtain the tactile feature t′=PCA(t) in the current contact state, and the Mahalanobis distance is solved with the tactile feature t0′ of the aforementioned alignment state and the covariance matrix S The result is input into the Mahalanobis distance characterization model and the inverse solution is obtained to obtain the offset of the predicted male head O t .
[0118] When executing step 105, the specific steps may be as follows:
[0119] The predicted male connector offset is compared with the snap-fit tolerance; the snap-fit tolerance is the maximum offset that the male connector of the flexible flat cable can be directly pressed down to snap-fit with the female connector of the flexible flat cable.
[0120] If the male connector offset is less than or equal to the buckling tolerance, the actuator is controlled to complete the autonomous buckling of the flexible flat cable male connector and the flexible flat cable female connector.
[0121] If the male head offset is greater than the buckling tolerance, the actuator is controlled to use the male head offset as a movement amount to drive the flexible flat cable male head to move toward an aligned state, thereby obtaining a contact state after the movement.
[0122] Based on the contact state after the movement, the male head offset of the male head of the flexible flat cable is updated, and the steps are performed: the predicted male head offset is compared with the buckling tolerance until the autonomous buckling of the male head of the flexible flat cable and the female head of the flexible flat cable is completed. Specifically, the tactile sensor senses the contact state after the movement, and then accurately predicts the male head offset, and then compares the offset with the buckling tolerance to move, and if the cumulative number of movements is less than or equal to the movement number threshold, the autonomous buckling can be completed, otherwise the autonomous buckling cannot be completed and needs to be exited and retried.
[0123] Specifically, Figure 8 As shown in the flowchart of the autonomous buckling operation of the male and female connectors of the flexible flat cable provided in this embodiment, the accurate prediction of the male connector offset is outputted as t The absolute value of is compared with the snap-fit tolerance δ = 0.4. If |O t|≤δ, it is considered to be in a state where it can be directly pressed down and fastened. At this time, the actuator presses down the male connector of the cable until the sum of the sensor output forces F>F t =5N, the fastening is considered complete; if it does not meet |O t |≤δ, the adjustment times n is compared with the adjustment times threshold N=5. When n≤N, the actuator drives the male head of the flexible flat cable to move O t , the adjustment times are increased by one, and then the tactile sensor senses the contact state again to perform an accurate prediction cycle of the male head offset.
[0124] In an exemplary embodiment, an autonomous buckling device for male and female connectors of a flexible flat cable is provided, the autonomous buckling device comprising:
[0125] The acquisition module is used to acquire the contact surface of the male connector of the flexible flat cable and the tactile data set of the contact state of the male and female connectors of the flexible flat cable.
[0126] The contact surface leveling initialization module is used to initialize and level the contact surface of the flexible flat cable male connector and the tactile sensor based on the consistency criterion of the tactile array information.
[0127] The first contact state perception module is used to establish a Mahalanobis distance characterization model based on the tactile data set of the contact state of the male and female heads of the flexible flat cable; the Mahalanobis distance characterization model is used to predict the offset of the male head of the flexible flat cable.
[0128] The second contact state perception module is used to predict the male head offset of the flexible flat cable male head based on the Mahalanobis distance characterization model according to the tactile data obtained by the tactile sensor in the current contact state.
[0129] The flexible flat cable autonomous buckling module is used to control the actuator to complete the autonomous buckling of the flexible flat cable male connector and the flexible flat cable female connector based on the male connector offset.
[0130] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store predicted male head offsets. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for autonomously fastening male and female heads of a flexible flat cable is implemented.
[0131] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0132] In an exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the above methods are implemented when the processor executes the computer program.
[0133] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and the computer program implements the above methods when executed by a processor.
[0134] In an exemplary embodiment, a computer program product is provided, including a computer program, and the computer program implements the above methods when executed by a processor.
[0135] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0136] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0137] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0138] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0139] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A method for autonomously fastening male and female connectors of a flexible flat cable, characterized in that: The autonomous fastening method comprises: Acquire a tactile data set of the contact surface of the male connector of the flexible flat cable and the contact state of the male and female connectors of the flexible flat cable; Based on the consistency criterion of the tactile array information, the contact surface of the male connector of the flexible flat cable and the tactile sensor are initialized and leveled; A Mahalanobis distance characterization model is established based on a tactile data set of the contact state of the male and female connectors of the flexible flat cable; the Mahalanobis distance characterization model is used to predict the offset of the male connector of the flexible flat cable; According to the tactile data acquired by the tactile sensor in the current contact state, based on the Mahalanobis distance characterization model, predicting the male head offset of the male head of the flexible flat cable; Based on the male head offset, the actuator is controlled to complete the autonomous buckling of the flexible flat cable male head and the flexible flat cable female head.
2. The method for autonomously fastening male and female connectors of a flexible flat cable according to claim 1, characterized in that: The process of determining the consistency criterion of the tactile array information specifically includes: Step 201: Acquire tactile array information of the male connector of the flexible flat cable; the tactile array information is information acquired by applying pressure to the surface of the male connector of the flexible flat cable through a tactile sensor when the male and female connectors of the flexible flat cable are in a buckled state; Step 202: Processing the tactile array information, fitting the array data to obtain a normal plane of the contact surface of the male connector of the flexible flat cable; Step 203: performing data processing on the normal plane of the contact surface to determine a normal vector of the normal plane; Step 204: Compare the normal vector of the normal plane with the normal vector of the parallel contact state to determine the conversion angle; Step 205: after performing posture conversion on the tactile sensor according to the conversion angle, tactile array information of the male connector of the flexible flat cable is obtained again; Step 206: Processing the tactile array information acquired again to determine the maximum value of the difference between the normal force value of each array data and the mean value of all array data; Step 207: cyclically executing steps 201 to 206 for a set number of times to obtain a maximum value set; the maximum value set includes the maximum value of the difference between the normal force value of each array data and the mean value of all array data obtained at each number of cycles; Step 208: Determine a leveling threshold based on the minimum value in the maximum value set; Step 209: Determine the consistency criterion of the tactile array information according to the leveling threshold.
3. The method for autonomously fastening male and female connectors of a flexible flat cable according to claim 2, characterized in that: Based on the consistency criterion of the tactile array information, the contact surface of the male connector of the flexible flat cable and the tactile sensor are initialized and leveled, specifically including: Acquiring tactile array information of the male connector of the flexible flat cable; Processing the acquired tactile array information to determine the difference between the normal force value of each array data and the mean value of all array data; Judging the difference based on the consistency criterion of the tactile array information; If the differences are all less than or equal to the leveling threshold, it is determined that each array meets the consistency criterion and the initialization leveling is completed; If the differences are all greater than the leveling threshold, the conversion angle is solved, and the tactile sensor is transformed in position according to the conversion angle and the step is re-executed; the tactile array information of the male connector of the flexible flat cable is obtained until each array meets the consistency criterion.
4. The method for autonomously fastening male and female connectors of a flexible flat cable according to claim 3, characterized in that: According to the tactile data set of the contact state of the male and female heads of the flexible flat cable, a Mahalanobis distance representation model is established, which specifically includes: The tactile data set is subjected to principal component analysis and two-dimensional dimension reduction to obtain a principal component analysis model and a tactile feature set; the tactile data set is a data set containing a plurality of tactile samples; the tactile sample is composed of an array data and an offset label corresponding to the array data; the array data is stable output data corresponding to each offset label under a set downward pre-pressure condition; the tactile feature set includes tactile features under each offset label and tactile features in an aligned state corresponding to a 0 label; Determining the Mahalanobis distance between each offset state and the alignment state according to the tactile feature set; According to each offset in the tactile feature set and the Mahalanobis distance, a functional relationship between the offset and the Mahalanobis distance is obtained; According to the functional relationship between the offset and the Mahalanobis distance, a Mahalanobis distance characterization model is determined.
5. The method for autonomously fastening male and female connectors of a flexible flat cable according to claim 4, characterized in that: According to the tactile data acquired by the tactile sensor in the current contact state, based on the Mahalanobis distance characterization model, predicting the male head offset of the flexible flat cable male head specifically includes: According to the tactile data acquired by the tactile sensor in the current contact state, based on the two-dimensional dimension reduction of the principal component analysis model, the tactile characteristics of the current contact state are determined; According to the tactile features of the current contact state and the tactile features of the aligned state corresponding to the 0 label, solving the Mahalanobis distance of the current contact state based on the covariance matrix; The Mahalanobis distance of the current contact state is input into the Mahalanobis distance characterization model to predict the male connector offset of the flexible flat cable male connector.
6. The method for autonomously fastening male and female connectors of a flexible flat cable according to claim 1, characterized in that: Based on the male head offset, controlling the actuator to complete the autonomous buckling of the male head of the flexible flat cable with the female head of the flexible flat cable specifically includes: Compare the predicted male connector offset with the buckle tolerance; the buckle tolerance is the maximum offset that the male connector of the flexible flat cable can be directly pressed down to buckle with the female connector of the flexible flat cable; If the male head offset is less than or equal to the buckling tolerance, controlling the actuator to complete the autonomous buckling of the flexible flat cable male head and the flexible flat cable female head; If the male head offset is greater than the buckling tolerance, the actuator is controlled to use the male head offset as a moving amount to drive the male head of the flexible flat cable to move toward an aligned state, so as to obtain a contact state after the movement; Based on the contact state after the movement, the male head offset of the flexible flat cable male head is updated, and the step of comparing the predicted male head offset with the buckling tolerance is performed until the autonomous buckling of the flexible flat cable male head and the flexible flat cable female head is completed.
7. An autonomous buckling device for male and female connectors of a flexible flat cable, characterized in that: The autonomous fastening device comprises: An acquisition module, used to acquire a tactile data set of a contact surface of a male connector of a flexible flat cable and a contact state of a male connector and a female connector of the flexible flat cable; A contact surface leveling initialization module, used for initializing and leveling the contact surface of the male connector of the flexible flat cable and the tactile sensor based on a consistency criterion of the tactile array information; A first contact state perception module, used to establish a Mahalanobis distance characterization model according to a tactile data set of the contact state of the male and female heads of the flexible flat cable; the Mahalanobis distance characterization model is used to predict the offset of the male head of the flexible flat cable; A second contact state perception module, configured to predict the male head offset of the male head of the flexible flat cable according to the tactile data acquired by the tactile sensor in the current contact state and based on the Mahalanobis distance characterization model; The flexible flat cable autonomous buckling module is used to control the actuator to complete the autonomous buckling of the flexible flat cable male connector and the flexible flat cable female connector based on the male connector offset.
8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a method for autonomously snapping together male and female connectors of a flexible flat cable as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a method for autonomously fastening male and female connectors of a flexible flat cable according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, a method for autonomously fastening male and female connectors of a flexible flat cable according to any one of claims 1 to 6 is implemented.
