Summary of the invention
It is an object of that present invention to provide a kind of industrial data trend recognition methods and systems, by extracting characteristic value, in conjunction with
The changing rule of characteristic value array, original array, Conjoint Analysis obtains the variation tendency of this group of industrial data, due to introducing
The variation tendency of characteristic value, analysis result accuracy is high, and calculation amount is few;The variation tendency for analyzing obtained industrial data can have
Effect uses in production management process.In addition, newly generated data can be introduced directly into trend identification process, identify trend
Process is provided with real-time.
To reach above-mentioned purpose, in conjunction with Fig. 1, the present invention proposes a kind of industrial data trend recognition methods, the identification side
Method includes:
S1: at the beginning of according to offer and the end time, the industrial data in this time segment limit, the work are obtained
Industry data include corresponding timestamp.
S2: pre-processing the industrial data of acquisition, obtains original array, and extracts characteristic value therein, generates
Several groups feature group array, the characteristic value array include at least maximum array, minimum array, maximum value minimum.
The maximum array includes the local crest numerical value in this time segment limit in industrial data, the minimum number
Group includes the local trough numerical value in this time segment limit in industrial data, and the maximum is industrial number in this time segment limit
Greatest measure in, the minimum are the minimum value in this time segment limit in industrial data.
S3: polynomial curve fitting is carried out to original array, characteristic value array, obtains slope corresponding with each array
Value.
S4: it according to the analysis rule of setting, is calculated in this time segment limit in conjunction with the corresponding slope value of each array
Industrial data trend type.
Based on preceding method, the present invention further mentions a kind of industrial data trend identifying system, the identifying system include with
Lower module:
(1) for inputting the input equipment of starting and end time.
(2) at the beginning of being used for according to input and the end time obtains the mould of the industrial data in this time segment limit
Block.
(3) for pre-processing to the industrial data of acquisition, the module of original array is obtained.
(4) for extracting characteristic value therein from the original array of acquisition, the mould of several groups feature group array is generated
Block.
(5) it for carrying out polynomial curve fitting to original array, characteristic value array, obtains corresponding with each array oblique
The module of rate value.
(6) for the analysis rule according to setting, this period model is calculated in conjunction with the corresponding slope value of each array
The module of the trend type of industrial data in enclosing.
The industrial data generated in industrial production business process generally includes the attributes such as data type, numerical value, timestamp,
Such as the unit time output of production and operation result, unit time consumable quantity can be reacted etc., it can directly react production warp
The unit time yields of battalion's process, unit time discharge amount of exhaust gas etc., can electrically set in indirect reaction production management process
Voltage value, the performance number etc. of standby service condition.
By the trend of this kind of industrial data in analysis certain time period, can quickly and effectively understand in this period
Production and management.
First according to offer at the beginning of and the end time, obtain in this time segment limit want analysis industrial number
According to the industrial data includes corresponding timestamp.Preferably, the industrial data chosen at this time belongs to same class, with
Ensure precision of analysis.
Secondly, the industrial data to acquisition pre-processes, original array is obtained.Pretreatment includes data cleansing, data
Screening, Data Format Transform etc..The characteristic value in original array is extracted, several groups feature group array, the characteristic value are generated
Array includes at least maximum array, minimum array, maximum value minimum.
The maximum array includes the local crest numerical value in this time segment limit in industrial data, the minimum number
Group includes the local trough numerical value in this time segment limit in industrial data, and the maximum is industrial number in this time segment limit
Greatest measure in, the minimum are the minimum value in this time segment limit in industrial data.
Finally, carrying out polynomial curve fitting to original array, characteristic value array, slope corresponding with each array is obtained
Value.According to the analysis rule of setting, the industrial number in this time segment limit is calculated in conjunction with the corresponding slope value of each array
According to trend type.The trend type includes periodical, steady, the first rising, the second rising, third up and down.Specifically
, it is converted by analyzing maximum array, minimum array, the slope value of original array one by one, obtains local crest numerical value, office
The changing rule of portion's trough numerical value, raw value, then Conjoint Analysis judge that the variation of industrial data in this period becomes
Gesture.
When there are new data to generate, it can be introduced directly into original array tail portion, by judging former last bit data and newly drawing
The feature value attribute for entering data is conducted into corresponding characteristic value array, adjusts the slope of corresponding eigenvalue array, judges new
Influence of the data of generation to the variation tendency identified, the industrial data trend recognition methods for referring to the present invention are provided with reality
Shi Xing.
The above technical solution of the present invention, compared with existing, significant beneficial effect is:
1) present invention is obtained by extracting characteristic value, the changing rule of binding characteristic value array, original array, Conjoint Analysis
The variation tendency of this group of industrial data, due to introducing the variation tendency of characteristic value, analysis result accuracy is high, calculation amount
It is few.
2) variation tendency for the industrial data that analysis obtains can be efficiently used into production management process.
3) newly generated data can be introduced directly into trend identification process, and trend identification process is made to be provided with real-time.
It should be appreciated that as long as aforementioned concepts and all combinations additionally conceived described in greater detail below are at this
It can be viewed as a part of the subject matter of the disclosure in the case that the design of sample is not conflicting.In addition, required guarantor
All combinations of the theme of shield are considered as a part of the subject matter of the disclosure.
Can be more fully appreciated from the following description in conjunction with attached drawing present invention teach that the foregoing and other aspects, reality
Apply example and feature.The features and/or benefits of other additional aspects such as illustrative embodiments of the invention will be below
Description in it is obvious, or learnt in practice by the specific embodiment instructed according to the present invention.
Specific embodiment
In order to better understand the technical content of the present invention, special to lift specific embodiment and institute's accompanying drawings is cooperated to be described as follows.
In conjunction with Fig. 1, the present invention refers to that a kind of industrial data trend recognition methods, the recognition methods include:
S1: at the beginning of according to offer and the end time, the industrial data in this time segment limit, the work are obtained
Industry data include corresponding timestamp.
S2: pre-processing the industrial data of acquisition, obtains original array, and extracts characteristic value therein, generates
Several groups feature group array, the characteristic value array include at least maximum array, minimum array, maximum value minimum.
The maximum array includes the local crest numerical value in this time segment limit in industrial data, the minimum number
Group includes the local trough numerical value in this time segment limit in industrial data, and the maximum is industrial number in this time segment limit
Greatest measure in, the minimum are the minimum value in this time segment limit in industrial data.
Described to extract characteristic value therein in step S2, the process for generating several groups feature group array includes following step
It is rapid:
S21: maximum array, minimum array are generated, selects any one data in original array as maximum
With the initial value of minimum.
S22: by each data in original array, data adjacent thereto are made comparisons respectively, if the data are all larger than phase
Adjacent data, are added into maximum array, if the data are respectively less than adjacent data, are added into minimum array.
S23: by each data in original array respectively compared with maximum and minimum, if the data are greater than greatly
Value Data is updated to maximum, if the data are less than minimum Value Data, is updated to minimum.
The array data of acquisition maximum value maximum, minimum, minimum array data described in step S2 of the present invention,
Decomposition step is as follows:
If including n data in original array, each data are expressed as value [i], its corresponding timestamp is expressed as
Time [i],.
Putting in order for array is not limited to the processing of original array, it is assumed for convenience of description that from small to large according to i
Sequence original array is handled.
At that time, the Data Position in value was in 0, and the data of value [0] are assigned to maximum max, minimum
It is then compared by min in value [1], if value [0] is greater than value [1], value [0] is stored in maximum
In array maxvalue, and corresponding timestamp is stored in maxtimes, it is on the contrary by value [0] and its corresponding time
Stamp is stored in minimum array respectively in minvalue and mintimes.If it is greater than maximum max simultaneously, by its assignment
To max, if it is less than minimum min, it is assigned to minimum min.
At that time, the data in value are in 1 to the last one reciprocal position, allow value [i] and value [i-1] and
Value [i+1] compares, if value [i] is simultaneously greater than value [i-1] and value [i+1], value [i] is stored
It is stored in maximum array maxvalue, and corresponding time stamp data is stored in maxtimes, conversely, by value
[i] and its corresponding time stamp data are stored in minimum array respectively in minvalue and mintimes.If simultaneously
Value [i] is greater than maximum max, and value [i] is assigned to max, if value [i] is less than minimum min, by value
[i] is assigned to minimum min.
At that time, when the data in value are in last, value [n-1] and value [n-2] is allowed to be compared, if
When value [n-1] is greater than value [n-2], value [n-1] is stored in maximum array maxvalue, and will be corresponding
Time stamp data is stored in maxtimes, otherwise value [n-1] and its corresponding timestamp are stored in minimum number respectively
In group in minvalue and mintimes.If value [n-1] is greater than maximum max simultaneously, value [n-1] is assigned to
Value [n-1] is assigned to minimum min if value [n-1] is less than minimum min by max.
For example, original array is [1,2,3,4,5,4,3,4,3,6,5,6,2,4], 1 is set by max and min, according to preceding
Sequence is stated from front to back to handle the data in original array:
First data and second data are compared first, 1 less than 2, therefore first data 1 is put into minimum
In array, the value of max is updated to 2.
Second data is compared with first data, third data respectively again, 2 are greater than 1 less than 3, therefore second
A data are not classified as characteristic value.
Likewise, successively being handled the numerical value for coming non-first and last position in original array according to aforementioned process, can obtain
Out, maximum array is [5,4,6,6], and minimum array is [3,3,5,2], and in the process, max is updated to 6, min maintenance 1 not
Become.
Finally judge the size of last bit data 4 Yu preceding a data 2,4 are greater than 2, therefore are put into maximum array for 4, most
Whole maximum array is [5,4,6,6,4], and minimum array is [3,3,5,2], and max 6, min maintenance 1 are constant.
From the foregoing it will be appreciated that the present invention proposes for 2-3 numerical value to be set to a partial analysis array, in maximum array
Numerical value is local crest numerical value, and the numerical value in minimum array is local trough numerical value, in the feelings of not impact analysis result
Under condition, preliminary screening has been done to data, has had chosen the characteristic value Cooperative Analysis for capableing of reaction tendency variation, on the one hand, from complexity
Industrial array in filtered out wherein characteristic value, make analyze result be provided with feasibility and characteristic, on the other hand, reduce
Operand.
S3: polynomial curve fitting is carried out to original array, characteristic value array, obtains slope corresponding with each array
Value.
It is described that polynomial curve fitting is carried out to original array, characteristic value array in step S3, it obtains and each array pair
The process of the slope value answered the following steps are included:
In conjunction with maximum array, minimum array, original array and corresponding time list, using numerical value value as x-axis,
It using corresponding timestamp as y-axis, carries out curve fitting, seeks corresponding slope value.
Preferably, the curve matching includes univerible curve fitting.More preferred, using polynomial curve fit technique
Carry out the disposable curve matching of unitary.For example, carrying out the disposable curve matching of unitary using PolynonmiaCurveFitter.
S4: it according to the analysis rule of setting, is calculated in this time segment limit in conjunction with the corresponding slope value of each array
Industrial data trend type.
In some instances, the setting analysis rule includes:
If maximum array slope, minimum array slope, original array slope are respectively maxR, minR, medR.
Calculate the slope absolute value maxRV of maximum array, the slope absolute value minRV of minimum array, original array
Slope absolute value medRV.
Threshold value h is compared according to industrial data type set.
By comparing maximum array slope maxR, minimum array slope minR, original array slope medR, maximum
The slope absolute value maxRV of array, the slope absolute value minRV of minimum array, original array slope absolute value medRV with
The comparison threshold value h of setting, with the trend type of the determination industrial data.
It should be appreciated that comparing threshold value h is not fixed value, according to different analysis purposes and different data types, take
It is worth different, such as unit time output, h can be set to 0.1, when slope absolute value is less than 0.1, the oblique line
Variation tendency is extremely gentle, it can be assumed that at unit time output without significant change.
Further, the trend type includes periodical, steady, the first rising, the second rising, third up and down.
The division methods of trend type include a variety of, aforementioned trends type only wherein one according to the type of industrial data and analysis purpose
Kind.
Based on aforementioned trends Type division method, the present invention provides one of which to set analysis rule.
(1) if the slope absolute value minRV of the slope absolute value maxRV of maximum array, minimum array are small simultaneously
In the comparison threshold value h of setting, determine that the trend type of the industrial data is periodicity.
When the slope absolute value maxRV of maximum array, the slope absolute value minRV of minimum array are less than setting simultaneously
Comparison threshold value h, when such as 0.1, the numerical value change in maximum array and minimum array is little, i.e., the data in original array
The cyclic fluctuation between maximum and minimum determines that the trend type of the industrial data is periodicity at this time.
For example, original array be [1,2,6,2, Isosorbide-5-Nitrae, 6,2,1,6,3,1,2,6], maximum 6, minimum 1, greatly
Data in value array are 6, and the data in minimum array are 1, the slope of maximum array and minimum array it is oblique
Rate is 0.It can be seen that data multiplicity in original array, directly observation are difficult to judge variation tendency, by extracting maximum number
Group and minimum array can effectively exclude intermediate fluctuation data, allow users to clearly know the number in original array
It is in periodically variable according to being.
(2) if the slope absolute value medRV of maximum array slope maxR, original array are less than the comparison threshold value of setting
H, and minimum array slope minR is more than or equal to h, determines that the trend type of the industrial data is steady.
Maximum array slope, which is less than, compares threshold value h, illustrates that maximum array is in steady or downward trend, raw value
The slope absolute value of original array illustrates the variation of raw value array in moderate tone, and minimum array slope minR is greater than
Equal to h, illustrate minimum array in steady or ascendant trend, but the numerical value after rising is no more than maximum, former under such situation
Beginning array determines that the variation tendency of industrial data is that numerical value reaches unanimity, trend type is steady in convergence shape.
(3) if maximum array slope maxR is less than h, minimum array slope minR is more than or equal to h, and original array is oblique
Rate medR is greater than h, determines that the trend type of the industrial data is the first rising.
Maximum array slope maxR is less than h, illustrates maximum array in steady or downward trend, minimum array slope
MinR is more than or equal to h, illustrates that minimum array is in rising trend, and original array slope medR is greater than h, illustrates that original array is whole
It is in rising trend, determine that the trend type of the industrial data is the first rising, that is, the variation tendency of industrial data is wave at this time
Valley is gradually increasing, but the greatest measure after rising has boundary, is no more than former local crest value, and the first propradation is mainly
Refer to the variation tendency of valley value.
(4) if maximum array slope maxR is more than or equal to h, the slope absolute value minRV of minimum array is less than h,
The trend type for determining the industrial data is the second rising.
Maximum array slope maxR is more than or equal to h, illustrates that maximum array is in rising trend, the slope of minimum array
Absolute value minRV is less than h, illustrates minimum in moderate tone, third rises the variation tendency for being primarily referred to as crest value.
(5) if maximum array slope maxR is more than or equal to h, minimum array slope minR is more than or equal to h, determines institute
The trend type of industrial data is stated as third rising.
Maximum array slope maxR is more than or equal to h, illustrates that maximum array is in rising trend, minimum array slope
MinR is more than or equal to h, illustrates that minimum array is in rising trend, and industrial data is one apparent ascendant trend of whole presentation,
That is the second propradation refers to the unification and variety trend of wave crest and trough.
(6) if maximum array slope maxR is less than h, the slope absolute value minRV of minimum array is more than or equal to h,
And minimum array slope minR determines the trend type of the industrial data for decline less than 0.
Maximum array slope maxR is less than h, illustrate maximum array in steady or downward trend, minimum array it is oblique
Rate absolute value minRV is more than or equal to h, and minimum array slope minR illustrates that minimum is in be decreased obviously trend less than 0, whole
Downward trend is presented in a industrial data.
Previous example is one of analysis rule, and the setting of analysis rule is that binding analysis purpose and data type are determined
Fixed, for example, it is also possible to multiple comparison threshold ranges are set, keep analysis result more diversified etc..
When there are new data to generate, original array tail portion is introduced, the new feature value attribute for introducing data is judged, is led
Enter corresponding characteristic value array, adjusts the slope of corresponding eigenvalue array, judge that newly generated data become to the variation identified
The influence of gesture.
If original array of this analysis is the industrial data currently produced in the previous period, when there is new industry
When data generate, newly generated industrial data directly can be introduced into original array tail portion, judge former last bit data and new introducing
The two is directed respectively into corresponding characteristic value array by the feature value attribute of data, then adjusts the slope of corresponding eigenvalue array,
Influence of the newly generated data to the variation tendency identified is judged in conjunction with slope adjusted, due to only needing to rejudge original
Last bit data and the new feature value attribute for introducing data, calculation amount is small, and operation time is short, and the analysis of industrial data is made to be provided with reality
Shi Xing.
Based on preceding method, the present invention further mentions a kind of industrial data trend identifying system, the identifying system include with
Lower module:
(1) for inputting the input equipment of starting and end time.
(2) at the beginning of being used for according to input and the end time obtains the mould of the industrial data in this time segment limit
Block.
(3) for pre-processing to the industrial data of acquisition, the module of original array is obtained.
(4) for extracting characteristic value therein from the original array of acquisition, the mould of several groups feature group array is generated
Block.
(5) it for carrying out polynomial curve fitting to original array, characteristic value array, obtains corresponding with each array oblique
The module of rate value.
(6) for the analysis rule according to setting, this period model is calculated in conjunction with the corresponding slope value of each array
The module of the trend type of industrial data in enclosing.
Various aspects with reference to the accompanying drawings to describe the present invention in the disclosure, shown in the drawings of the embodiment of many explanations.
Embodiment of the disclosure need not be defined on including all aspects of the invention.It should be appreciated that a variety of designs and reality presented hereinbefore
Those of apply example, and describe in more detail below design and embodiment can in many ways in any one come it is real
It applies, this is because conception and embodiment disclosed in this invention are not limited to any embodiment.In addition, disclosed by the invention one
A little aspects can be used alone, or otherwise any appropriately combined use with disclosed by the invention.
Although the present invention has been disclosed as a preferred embodiment, however, it is not to limit the invention.Skill belonging to the present invention
Has usually intellectual in art field, without departing from the spirit and scope of the present invention, when can be used for a variety of modifications and variations.Cause
This, the scope of protection of the present invention is defined by those of the claims.