Disclosure of Invention
The invention aims to provide an object touch classification method and system considering friction coefficient abnormal value rejection in order to overcome the defects that the prior art does not consider the surface material of an object or the error of measuring equipment and cannot ensure the accuracy of a classification result.
The purpose of the invention can be realized by the following technical scheme:
an object touch classification method considering friction coefficient abnormal value elimination comprises the following steps:
an object friction coefficient obtaining step: driving a touch sensor to move on the surface of a measured object, and acquiring touch information through the touch sensor, wherein the touch information comprises a normal force and a tangential force, and the ratio of the normal force to the tangential force is taken as the friction coefficient of the object;
clustering sample data: obtaining a plurality of known samples, obtaining the object friction coefficient of each known sample by respectively adopting the object friction coefficient obtaining step, and constructing an object friction coefficient data set; clustering the object friction coefficient data set, acquiring standard value deviation of each clustering group, removing abnormal values, and establishing a contact database of object types and object friction coefficients;
a touch classification step: obtaining an object to be classified, obtaining a plurality of object friction coefficient data of the object to be classified by adopting the object friction coefficient obtaining step, obtaining standard value deviations of the plurality of object friction coefficient data, removing abnormal values, comparing the rest of object friction coefficient data with the contact database respectively, obtaining an object type corresponding to the object to be classified, and realizing object classification.
Further, the normal force FnThe calculation expression of (a) is:
in the formula, q is the moment of a contact point measured by the touch sensor, and n is the normal vector of the contact surface of the touch sensor;
the tangential force FtThe calculation expression of (a) is:
Ft=p-Fn
wherein p is the three-dimensional force measured by the tactile sensor.
Further, the normal force and the tangential force are solved by adopting a nonlinear least square method.
Further, the tactile sensor is a six-axis force-torque sensor.
Further, the SPSS system is used for calculating the standard value deviation of the data, so that the abnormal value elimination is carried out.
The invention also provides an object touch classification system considering friction coefficient abnormal value rejection, which comprises a touch sensor, a mechanical arm and a controller, wherein the touch sensor and the mechanical arm are both connected with the controller, the mechanical arm is connected with the touch sensor, and the data processing process of the controller comprises the following steps:
an object friction coefficient obtaining step: driving a touch sensor to move on the surface of a measured object, and acquiring touch information through the touch sensor, wherein the touch information comprises a normal force and a tangential force, and the ratio of the normal force to the tangential force is taken as the friction coefficient of the object;
clustering sample data: obtaining a plurality of known samples, obtaining the object friction coefficient of each known sample by respectively adopting the object friction coefficient obtaining step, and constructing an object friction coefficient data set; clustering the object friction coefficient data set, acquiring standard value deviation of each clustering group, removing abnormal values, and establishing a contact database of object types and object friction coefficients;
a touch classification step: obtaining an object to be classified, obtaining a plurality of object friction coefficient data of the object to be classified by adopting the object friction coefficient obtaining step, obtaining standard value deviations of the plurality of object friction coefficient data, removing abnormal values, comparing the rest of object friction coefficient data with the contact database respectively, obtaining an object type corresponding to the object to be classified, and realizing object classification.
Further, the tactile sensor includes a hemispherical sensor housing and a six-axis force-torque sensor coupled to each other, the six-axis force-torque sensor measuring force-torque measurements generated by the hemispherical sensor housing, the controller calculating coordinates, normal force, and tangential force of a contact point on the hemispherical sensor housing based on the force-torque measurements.
Further, the normal force FnThe calculation expression of (a) is:
in the formula, q is the moment of a contact point measured by the touch sensor, and n is the normal vector of the contact surface of the touch sensor;
the tangential force FtThe calculation expression of (a) is:
Ft=p-Fn
wherein p is the three-dimensional force measured by the tactile sensor.
Further, the normal force and the tangential force are solved by adopting a nonlinear least square method.
Further, the SPSS system is used for calculating the standard value deviation of the data, so that the abnormal value elimination is carried out.
Compared with the prior art, the invention has the following advantages:
(1) the method and the device have the advantages that the tactile sensor is driven to move on the surface of the object to be tested, the tactile information comprising the normal force and the tangential force is obtained, so that the friction coefficient of the object is obtained, the object classification is realized through cluster analysis according to the characteristics of different object friction coefficients of objects made of different materials, the scheme is convenient and reliable, and the efficiency is high; and (3) as for sample data of the friction coefficient of the object, eliminating abnormal values by calculating the standard value deviation of the clustering group, eliminating the influence of the surface material of the object or the error of measuring equipment, and improving the accuracy of the object classification result.
(2) An anthropomorphic touch method and a touch sensing part are designed, and the touch sensor is used for anthropomorphic touch to acquire a large amount of data such as contact normal force, tangential force and the like suitable for analysis, so that the method is used for object classification, and is simple and convenient in operation process and strong in stability.
(3) The SPSS system is used for clustering the standard value deviation of the group to mark and remove abnormal values, so that the deviation of measured data and friction coefficient calculation results caused by mechanical and object surface reasons can be reduced.
(4) Analyzing contact surfaces of different materials by using an SPSS system clustering algorithm, and establishing a relation between the different materials and corresponding friction coefficients; the object to be detected is identified through cluster analysis of the touch information, and the meaning of touch detection is further developed by identifying the function of the material of the current contact surface, namely the roughness of the contact surface can be sensed through touch, so that the scheme is convenient and reliable, and the efficiency is high.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and a specific operation process are given, but the scope of the present invention is not limited to the following embodiments.
Example 1
The embodiment provides an object touch classification method considering friction coefficient abnormal value elimination, which comprises the following steps:
an object friction coefficient obtaining step: the method comprises the steps that a touch sensor is driven to move on the surface of a measured object, touch information is obtained through the touch sensor, the touch information comprises a normal force and a tangential force, and the ratio of the normal force to the tangential force is used as the friction coefficient of the object;
clustering sample data: obtaining a plurality of known samples, obtaining the object friction coefficient of each known sample by adopting an object friction coefficient obtaining step respectively, and constructing an object friction coefficient data set; clustering the object friction coefficient data set, acquiring standard value deviation of each clustering group, removing abnormal values, and establishing a contact database of object types and object friction coefficients;
a touch classification step: the method comprises the steps of obtaining an object to be classified, obtaining a plurality of object friction coefficient data of the object to be classified by adopting an object friction coefficient obtaining step, obtaining standard value deviations of the plurality of object friction coefficient data, removing abnormal values, comparing the rest of object friction coefficient data with a contact database respectively, obtaining an object type corresponding to the object to be classified, and realizing object classification.
Normal force FnThe calculation expression of (a) is:
in the formula, q is the moment of a contact point measured by the touch sensor, and n is the normal vector of the contact surface of the touch sensor;
tangential force FtThe calculation expression of (a) is:
Ft=p-Fn
wherein p is the three-dimensional force measured by the tactile sensor.
As a preferred embodiment, a non-linear least squares solution is used for the normal and tangential forces.
In a preferred embodiment, the tactile sensor is a six-axis force-torque sensor.
As a preferred embodiment, the outlier rejection is performed by calculating standard value deviations of data using SPSS system (Statistical Product and Service Solutions software).
The embodiment also provides an object touch classification system considering friction coefficient abnormal value rejection, which comprises a touch sensor, a mechanical arm and a controller, wherein the touch sensor and the mechanical arm are both connected with the controller, the mechanical arm is connected with the touch sensor, and the data processing process of the controller comprises the following steps:
an object friction coefficient obtaining step: the method comprises the steps that a touch sensor is driven to move on the surface of a measured object, touch information is obtained through the touch sensor, the touch information comprises a normal force and a tangential force, and the ratio of the normal force to the tangential force is used as the friction coefficient of the object;
clustering sample data: obtaining a plurality of known samples, obtaining the object friction coefficient of each known sample by adopting an object friction coefficient obtaining step respectively, and constructing an object friction coefficient data set; clustering the object friction coefficient data set, acquiring standard value deviation of each clustering group, removing abnormal values, and establishing a contact database of object types and object friction coefficients;
a touch classification step: the method comprises the steps of obtaining an object to be classified, obtaining a plurality of object friction coefficient data of the object to be classified by adopting an object friction coefficient obtaining step, obtaining standard value deviations of the plurality of object friction coefficient data, removing abnormal values, comparing the rest of object friction coefficient data with a contact database respectively, obtaining an object type corresponding to the object to be classified, and realizing object classification.
As a preferred embodiment, the tactile sensor includes a hemispherical sensor housing and a six-axis force-moment sensor coupled to each other, the six-axis force-moment sensor for measuring a force-moment measurement generated by the hemispherical sensor housing, and the controller calculates coordinates of the contact point on the hemispherical sensor housing, a normal force, and a tangential force based on the force-moment measurement.
As a preferred embodiment, the normal force FnThe calculation expression of (a) is:
in the formula, q is the moment of a contact point measured by the touch sensor, and n is the normal vector of the contact surface of the touch sensor;
tangential force FtThe calculation expression of (a) is:
Ft=p-Fn
wherein p is the three-dimensional force measured by the tactile sensor.
As a preferred embodiment, a non-linear least squares solution is used for the normal and tangential forces.
As a preferred embodiment, the outlier rejection is performed by calculating a standard value deviation of the data using the SPSS system.
A combination of the above preferred embodiments can provide a preferred embodiment, which is described in detail below.
The embodiment provides an object touch classification method considering friction coefficient abnormal value rejection, which is used for realizing the classification of the material of a contact surface according to the friction coefficient through anthropomorphic touch, the abnormal value rejection of the roughness of the contact surface and the cluster analysis of data based on the contact surface characteristics of different materials.
Summary of the invention
The method designs an anthropomorphic touch flow through the touch sensor combined with the mechanical arm, tests different contact surface materials on the basis, and obtains data. By utilizing the characteristics that different contact surface materials are different and the relation between the normal direction and the tangential force of a touch device at a contact position during touch is different, the ratio of the normal direction measured value and the tangential force measured value acquired by touch is preprocessed by using SPSS (V21), abnormal values with overlarge data and overlarge data due to the surface reasons of the device and an object are eliminated, and then the abnormal values are evaluated and classified after system clustering analysis is carried out.
Second, detailed description
2.1, product side
The application mode of the product is as follows: the device combining the mechanical arm Dobot magic and the six-axis force-moment touch sensor ATI nano 17force/torque sensor is designed in the aspect of anthropomorphic touch data acquisition. The mechanical arm drives the sensor to contact with the surface to be detected, the touch information returned by the touch sensor is input into the upper computer, and the upper computer controls the mechanical arm to drive the sensor to move on the contact surface to acquire the touch information. And preprocessing abnormal values by using the ratio of the normal force measurement value to the tangential force measurement value acquired by touch through SPSS (V21), removing the abnormal values with overlarge and overlarge data caused by the surface reasons of equipment and objects, and then carrying out system clustering analysis and evaluation classification.
The data acquisition process by anthropomorphic touch comprises the following steps: when the sensing part contacts with the outside along with the motion of the mechanical arm, the six-axis force-torque sensor sends a force-torque measurement value to the upper computer, the upper computer calculates data through a calculation algorithm to obtain the coordinate of a contact point on the shell, and meanwhile, important information such as the normal force and the tangential force of the shell and an object on the contact position is obtained. The mechanical arm is based on the calculated haptic information, including the normal pressure and tangential force at the point of contact.
The overall structure of the tactile sensing section and the structure of the sensor section are shown in fig. 1 and 2. The integral structure of the touch sensing part comprises a touch sensor, a mechanical arm and a controller, wherein the touch sensor and the mechanical arm are both connected with the controller, and the mechanical arm is connected with the touch sensor.
The tactile sensor includes a hemispherical sensor housing and a six-axis force-torque sensor coupled to each other for measuring force-torque measurements produced by the hemispherical sensor housing, the controller calculating coordinates, normal force and tangential force of a contact point on the hemispherical sensor housing based on the force-torque measurements. Specifically, a six-axis force-torque sensor includes a sensor strain gage and a sensor mount interconnected.
2.2, technical side
In the method for classifying object touches in consideration of friction coefficient abnormal value rejection in the embodiment, the functions of each component include:
a sensor housing: the sensor can also sense the stress from the shell because the shell is fixed on the sensor by the screw;
six-axis force-torque sensor: when the shell generates micro deformation, the strain gauge on the sensor is pressed, and the stress is converted into a difference signal;
mechanical arm: and (3) solving data obtained by the six-axis force-moment sensor by using upper computer software and a nonlinear least square method to obtain information such as normal force, tangential force and the like on the contact position.
Under a static friction model, the following tactile information is deduced by utilizing the stress relation between the shell and the sensor to solve a nonlinear equation set, then a normal vector n is solved by a curved surface equation, and a normal force F is solved by the component of the acting force of the contact point in the normal direction and the relation solved by the component and the moment q of the contact pointn:
In the formula, q is the moment of a contact point measured by the touch sensor, and n is the normal vector of the contact surface of the touch sensor;
and subtracting the three-dimensional acting force p vector measured by the strain gauge to obtain a tangential force:
Ft=p-Fn
wherein p is the three-dimensional force measured by the tactile sensor.
Calculating and classifying friction factors of different contact surface materials:
when the sensing portion moves across the contact surface, return data for tangential and normal forces are obtained according to the anthropomorphic touch method. A large amount of data are obtained as samples on the basis of carrying out multiple times of anthropomorphic touch on contact surfaces made of different materials, the relation between data obtained by analyzing different contact surfaces by using SPSS (V21) to the ratio of tangential force to normal force in the data, namely the friction coefficient, is searched through the standard value deviation of a cluster group among the data, and the effect of eliminating abnormal numerical values is achieved. The process is designed to quickly detect abnormal cases for data auditing and prioritize any inferential data analysis in the exploratory data analysis step. This algorithm is designed as "anomaly detection"; i.e., the definition of an exception case is not specified as any particular application. And outputting an abnormal reason list which is used for displaying the individual case number, the reason variable, the variable influence value, the variable value and the standard value of the variable of each reason, and then rejecting the abnormal individual case. The data of the causes of abnormal cases in this embodiment are shown in table 1.
TABLE 1 abnormal case reason List
The reason is as follows: 1
And after the elimination, the SPSS (V21) is used for systematic clustering classification. This process can identify relatively uniform groups of cases based on selected characteristics using an algorithm that combines clusters starting with each case in a separate cluster until a class remains. The method of systematic clustering selects a systematic clustering analysis metric for distance data, the squared euclidean distance, i.e., the sum of squared differences between terms, and this measure of non-similarity can be used for distance data. A tree diagram is displayed, as shown in fig. 3, which can be used to evaluate the cohesion of the formed clusters and can provide information about the appropriate number of clusters to retain.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations could be devised by those skilled in the art in light of the present teachings without departing from the inventive concepts. Therefore, the technical solutions available to those skilled in the art through logic analysis, reasoning and limited experiments based on the prior art according to the concept of the present invention should be within the scope of protection defined by the claims.