CN114359275A - Hydraulic gear pump defect detection method and system based on artificial intelligence - Google Patents

Hydraulic gear pump defect detection method and system based on artificial intelligence Download PDF

Info

Publication number
CN114359275A
CN114359275A CN202210254838.8A CN202210254838A CN114359275A CN 114359275 A CN114359275 A CN 114359275A CN 202210254838 A CN202210254838 A CN 202210254838A CN 114359275 A CN114359275 A CN 114359275A
Authority
CN
China
Prior art keywords
target area
difference
acquiring
sub
index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210254838.8A
Other languages
Chinese (zh)
Other versions
CN114359275B (en
Inventor
王华程
郝美香
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nantong Junlang Intelligent Technology Co ltd
Original Assignee
Nantong Junlang Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nantong Junlang Intelligent Technology Co ltd filed Critical Nantong Junlang Intelligent Technology Co ltd
Priority to CN202210254838.8A priority Critical patent/CN114359275B/en
Publication of CN114359275A publication Critical patent/CN114359275A/en
Application granted granted Critical
Publication of CN114359275B publication Critical patent/CN114359275B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P80/00Climate change mitigation technologies for sector-wide applications
    • Y02P80/10Efficient use of energy, e.g. using compressed air or pressurized fluid as energy carrier

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to the technical field of hydraulic system part defect detection, in particular to a hydraulic gear pump defect detection method and system based on artificial intelligence. The method comprises the following steps: acquiring a tooth surface target area of a gear pump image; acquiring the complexity of a target area; acquiring the entropy of a target area under each color channel, acquiring a spatial distribution vector according to the entropy of the target area, and acquiring an abnormal index according to the difference between the spatial distribution vector and the spatial distribution vector of a normal tooth surface; acquiring the difference between any two pixel points in the target area, and acquiring the difference index of the target area according to the difference between the difference and the difference of the normal tooth surface; and acquiring a defect confidence coefficient according to the complexity, the abnormal index and the difference index, wherein when the defect confidence coefficient is greater than a preset threshold value, the gear pump has defects. The target area is comprehensively considered from multiple aspects, different characteristic parameters are obtained, and the accuracy of detecting the tooth surface defects is improved.

Description

Hydraulic gear pump defect detection method and system based on artificial intelligence
Technical Field
The invention relates to the technical field of hydraulic system part defect detection, in particular to a hydraulic gear pump defect detection method and system based on artificial intelligence.
Background
With the automation development of modern industrial enterprises, hydraulic equipment in each industrial enterprise is rising, and in order to ensure normal and efficient operation of the hydraulic equipment, detection, maintenance and maintenance of components, parts and the like of the hydraulic equipment are generally required in the actual application process. The gear pump is a power element of a hydraulic system, the gear is an important transmission part commonly used in hydraulic equipment, and the quality and the precision of the tooth surface of the gear pump have important influence on the comprehensive performance and the service life of the whole hydraulic equipment.
Most of the existing fault detection on the gear pump of the hydraulic equipment is carried out by workers with abundant experience, but the detection on the gear pump by the workers is usually carried out according to a complicated detection flow, so that the workload is large and the detection efficiency is not high; and the manual detection capability is limited, the comprehensiveness of the gear detection cannot be ensured, and the false detection rate is high.
Disclosure of Invention
In order to solve the technical problems, the invention aims to provide a hydraulic gear pump defect detection method and system based on artificial intelligence, and the adopted technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a hydraulic gear pump defect detection method based on artificial intelligence, including the following steps:
acquiring a target area of a gear pump image of a hydraulic system, wherein the target area comprises a tooth surface area of the gear pump; acquiring the complexity of the target area;
dividing the target area into a plurality of sub-blocks parallel to the gear pump tooth crest, wherein the sub-block close to the gear pump tooth crest is a first sub-block; acquiring the entropies of all the sub-blocks under each color channel, and performing weighted summation on the entropies of all the sub-blocks by taking the distance between each sub-block and the first sub-block as a weight to obtain the entropy of the target area; acquiring a spatial distribution vector according to the entropy of the target area under each color channel, and acquiring an abnormal index according to the difference between the spatial distribution vector and the spatial distribution vector of the normal tooth surface;
acquiring the gradient size and direction of each pixel point in the target area, acquiring the difference between any two pixel points according to the gradient size and direction, and acquiring the difference index of the target area according to the difference between the difference and the difference of a normal tooth surface;
and acquiring a defect confidence coefficient according to the complexity, the abnormal index and the difference index, wherein when the defect confidence coefficient is greater than a preset threshold value, the gear pump has defects.
Preferably, the step of obtaining the complexity of the target region includes:
dividing the target area into a plurality of windows with the same size, and filtering each window to obtain a characteristic value of each window;
and acquiring the ratio of the characteristic value of each window in the target area, and acquiring the complexity of the target area according to the ratio.
Preferably, the step of performing weighted summation on the entropies of all the sub-blocks by taking the distance between each sub-block and the first sub-block as a weight to obtain the entropy of the target region further includes:
equally dividing the value range of each color channel into a plurality of grades; obtaining the number of the levels in each sub-block, and optimizing the entropy of each sub-block according to the number of the levels in each sub-block to obtain the optimized entropy of each sub-block;
and taking the distance between each sub-block and the first sub-block as a weight to perform weighted summation on the optimized entropy to obtain the entropy of the target area.
Preferably, the step of obtaining a spatial distribution vector according to the entropy of the target region in each color channel includes:
acquiring the mean value of the entropies of the target area corresponding to all levels in each color channel, and acquiring the variance of the target area in each color channel according to the mean value;
and forming a spatial distribution vector by using the mean and variance of the target area under all color channels.
Preferably, the step of obtaining the difference between any two pixel points according to the gradient magnitude and the gradient direction includes:
forming a binary group by the gradient size and the gradient direction of each pixel point;
taking any pixel point in the target area as a central pixel point, wherein pixel points in the neighborhood of the central pixel point are to-be-processed pixel points; obtaining the similarity between the binary groups corresponding to any two to-be-processed pixel points; the difference degree and the similarity degree are in a negative correlation relationship.
Preferably, the step of obtaining the difference index of the target area according to the difference between the difference degree and the difference degree in the normal tooth surface includes:
forming a difference vector by using the difference degree between the pixels to be processed in each neighborhood, and acquiring an autocorrelation matrix of the difference vector; obtaining a gradient index according to the mean value of all elements in the autocorrelation matrix;
and acquiring gradient indexes corresponding to all pixel points in the target region as a gradient index sequence, and calculating the difference between the gradient index sequence and the normal region gradient index sequence as the difference index.
Preferably, the step of obtaining a defect confidence according to the complexity, the anomaly indicator and the difference indicator includes:
constructing a defect confidence coefficient model according to the complexity, the abnormal index and the difference index as follows:
Figure 375038DEST_PATH_IMAGE002
wherein,
Figure 100002_DEST_PATH_IMAGE003
representing the defect confidence;
Figure 492773DEST_PATH_IMAGE004
representing the complexity of the target region;
Figure 100002_DEST_PATH_IMAGE005
an abnormality index representing the target region;
Figure 150019DEST_PATH_IMAGE006
a difference indicator representing the target area;
Figure 100002_DEST_PATH_IMAGE007
a parameter representing the abnormality index;
Figure 411236DEST_PATH_IMAGE008
a parameter representing the indicator of difference.
In a second aspect, another embodiment of the present invention provides an artificial intelligence based hydraulic gear pump defect detection system, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
The invention has the following beneficial effects: by acquiring a target area image of the gear pump, analyzing the complexity of the target area; in order to avoid the influence of color on tooth surface detection, the entropy of the target area is further calculated under different color channels, a space index is obtained according to the entropy of the target area, and the difference between the space index under the different color channels and the space index of the normal target area is combined to be used as an abnormal index of the target area. And then obtaining the gradient characteristic of each pixel point in the target area, and obtaining the difference index of the current detection target area according to the difference between the gradient characteristic of the current detection target area and the gradient characteristic of the normal target area. And obtaining the defect confidence of the target area according to the complexity, the abnormal index and the difference index of the target area. The characteristics of the target area are considered from multiple aspects, different characteristic parameters are obtained for analysis, the accuracy of tooth surface defect detection is improved, and error influence caused by single detection is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for detecting defects of a hydraulic gear pump based on artificial intelligence according to an embodiment of the present invention.
Detailed Description
In order to further explain the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description, the structure, the features and the effects of the method and the system for detecting the defect of the hydraulic gear pump based on artificial intelligence according to the present invention are provided with the accompanying drawings and the preferred embodiments. In the following description, different "one embodiment" or "another embodiment" refers to not necessarily the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The embodiment of the invention is mainly applied to the detection of the tooth surface defects of the gear pump of the hydraulic system, and the complexity of a target area is analyzed by acquiring the target area image of the gear pump; further calculating the entropy of the target area under different color channels to obtain an abnormal index of the target area; then obtaining the gradient characteristics of each pixel point in the target area to obtain the difference index of the current detection target area; and obtaining the defect confidence of the target region by combining the complexity, the abnormal index and the difference index of the target region. The target area is analyzed from multiple aspects, different characteristic parameters are obtained, and the accuracy of detecting the tooth surface defects is improved.
The invention provides a hydraulic gear pump defect detection method and a hydraulic gear pump defect detection system based on artificial intelligence.
Referring to fig. 1, a flow chart of a method for detecting a defect of a hydraulic gear pump based on artificial intelligence according to an embodiment of the present invention is shown, where the method specifically includes the following steps:
s100, acquiring a target area of a gear pump image of a hydraulic system, wherein the target area comprises a tooth surface area of the gear pump; and acquiring the complexity of the target area.
A camera is arranged on one side, which is opposite to the tooth surface of the gear pump of the hydraulic system, so as to collect images of the tooth surface area, and the position of the camera is ensured to collect the whole area of one tooth surface of the gear pump, so that an initial image to be analyzed is obtained.
Because the initial image may include a plurality of tooth surfaces and non-tooth surface regions, in order to improve the detection accuracy and reduce the calculation amount, in the embodiment of the invention, the initial image is processed by using a semantic segmentation network, the obtained ROI of the tooth surface of the gear pump is a target region, the semantic segmentation network is structurally an encoder-decoder, and the specific training process is as follows:
(1) the input of the semantic segmentation network is an initial image of the gear pump;
(2) marking the initial image, marking the pixel point of the tooth surface area in the initial image as 1, and marking the pixel points of other areas as 0;
(3) performing feature extraction on the initial image by using an encoder, outputting a feature image, and performing up-sampling on the feature image by using a decoder;
(4) the loss function adopts a cross entropy loss function;
(5) the output of the semantic segmentation network is a tooth surface segmentation effect graph.
Furthermore, the tooth surface segmentation effect image output by the semantic segmentation network is used as a mask to be multiplied by the initial image to obtain a tooth surface ROI area to be analyzed, and the ROI area is used as a target area of subsequent defect analysis.
Extracting characteristic parameters of the obtained target area of the tooth surface so as to obtain the complexity of texture distribution of the tooth surface, dividing the target area into a plurality of windows with the same size, and filtering each window to obtain a characteristic value of each window; and acquiring the ratio of the characteristic value of each window in the target area, and acquiring the complexity of the target area according to the ratio.
The specific method for acquiring the complexity of the tooth surface target area comprises the following steps:
firstly, a target area is divided into a plurality of windows with the same size, and the target area of the tooth surface acquired by default in the embodiment of the invention is a rectangular area with basic rules. Preferably, the size of each window is set to
Figure 100002_DEST_PATH_IMAGE009
Secondly, a window filtering model is constructed for obtaining the characteristic value of each window center pixel point, and the specific calculation is as follows:
Figure DEST_PATH_IMAGE011
wherein,
Figure 378318DEST_PATH_IMAGE012
is shown as
Figure DEST_PATH_IMAGE013
Characteristic value of the center point of each window;
Figure 761894DEST_PATH_IMAGE014
representing coordinates of the center point of the window;
Figure DEST_PATH_IMAGE015
within a presentation window
Figure 578541DEST_PATH_IMAGE016
Pixel values of the pixel points are processed;
Figure DEST_PATH_IMAGE017
within a presentation window
Figure 141984DEST_PATH_IMAGE016
The weight corresponding to the pixel point is located;
Figure 134211DEST_PATH_IMAGE018
indicating the size of the window, in an embodiment of the invention
Figure DEST_PATH_IMAGE019
Further, the weight corresponding to the pixel point in each window is calculated as:
Figure DEST_PATH_IMAGE021
wherein,
Figure 423109DEST_PATH_IMAGE017
within a presentation window
Figure 523789DEST_PATH_IMAGE016
The weight corresponding to the pixel point is located;
Figure 97116DEST_PATH_IMAGE014
representing coordinates of the center point of the window;
Figure 209428DEST_PATH_IMAGE016
and representing the coordinates of any pixel point in the window.
By analogy, obtaining the characteristic value of the central point of each window; obtaining the ratio of the window in the target area according to the characteristic value of the central point of each window as follows:
Figure DEST_PATH_IMAGE023
wherein,
Figure 872491DEST_PATH_IMAGE024
is shown as
Figure 398150DEST_PATH_IMAGE013
The proportion of each window in the target area;
Figure 323903DEST_PATH_IMAGE012
is shown as
Figure 117154DEST_PATH_IMAGE013
Characteristic value of the center point of each window;
Figure DEST_PATH_IMAGE025
representing the number of windows in the target area.
Further, analyzing the texture complexity of the target area specifically includes:
Figure DEST_PATH_IMAGE027
wherein,
Figure 544593DEST_PATH_IMAGE004
representing the complexity of the target area;
Figure 964073DEST_PATH_IMAGE024
is shown as
Figure 705633DEST_PATH_IMAGE013
The proportion of each window in the target area;
Figure 526958DEST_PATH_IMAGE025
representing the number of windows in the target area.
When in use
Figure 564447DEST_PATH_IMAGE004
The larger the value of (a), the more complicated the texture feature of the target area is;
Figure 471223DEST_PATH_IMAGE004
the smaller the value of (a), the simpler the texture feature of the corresponding target region.
Step S200, dividing a target area into a plurality of sub-blocks parallel to the gear pump tooth crest, wherein the sub-block close to the gear pump tooth crest is a first sub-block; acquiring the entropies of all sub-blocks under each color channel, and performing weighted summation on the entropies of all sub-blocks by taking the distance between each sub-block and the first sub-block as a weight to obtain the entropy of a target area; and acquiring a spatial distribution vector according to the entropy of the target area under each color channel, and acquiring an abnormal index according to the difference between the spatial distribution vector and the spatial distribution vector of the normal tooth surface.
Considering that the defect detection may be affected under different color channels, so that the result is inaccurate, the embodiment of the present invention analyzes the target region under different color channels.
Specifically, a target area of the gear pump is divided into a plurality of sub-blocks parallel to the tooth tops of the gear pump in an equal proportion, the number of the sub-blocks is set to be 5 in the embodiment of the invention, namely, the target area is divided into five rectangular areas in an equal proportion to obtain five sub-blocks; due to the fact that in actual work, tooth crest areas are common areas where defects exist due to meshing between gears, the subblock close to the tooth crest of the gear pump is used as the first subblock, the distance between each subblock and the first subblock is obtained, and the distance is used as the attention degree for analyzing the defects possibly occurring on each subblock.
Further, the value range of each color channel is equally divided into a plurality of grades; obtaining the number of levels in each subblock, and optimizing the entropy of each subblock according to the number of levels in each subblock to obtain the optimized entropy of each subblock; and taking the distance between each sub-block and the first sub-block as a weight to perform weighted summation on the optimized entropy to obtain the entropy of the target region.
Specifically, in the embodiment of the present invention, the three RGB color channels of the target region are analyzed, in order to reduce the subsequent calculation amount, the value range of each color channel is equally divided into 10 levels, and each sub-block is analyzed in each color channel.
As an example, taking a red channel of a target region as an example, marking a level corresponding to a pixel point in each sub-block, counting the number of different levels of the sub-block appearing in the red channel, and designing a factor model according to the number of levels in each sub-block as follows:
Figure DEST_PATH_IMAGE029
wherein,
Figure 282053DEST_PATH_IMAGE030
is shown as
Figure DEST_PATH_IMAGE031
A factor of the individual block;
Figure 82519DEST_PATH_IMAGE032
is shown as
Figure 664810DEST_PATH_IMAGE031
The number of different levels present in the individual blocks;
Figure DEST_PATH_IMAGE033
indicating the number of levels divided under the red channel,
Figure 478788DEST_PATH_IMAGE034
further, the probability of each level occurring in each sub-block is calculated as:
Figure 171938DEST_PATH_IMAGE036
wherein,
Figure DEST_PATH_IMAGE037
is shown as
Figure 295752DEST_PATH_IMAGE038
Is ranked at the first
Figure 439157DEST_PATH_IMAGE031
Probability of occurrence in an individual block;
Figure DEST_PATH_IMAGE039
is shown as
Figure 415466DEST_PATH_IMAGE038
Is ranked at the first
Figure 912306DEST_PATH_IMAGE031
The number of occurrences in an individual block;
Figure 687364DEST_PATH_IMAGE040
and the number of all pixel points in the sub-block is represented.
And aiming at the difference of each sub-block in spatial distribution, taking the distance between each sub-block and the first sub-block as the weight corresponding to the sub-block, wherein the closer the distance between a certain sub-block and the first sub-block is, the larger the weight corresponding to the sub-block is. Taking the weight value corresponding to each sub-block as a weight, and performing weighted summation on the entropy of each grade in each sub-block by combining the factor corresponding to each sub-block to obtain the entropy of each grade in the target area, wherein the entropy of each grade in the target area is specifically:
Figure 673775DEST_PATH_IMAGE042
wherein,
Figure DEST_PATH_IMAGE043
is shown as
Figure 635914DEST_PATH_IMAGE038
Entropy of the individual levels in the target area;
Figure 670866DEST_PATH_IMAGE030
is shown as
Figure 64545DEST_PATH_IMAGE031
A factor of the individual block;
Figure 159540DEST_PATH_IMAGE044
is shown as
Figure 140135DEST_PATH_IMAGE031
Distance between the sub-block and the first sub-blockSeparating;
Figure 306674DEST_PATH_IMAGE037
is shown as
Figure 666111DEST_PATH_IMAGE038
Is ranked at the first
Figure 322220DEST_PATH_IMAGE031
Probability of occurrence in individual sub-blocks.
Further, obtaining the mean value of the entropies of the target areas corresponding to all levels in each color channel, and obtaining the variance of the target areas in each color channel according to the mean value; the spatial distribution vector is constructed with the mean and variance of the target region under all color channels.
Specifically, the mean value of the entropy values of all levels in the target region in the red channel is obtained as follows:
Figure 399898DEST_PATH_IMAGE046
wherein,
Figure 668330DEST_PATH_IMAGE043
is shown as
Figure 147853DEST_PATH_IMAGE038
Entropy of the individual levels in the target area;
Figure DEST_PATH_IMAGE047
representing the mean of the entropy values of all levels in the target region.
Further obtaining the corresponding variance according to the mean value of the entropy values of all levels in the red channel in the target area as follows:
Figure DEST_PATH_IMAGE049
wherein,
Figure 974864DEST_PATH_IMAGE043
is shown as
Figure 664471DEST_PATH_IMAGE038
Entropy of the individual levels in the target area;
Figure 844917DEST_PATH_IMAGE047
means representing the mean of the entropy values of all levels in the target region;
Figure 67694DEST_PATH_IMAGE050
representing the variance of the entropy values of all levels in the target region.
In the embodiment of the invention, the obtained mean value and variance are used as space indexes in a red channel; and by analogy, the spatial index of the target area in the green channel and the spatial index of the target area in the blue channel are obtained. In order to embody the brightness distribution information of the target area, the HSV color space conversion is carried out on the target area image, and the space index of the target area in the brightness channel is calculated.
The space distribution vector formed by the space indexes in each channel corresponding to the target area is as follows:
Figure 675393DEST_PATH_IMAGE052
wherein,
Figure DEST_PATH_IMAGE053
represents the mean of all levels in the target region under the red channel;
Figure 321138DEST_PATH_IMAGE054
representing the variance of all levels in the target region under the red channel;
Figure DEST_PATH_IMAGE055
represents the mean of all levels in the target area under the green channel;
Figure 961067DEST_PATH_IMAGE056
representing the variance of all levels in the target area under the green channel;
Figure DEST_PATH_IMAGE057
represents the mean of all levels in the target region under the blue channel;
Figure 510122DEST_PATH_IMAGE058
represents the variance of all levels in the target region under the blue channel;
Figure DEST_PATH_IMAGE059
representing the mean value of all levels in the target area under the brightness channel;
Figure 882197DEST_PATH_IMAGE060
representing the variance of all levels in the target region under the luminance channel.
Comparing the obtained space distribution vector with the space distribution vector of the target area corresponding to the normal tooth surface, and obtaining the abnormal index of the target area of the current detection tooth surface as follows:
Figure 687342DEST_PATH_IMAGE062
wherein,
Figure 537487DEST_PATH_IMAGE005
an abnormality index indicating a target region;
Figure DEST_PATH_IMAGE063
representing a spatially distributed vector
Figure 705163DEST_PATH_IMAGE064
An element;
Figure DEST_PATH_IMAGE065
representing normal spatial distribution vector
Figure 746675DEST_PATH_IMAGE064
And (4) each element.
Therefore, the currently detected target area is analyzed under different color channels, the spatial distribution condition of the target area can be visually detected, and the error influence caused by the quantization of colors and brightness values is avoided.
Step S300, obtaining the gradient size and direction of each pixel point in the target area, obtaining the difference degree between any two pixel points according to the gradient size and direction, and obtaining the difference index of the target area according to the difference between the difference degree and the difference degree in the normal tooth surface.
In order to further improve the accuracy of defect detection and analysis of the target region, the gradient amplitude and the direction of the surface pixel points are randomly distributed when the tooth surface has a defect region. Therefore, in the embodiment of the invention, the gradient index of each pixel point of the image data of the tooth surface target area is extracted, and the gradient size and the gradient direction of each pixel point form a binary group; taking any pixel point in the target area as a central pixel point, and taking a pixel point in the neighborhood of the central pixel point as a pixel point to be processed; obtaining the similarity between the binary groups corresponding to any two pixel points to be processed; the difference and the similarity are in a negative correlation relationship.
Specifically, the gradient size and the gradient direction of all pixel points in the target area are obtained, and the gradient size and the gradient direction corresponding to each pixel point form a binary group, that is, each pixel point corresponds to one binary group. And taking any pixel point of the target area as a central pixel point, and taking a neighborhood pixel point of the central pixel point as a pixel point to be processed. Preferably, in the embodiment of the present invention, eight neighborhoods of the central pixel point are selected for analysis, that is, each central pixel point corresponds to eight to-be-processed pixel points.
Calculating the similarity between every two adjacent to-be-processed pixel points in the neighborhood, wherein the similarity between every two adjacent to-be-processed pixel points is calculated by using a correlation coefficient method in the embodiment of the invention, and the method specifically comprises the following steps:
Figure DEST_PATH_IMAGE067
wherein,
Figure 101433DEST_PATH_IMAGE068
is shown as
Figure 552006DEST_PATH_IMAGE064
A pixel point to be processed and the second
Figure 715134DEST_PATH_IMAGE031
Similarity among the pixel points to be processed;
Figure DEST_PATH_IMAGE069
is shown as
Figure 258373DEST_PATH_IMAGE064
The second group corresponding to the pixel point to be processed
Figure 772531DEST_PATH_IMAGE070
An element;
Figure DEST_PATH_IMAGE071
is shown as
Figure 230057DEST_PATH_IMAGE031
The second group corresponding to the pixel point to be processed
Figure 637905DEST_PATH_IMAGE070
And (4) each element.
The difference between every two adjacent to-be-processed pixel points in the neighborhood is in a negative correlation with the similarity, and then the difference is:
Figure DEST_PATH_IMAGE073
wherein,
Figure 788263DEST_PATH_IMAGE074
is shown as
Figure 524138DEST_PATH_IMAGE064
A pixel point to be processed and the second
Figure 18311DEST_PATH_IMAGE031
The difference degree between the pixel points to be processed;
Figure 280665DEST_PATH_IMAGE068
is shown as
Figure 8450DEST_PATH_IMAGE064
A pixel point to be processed and the second
Figure 559517DEST_PATH_IMAGE031
Similarity between the pixels to be processed.
Based on the same principle, obtaining the difference between all adjacent two pixels to be processed in each neighborhood, forming a difference vector by the difference between the pixels to be processed in each neighborhood, and obtaining an autocorrelation matrix of the difference vector; obtaining a gradient index according to the mean value of all elements in the autocorrelation matrix; and acquiring gradient indexes corresponding to all pixel points in the target region as a gradient index sequence, and calculating the difference between the gradient index sequence and the normal region gradient index sequence as a difference index.
Specifically, in the embodiment of the present invention, the pixel point to be processed in each neighborhood is respectively marked as 1 in the clockwise direction
Figure DEST_PATH_IMAGE075
8, the corresponding difference vector of each neighborhood center pixel point is
Figure 358845DEST_PATH_IMAGE076
Wherein
Figure DEST_PATH_IMAGE077
expressing the difference degree between the 1 st pixel point to be processed and the 2 nd pixel point to be processed;
Figure 446012DEST_PATH_IMAGE078
and expressing the difference degree between the 1 st pixel point to be processed and the 4 th pixel point to be processed.
Further, for each central pixel pointAnd analyzing the corresponding difference vector, wherein the gradient distribution condition around the central pixel point is analyzed by acquiring the autocorrelation matrix of each difference vector. The autocorrelation matrix is of a size of
Figure DEST_PATH_IMAGE079
Each element value in the matrix represents the similarity between every two elements in the difference vector, and specifically, the matrix is as follows:
Figure DEST_PATH_IMAGE081
wherein,
Figure 797228DEST_PATH_IMAGE082
represents the second in the disparity vector
Figure DEST_PATH_IMAGE083
An element and
Figure 38854DEST_PATH_IMAGE084
the similarity between the elements, i.e. the first in the autocorrelation matrix
Figure 695004DEST_PATH_IMAGE083
Line of
Figure 807317DEST_PATH_IMAGE084
The element values of the columns;
Figure DEST_PATH_IMAGE085
represents the second in the disparity vector
Figure 470379DEST_PATH_IMAGE083
An element;
Figure 792776DEST_PATH_IMAGE086
represents the second in the disparity vector
Figure 668329DEST_PATH_IMAGE084
An element;
Figure 635148DEST_PATH_IMAGE013
represents a constant with the value range:
Figure DEST_PATH_IMAGE087
it should be noted that, when the similarity between each two elements in the disparity vector is larger, the gradient change between the two elements is more similar, and the corresponding element value in the autocorrelation matrix is closer to 1.
Further, a mean value of all the element values in the autocorrelation matrix is calculated, and the mean value is used as a gradient index corresponding to the central pixel point.
Based on the method for obtaining the same gradient index, the gradient indexes corresponding to all the pixel points in the target area of the gear pump are obtained to form a gradient index sequence.
Comparing the obtained gradient index sequence with a normal gradient index sequence corresponding to a target area under a normal tooth surface; in the embodiment of the invention, the gradient index sequence and the normal gradient index sequence are analyzed by adopting a maximum weighted mean difference method, and in other embodiments, a dynamic time warping or Pearson correlation algorithm can be adopted.
And finally obtaining a difference index between the gradient index sequence of the current target area and the normal gradient index sequence of the normal tooth surface target area, wherein when the value of the difference index is larger, the difference of the gradient index of the current target area and the normal target area is larger, and the tooth surface defect degree of the current detected target area is more serious.
And S400, acquiring defect confidence coefficient according to the complexity, the abnormal index and the difference index, wherein when the defect confidence coefficient is greater than a preset threshold value, the gear pump has defects.
The complexity, the abnormal index and the difference index of the target area are respectively obtained in the steps S100, S200 and S300, and the defect confidence level is in positive correlation with the complexity, the abnormal index and the difference index, so that the defect confidence level model is obtained as follows:
Figure 970576DEST_PATH_IMAGE088
wherein,
Figure 780269DEST_PATH_IMAGE003
representing a defect confidence level;
Figure 459512DEST_PATH_IMAGE004
representing the complexity of the target area;
Figure 280838DEST_PATH_IMAGE005
an abnormality index indicating a target region;
Figure 816861DEST_PATH_IMAGE006
a difference index representing a target area;
Figure 723637DEST_PATH_IMAGE007
a parameter indicating an abnormality index;
Figure 236265DEST_PATH_IMAGE008
a parameter representing a discrepancy indicator.
Preferably, the device is arranged in the embodiment of the invention
Figure DEST_PATH_IMAGE089
Furthermore, in order to facilitate the working personnel to know the tooth surface defect condition of the gear pump of the hydraulic system in real time and avoid the problems of abnormal gear operation, reduced working efficiency and the like caused by the overlarge tooth surface defect degree of the gear pump, the defect confidence coefficient preset threshold is set as
Figure 36731DEST_PATH_IMAGE090
That is, when the obtained defect confidence of the target area is greater than the preset threshold, it indicates that the tooth surface defect degree of the gear pump is too high, which will affect the operation process of the gear, resulting in the reduction of the working efficiency of the gear pump, and should prompt the worker to timely overhaul and maintain the tooth surface of the gear pumpAnd the generation of a great safety problem is prevented.
In summary, in the embodiment of the present invention, the target area image of the gear pump is obtained, and then the complexity of the target area is analyzed; in order to avoid the influence of different colors, the entropy of the target area is further calculated under different color channels, a spatial index is obtained according to the entropy of the target area, a spatial distribution vector is obtained by combining the spatial indexes under the different color channels, and the difference between the currently detected spatial distribution vector of the target area and the spatial distribution vector of the normal target area is used as an abnormal index of the target area. And then obtaining the gradient characteristic of each pixel point in the target area, and obtaining the difference index of the current detection target area according to the difference between the gradient characteristic of the current detection target area and the gradient characteristic of the normal target area. And obtaining the defect confidence of the target region by combining the complexity, the abnormal index and the difference index of the target region. The target area is analyzed from multiple aspects, different characteristic parameters are obtained, the accuracy of tooth surface defect detection is improved, and error influence caused by single detection is avoided.
Based on the same inventive concept as the method embodiment, the embodiment of the invention also provides a hydraulic gear pump defect detection system based on artificial intelligence, which comprises: a processor, a memory, and a computer program stored in the memory and executable on the processor. The processor, when executing the computer program, implements the steps of one embodiment of the artificial intelligence based hydraulic gear pump defect detection method described above, such as the steps shown in fig. 1. The method for detecting the defect of the hydraulic gear pump based on artificial intelligence is described in detail in the above embodiments, and is not repeated.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A hydraulic gear pump defect detection method based on artificial intelligence is characterized by comprising the following steps:
acquiring a target area of a gear pump image of a hydraulic system, wherein the target area comprises a tooth surface area of the gear pump; acquiring the complexity of the target area;
dividing the target area into a plurality of sub-blocks of a rectangular area parallel to the gear pump tooth crest in an equal proportion, wherein the sub-block close to the gear pump tooth crest is a first sub-block; acquiring the entropies of all the sub-blocks under each color channel, and performing weighted summation on the entropies of all the sub-blocks by taking the distance between each sub-block and the first sub-block as a weight to obtain the entropy of the target area; acquiring a spatial distribution vector according to the entropy of the target area under each color channel, and acquiring an abnormal index according to the difference between the spatial distribution vector and the spatial distribution vector of the normal tooth surface;
acquiring the gradient size and direction of each pixel point in the target area, acquiring the difference between any two pixel points according to the gradient size and direction, and acquiring the difference index of the target area according to the difference between the difference and the difference of a normal tooth surface;
and acquiring a defect confidence coefficient according to the complexity, the abnormal index and the difference index, wherein when the defect confidence coefficient is greater than a preset threshold value, the gear pump has defects.
2. The method of claim 1, wherein the step of obtaining the complexity of the target region comprises:
dividing the target area into a plurality of windows with the same size, and filtering each window to obtain a characteristic value of each window;
and acquiring the ratio of the characteristic value of each window in the target area, and acquiring the complexity of the target area according to the ratio.
3. The method according to claim 1, wherein the step of performing weighted summation on the entropies of all the sub-blocks by using the distance between each sub-block and the first sub-block as a weight to obtain the entropy of the target region further comprises:
equally dividing the value range of each color channel into a plurality of grades; obtaining the number of the levels in each sub-block, and optimizing the entropy of each sub-block according to the number of the levels in each sub-block to obtain the optimized entropy of each sub-block;
and taking the distance between each sub-block and the first sub-block as a weight to perform weighted summation on the optimized entropy to obtain the entropy of the target area.
4. The method according to claim 3, wherein the step of obtaining the spatial distribution vector according to the entropy of the target region in each color channel comprises:
acquiring the mean value of the entropies of the target area corresponding to all levels in each color channel, and acquiring the variance of the target area in each color channel according to the mean value;
and forming a spatial distribution vector by using the mean and variance of the target area under all color channels.
5. The method according to claim 1, wherein the step of obtaining the difference between any two pixel points according to the gradient magnitude and direction comprises:
forming a binary group by the gradient size and the gradient direction of each pixel point;
taking any pixel point in the target area as a central pixel point, wherein pixel points in the neighborhood of the central pixel point are to-be-processed pixel points; obtaining the similarity between the binary groups corresponding to any two to-be-processed pixel points; the difference degree and the similarity degree are in a negative correlation relationship.
6. The method of claim 5, wherein the step of obtaining the measure of variance of the target area based on the difference between the measure of variance and a measure of variance in a normal tooth plane comprises:
forming a difference vector by using the difference degree between the pixels to be processed in each neighborhood, and acquiring an autocorrelation matrix of the difference vector; obtaining a gradient index according to the mean value of all elements in the autocorrelation matrix;
and acquiring gradient indexes corresponding to all pixel points in the target region as a gradient index sequence, and calculating the difference between the gradient index sequence and the normal region gradient index sequence as the difference index.
7. The method of claim 1, wherein the step of obtaining a defect confidence measure from the complexity measure, the anomaly measure, and the discrepancy measure comprises:
constructing a defect confidence coefficient model according to the complexity, the abnormal index and the difference index as follows:
Figure 990841DEST_PATH_IMAGE002
wherein,
Figure DEST_PATH_IMAGE003
representing the defect confidence;
Figure 65239DEST_PATH_IMAGE004
representing the complexity of the target region;
Figure DEST_PATH_IMAGE005
an abnormality index representing the target region;
Figure 907293DEST_PATH_IMAGE006
a difference indicator representing the target area;
Figure DEST_PATH_IMAGE007
a parameter representing the abnormality index;
Figure 745846DEST_PATH_IMAGE008
a parameter representing the indicator of difference.
8. An artificial intelligence based hydraulic gear pump defect detection system comprising a memory, a processor and a computer program stored in said memory and executable on said processor, wherein said processor when executing said computer program implements the method of claim 1
Figure DEST_PATH_IMAGE009
7 the steps of any one of the methods.
CN202210254838.8A 2022-03-16 2022-03-16 Hydraulic gear pump defect detection method and system based on artificial intelligence Expired - Fee Related CN114359275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210254838.8A CN114359275B (en) 2022-03-16 2022-03-16 Hydraulic gear pump defect detection method and system based on artificial intelligence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210254838.8A CN114359275B (en) 2022-03-16 2022-03-16 Hydraulic gear pump defect detection method and system based on artificial intelligence

Publications (2)

Publication Number Publication Date
CN114359275A true CN114359275A (en) 2022-04-15
CN114359275B CN114359275B (en) 2022-06-07

Family

ID=81094961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210254838.8A Expired - Fee Related CN114359275B (en) 2022-03-16 2022-03-16 Hydraulic gear pump defect detection method and system based on artificial intelligence

Country Status (1)

Country Link
CN (1) CN114359275B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114943739A (en) * 2022-07-26 2022-08-26 山东三微新材料有限公司 Aluminum pipe quality detection method
CN114998341A (en) * 2022-08-04 2022-09-02 启东万惠机械制造有限公司 Gear defect detection method and system based on template matching
CN114937041B (en) * 2022-07-25 2022-10-25 聊城市博源节能科技有限公司 Method and system for detecting defects of copper bush of oil way of automobile engine
CN115294142A (en) * 2022-10-10 2022-11-04 丰源纸业(南通)有限公司 Quality detection method for chemical fiber paper tubes
CN116433665A (en) * 2023-06-13 2023-07-14 中国民航大学 Aircraft component defect online identification system based on visual detection
CN116630332A (en) * 2023-07-26 2023-08-22 山东华航高分子材料有限公司 PVC plastic pipe orifice defect detection method based on image processing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080205747A1 (en) * 2006-12-28 2008-08-28 Toshimasa Kuchii Defect detecting device, defect detecting method, image sensor device, image sensor module, defect detecting program, and computer-readable recording medium
CN109447946A (en) * 2018-09-26 2019-03-08 中睿通信规划设计有限公司 A kind of Overhead optical cable method for detecting abnormality
CN112258463A (en) * 2020-10-13 2021-01-22 房桂丽 Photovoltaic defect feature acquisition method and system based on camera parameter adjustment
CN113822915A (en) * 2021-07-30 2021-12-21 济宁安泰矿山设备制造有限公司 Image stereo matching method for intelligent pump cavity endoscope fault diagnosis

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080205747A1 (en) * 2006-12-28 2008-08-28 Toshimasa Kuchii Defect detecting device, defect detecting method, image sensor device, image sensor module, defect detecting program, and computer-readable recording medium
CN109447946A (en) * 2018-09-26 2019-03-08 中睿通信规划设计有限公司 A kind of Overhead optical cable method for detecting abnormality
CN112258463A (en) * 2020-10-13 2021-01-22 房桂丽 Photovoltaic defect feature acquisition method and system based on camera parameter adjustment
CN113822915A (en) * 2021-07-30 2021-12-21 济宁安泰矿山设备制造有限公司 Image stereo matching method for intelligent pump cavity endoscope fault diagnosis

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114937041B (en) * 2022-07-25 2022-10-25 聊城市博源节能科技有限公司 Method and system for detecting defects of copper bush of oil way of automobile engine
CN114943739A (en) * 2022-07-26 2022-08-26 山东三微新材料有限公司 Aluminum pipe quality detection method
CN114943739B (en) * 2022-07-26 2022-10-21 山东三微新材料有限公司 Aluminum pipe quality detection method
CN114998341A (en) * 2022-08-04 2022-09-02 启东万惠机械制造有限公司 Gear defect detection method and system based on template matching
CN114998341B (en) * 2022-08-04 2024-01-05 启东万惠机械制造有限公司 Gear defect detection method and system based on template matching
CN115294142A (en) * 2022-10-10 2022-11-04 丰源纸业(南通)有限公司 Quality detection method for chemical fiber paper tubes
CN116433665A (en) * 2023-06-13 2023-07-14 中国民航大学 Aircraft component defect online identification system based on visual detection
CN116433665B (en) * 2023-06-13 2023-08-22 中国民航大学 Aircraft component defect online identification system based on visual detection
CN116630332A (en) * 2023-07-26 2023-08-22 山东华航高分子材料有限公司 PVC plastic pipe orifice defect detection method based on image processing
CN116630332B (en) * 2023-07-26 2023-09-26 山东华航高分子材料有限公司 PVC plastic pipe orifice defect detection method based on image processing

Also Published As

Publication number Publication date
CN114359275B (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN114359275B (en) Hydraulic gear pump defect detection method and system based on artificial intelligence
CN107172418B (en) A kind of tone scale map image quality evaluating method based on exposure status analysis
CN113808138B (en) Artificial intelligence-based wire and cable surface defect detection method
CN103455979B (en) A kind of low illumination level video image enhancement
CN111402247A (en) Machine vision-based method for detecting defects of suspension clamp on power transmission line
CN1845605A (en) Image processing and recognizing method for real-time monitoring power high voltage circuit breaker switch state
CN113205051A (en) Oil storage tank extraction method based on high spatial resolution remote sensing image
CN110942137A (en) Power grid information operation and maintenance monitoring method based on deep learning
CN112396635B (en) Multi-target detection method based on multiple devices in complex environment
CN107749058A (en) A kind of machine vision detection method and system of boiler tubing surface defect
CN112767385B (en) No-reference image quality evaluation method based on significance strategy and feature fusion
CN112241707A (en) Wind-powered electricity generation field intelligence video identification device
CN111833347A (en) Transmission line damper defect detection method and related device
CN116844114A (en) Helmet detection method and device based on YOLOv7-WFD model
CN116757972A (en) Fabric defect detection method capable of resisting influence of shadow noise
CN115082741A (en) Waste textile classifying method based on image processing
CN118038443A (en) Track section state detection method and system
CN117217531A (en) Factory safe operation risk data processing method based on artificial intelligence
JP6722651B2 (en) How to choose a compression algorithm depending on the type of image
CN105163076B (en) The substation breakers state video intelligent parser mapped using transversal scanning
CN114792392B (en) Method for simulating lightning precursor development path based on Markov chain
CN112766144B (en) Island infrastructure inspection detail difference judging method, device, equipment and medium
CN114841895A (en) Image shadow removing method based on bidirectional mapping network
CN110211096B (en) Haze image detection method
CN114418087A (en) Model quantification method, device and equipment based on optimized kl divergence

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220607

CF01 Termination of patent right due to non-payment of annual fee