A method for collecting and analyzing cultural and creative product promotion data

By analyzing the change curve characteristics of cultural and creative product promotion data and adaptively selecting the compression method, the problem of poor compression effect of the LZ77 algorithm when processing low-repetitive and periodic data is solved, and more efficient data compression and collection analysis are achieved.

CN118520032BActive Publication Date: 2024-09-20SHANDONG JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410977159.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-09-20
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

When the existing LZ77 algorithm compresses cultural and creative product promotion data, it has a poor effect on data with low repeatability and linear growth, and cannot effectively handle cyclically changing data, resulting in poor compression results.

Method used

By constructing the change curve of cultural and creative product promotion data, analyzing its linear and periodic change characteristics, calculating characteristic coefficients, and adaptively selecting compression methods, including differential sequence processing and adaptive sliding window size, to improve data repeatability and compression efficiency.

Benefits of technology

The LZ77 algorithm has significantly improved the compression effect and collection and analysis efficiency of cultural and creative product promotion data, and improved data repeatability and storage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520032B
    Figure CN118520032B
Patent Text Reader

Abstract

The present invention relates to the field of data compression technology, and in particular to a method for collecting and analyzing cultural and creative product promotion data. The method comprises: obtaining cultural and creative product promotion data at each sampling moment within a preset time period, and constructing a change curve; respectively obtaining the slope value between each two adjacent coordinate points on the change curve, and obtaining the linear change degree of the change curve according to the difference in the slope values; constructing an auxiliary line in a two-dimensional coordinate system to which the change curve belongs, obtaining all intersections between the auxiliary line and the change curve, and obtaining the periodic change degree of the change curve according to the horizontal coordinate value of each intersection; obtaining a characteristic coefficient of the change curve according to the linear change degree and the periodic change degree, and obtaining an adaptive compression method when performing data compression according to the characteristic coefficient, and then storing the compressed data to complete the data collection of the cultural and creative product promotion data. By adopting the adaptive compression method, the compression collection efficiency of the data is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data compression, and in particular to a method for collecting and analyzing cultural and creative product promotion data. Background Art

[0002] Cultural and creative product promotion data plays a vital role in marketing and product strategy formulation. By collecting and analyzing promotion data, we can gain an in-depth understanding of product performance and consumer behavior patterns in different markets, help accurately locate target audiences and predict market trends, and then adjust product positioning, pricing strategies or marketing plans based on market feedback data to improve product competitiveness and adaptability in the market.

[0003] However, in the process of collecting cultural and creative product promotion data, due to the large amount of collected data and the large number of types, or the need to store the cultural and creative product promotion data for a long time, the collected cultural and creative product promotion data needs to be compressed and stored. Data compression can not only save storage costs and improve efficiency, but also enhance data security and environmental sustainability.

[0004] In the prior art, the LZ77 algorithm is usually used to compress and store the collected cultural and creative product promotion data. However, due to the data characteristics of the cultural and creative product promotion data (complex data change characteristics), data indicators with certain linear growth or periodic line changes often appear in various data indicators. However, the traditional LZ77 algorithm has a poor compression effect on the cultural and creative product promotion data with low repeatability and linear growth. At the same time, when the traditional LZ77 algorithm compresses the collected cultural and creative product promotion data through a fixed sliding window, it cannot effectively process the cultural and creative product promotion data with periodic changes, which also leads to poor compression effect of the cultural and creative product promotion data.

[0005] Therefore, how to improve the effect of data compression for cultural and creative product promotion data using the LZ77 algorithm has become an urgent problem to be solved. Summary of the invention

[0006] In view of this, an embodiment of the present invention provides a method for collecting and analyzing cultural and creative product promotion data to solve the problem of how to improve the effect of data compression on cultural and creative product promotion data using the LZ77 algorithm.

[0007] An embodiment of the present invention provides a method for collecting and analyzing cultural and creative product promotion data, the method comprising the following steps:

[0008] According to the preset sampling frequency, obtain the promotion data of cultural and creative products at each sampling moment, obtain all the promotion data of cultural and creative products within the preset period, and construct a change curve of the promotion data of cultural and creative products;

[0009] Respectively obtaining the slope value between every two adjacent coordinate points on the change curve, and obtaining the linear change degree of the change curve according to the difference in the slope value between every two adjacent coordinate points on the change curve;

[0010] Constructing an auxiliary line in the two-dimensional coordinate system to which the change curve belongs, obtaining all intersection points between the auxiliary line and the change curve, and obtaining the periodic change degree of the change curve according to the horizontal coordinate value of each intersection point;

[0011] According to the linear change degree and periodic change degree of the change curve, the characteristic coefficient of the change curve is obtained, and according to the characteristic coefficient of the change curve, an adaptive compression method is obtained when compressing all cultural and creative product promotion data within the preset time period, and corresponding compressed data is obtained. The compressed data is stored to complete the data collection of cultural and creative product promotion data.

[0012] Further, obtaining the linear change degree of the change curve according to the difference in slope values ​​between every two adjacent coordinate points on the change curve includes:

[0013] According to the slope values ​​of each coordinate point on the change curve, the variance of the slope value is obtained, and the inverse of the variance of the slope value is substituted into an exponential function with a natural constant as the base to obtain the corresponding exponential function result as the linear change degree of the change curve.

[0014] Furthermore, constructing an auxiliary line in the two-dimensional coordinate system to which the change curve belongs includes:

[0015] The maximum ordinate value and the minimum ordinate value on the change curve are obtained, and a straight line passing through the mean point between the maximum ordinate value and the minimum ordinate value and parallel to the horizontal axis is drawn as an auxiliary line in the two-dimensional coordinate system to which the change curve belongs.

[0016] Furthermore, obtaining the periodic change degree of the change curve according to the horizontal coordinate value of each intersection point includes:

[0017] The horizontal coordinate difference between every two adjacent intersection points is obtained respectively to obtain a horizontal coordinate difference sequence, the variance of the horizontal coordinate difference sequence is obtained, the opposite number of the variance of the horizontal coordinate difference sequence is substituted into an exponential function with a natural constant as the base, and the corresponding exponential function result is obtained as the periodic change degree of the change curve.

[0018] Further, obtaining the characteristic coefficient of the change curve according to the linear change degree and the periodic change degree of the change curve includes:

[0019] A subtraction result between the periodic change degree of the change curve and a constant 1 is obtained, and a mean value between the subtraction result and the linear change degree of the change curve is calculated as a characteristic coefficient of the change curve.

[0020] Furthermore, the adaptive compression method for compressing all the cultural and creative product promotion data within a preset time period is obtained according to the characteristic coefficient of the change curve, including:

[0021] Obtain a preset first characteristic coefficient threshold and a second characteristic coefficient threshold, and the first characteristic coefficient threshold is greater than the second characteristic coefficient threshold. If the characteristic coefficient of the change curve is greater than the first characteristic coefficient threshold, obtain a differential sequence of all cultural and creative product promotion data within the preset time period, and use the traditional LZ77 algorithm to compress the differential sequence.

[0022] Furthermore, the step of obtaining the adaptive compression method for compressing all the cultural and creative product promotion data within the preset time period according to the characteristic coefficient of the change curve further includes:

[0023] If the characteristic coefficient of the change curve is less than the second characteristic coefficient threshold, the adaptive sliding window size in the LZ77 algorithm is obtained according to all intersection points between the auxiliary line and the change curve, and the adaptive sliding window size in the LZ77 algorithm is used to compress all cultural and creative product promotion data within the preset time period.

[0024] Furthermore, the step of obtaining the adaptive compression method for compressing all the cultural and creative product promotion data within the preset time period according to the characteristic coefficient of the change curve further includes:

[0025] If the characteristic coefficient of the change curve is less than or equal to the first characteristic coefficient threshold and greater than or equal to the second characteristic coefficient threshold, the LZ77 algorithm is used to compress all cultural and creative product promotion data within the preset time period.

[0026] Further, the obtaining the adaptive sliding window size in the LZ77 algorithm according to all intersections between the auxiliary line and the change curve includes:

[0027] According to all the intersections between the change curve and the auxiliary line, the horizontal coordinate difference between every two adjacent intersections is calculated to obtain the mean of the horizontal coordinate difference, and the mean of the horizontal coordinate difference is used as the minimum positive period of all cultural and creative product promotion data within the preset time period, and the adaptive sliding window size in the LZ77 algorithm is set to the minimum positive period.

[0028] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0029] The present invention obtains cultural and creative product promotion data at each sampling moment according to a preset sampling frequency, obtains all cultural and creative product promotion data within a preset time period, and constructs a change curve of the cultural and creative product promotion data; respectively obtains the slope value between every two adjacent coordinate points on the change curve, and the difference in the slope value between every two adjacent coordinate points on the change curve, to obtain the linear change degree of the change curve; constructs an auxiliary line in the two-dimensional coordinate system to which the change curve belongs, obtains all intersections between the auxiliary line and the change curve, and obtains the periodic change degree of the change curve according to the horizontal coordinate value of each intersection; obtains the characteristic coefficient of the change curve according to the linear change degree and the periodic change degree of the change curve, and obtains the adaptive compression method when compressing all cultural and creative product promotion data within the preset time period according to the characteristic coefficient of the change curve, obtains the corresponding compressed data, stores the compressed data, and completes the data collection of cultural and creative product promotion data. Among them, by constructing a change curve for all cultural and creative product promotion data within a preset time period, it is used to analyze the linear change degree and periodic change degree of the change curve, so as to analyze the data characteristic changes of all cultural and creative product promotion data within the preset time period, that is, to obtain the characteristic coefficient of all cultural and creative product promotion data within the preset time period, and then obtain an adaptive compression method based on the characteristic coefficient, so that the repeatability of the cultural and creative product promotion data is greatly improved, which greatly improves the compression effect and collection and analysis efficiency of the LZ77 algorithm for the cultural and creative product promotion data. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0031] Figure 1 This is a method flow chart of a method for collecting and analyzing cultural and creative product promotion data provided by Embodiment 1 of the present invention;

[0032] Figure 2 is a schematic diagram of a change curve and a linear change curve provided in Example 1 of the present invention;

[0033] Figure 3 It is a schematic diagram of the intersection between a change curve and an auxiliary line provided in the first embodiment of the present invention. DETAILED DESCRIPTION

[0034] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, but should not be understood as limiting the present disclosure.

[0035] It should be noted that the terms "first", "second", etc. in the specification of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure.

[0036] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.

[0037] The specific scenario described in the present invention is as follows: in the process of collecting data for the promotion of cultural and creative products, due to the large size of cultural and creative product data, the variety of cultural and creative product data, and the complex data change characteristics, the traditional LZ77 algorithm compression processing has a poor compression effect on linear growth data with low repeatability; and the fixed sliding window cannot effectively process data indicators that change periodically; therefore, a curve image is constructed for the historical data of various indicators of cultural and creative products; the curve change characteristics are analyzed and the relevant characteristic coefficients are obtained; the collection method of each indicator data is adaptively obtained, so that the repeatability of the data to be collected is greatly improved; the compression rate and collection and analysis efficiency of LZ77 are greatly improved.

[0038] See also Figure 1 , is a method flow chart of a method for collecting and analyzing cultural and creative product promotion data provided by the first embodiment of the present invention, such as Figure 1 As shown, the method may include:

[0039] Step S101, according to a preset sampling frequency, obtain the cultural and creative product promotion data at each sampling moment, obtain all the cultural and creative product promotion data within a preset time period, and construct a change curve of the cultural and creative product promotion data.

[0040] Research and determine the data scope that must be collected for cultural and creative product promotion activities, such as sales performance, overall sales, number of clicks, related conversion success rate, product production volume, etc., and obtain all cultural and creative product promotion data within the preset period based on the determined data scope and preset sampling frequency, where the preset sampling frequency is one day, and the preset period is 1 month or one year, etc., which are not limited here. In order to ensure the quality and accuracy of the collected cultural and creative product promotion data, after obtaining all cultural and creative product promotion data, all cultural and creative product promotion data are cleaned to eliminate useless data or abnormal values.

[0041] After obtaining all the cultural and creative product promotion data after data cleaning, Matplotlib is used to draw the change curve of all the cultural and creative product promotion data, wherein the horizontal axis of the change curve represents the sampling time, and the vertical axis represents the characteristic vector of the cultural and creative product promotion data sampled each time, wherein the characteristic vector refers to a type of data within a certain data range, for example: the characteristic vector refers to the sales performance of the cultural and creative product promotion data, and the corresponding constructed change curve is the change curve of the sales performance of the cultural and creative products within a preset time period, which is also a change curve corresponding to a type of data within a certain data range. It should be noted that Matplotlib belongs to the prior art and will not be repeated here.

[0042] Step S102 : respectively obtaining the slope value between every two adjacent coordinate points on the change curve, and obtaining the linear change degree of the change curve according to the difference in the slope value between every two adjacent coordinate points on the change curve.

[0043] Due to the complex changes in the promotion data of cultural and creative products, there is no shortage of cultural and creative product promotion data with obvious linear growth or periodic change characteristics. Although the promotion data of cultural and creative products with a certain linear growth can show linear change characteristics, the repeatability of this type of cultural and creative product promotion data is usually low. When the traditional LZ77 algorithm is used to compress this type of cultural and creative product promotion data, the compression effect is poor.

[0044] According to the changing characteristics of the linear function, when the monotonicity of the linear function remains unchanged, the slope value on the corresponding linear change curve is a constant, and the numerical difference between every two adjacent points on the linear change curve is approximately distributed in an arithmetic progression. Correspondingly, when the characteristic difference between every two adjacent coordinate points in the change curve of the cultural and creative product promotion data conforms to the arithmetic progression distribution, the differential sequence can be used to enhance the data repeatability of the cultural and creative product promotion data, so as to improve the subsequent compression effect of the data using the LZ77 algorithm. Figure 2 , which is a schematic diagram of a change curve and a linear change curve, Figure 2In the figure, curve 1 is a changing curve, and straight line 2 is a linear changing curve. When the change of curve 1 conforms more to the linear change of straight line 2, the difference between the coordinate points on curve 1 is more similar to the arithmetic progression distribution, and the repeatability is higher. Therefore, in the embodiment of the present invention, the slope value between each two adjacent coordinate points on the changing curve is first obtained, and then the linear change degree of the changing curve is obtained according to the difference in the slope value between each two adjacent coordinate points on the changing curve.

[0045] The method for obtaining the slope value between each two adjacent coordinate points on the change curve is as follows: taking the i-th coordinate point and the i-1-th coordinate point on the change curve as an example, the calculation expression for obtaining the slope value between the i-th coordinate point and the i-1-th coordinate point on the change curve is:

[0046]

[0047] in, Represents the slope value between the i-th coordinate point and the i-1-th coordinate point on the change curve. Represents the ordinate value of the i-th coordinate point, Represents the horizontal coordinate value of the i-th coordinate point, Indicates the ordinate value of the i-1th coordinate point, Represents the horizontal coordinate value of the i-1th coordinate point.

[0048] Wherein, according to the difference in slope values ​​between every two adjacent coordinate points on the change curve, the linear change degree of the change curve is obtained, including:

[0049] According to the slope values ​​of each coordinate point on the change curve, the variance of the slope value is obtained, and the inverse of the variance of the slope value is substituted into an exponential function with a natural constant as the base to obtain the corresponding exponential function result as the linear change degree of the change curve.

[0050] In one embodiment, the calculation expression for obtaining the linear change degree of the change curve is:

[0051]

[0052] in, Indicates the degree of linear change of the change curve, exp() represents an exponential function with a natural constant as the base, and n represents the number of slope values ​​between all coordinate points on the change curve. Represents the mth slope value between all coordinate points on the change curve, Represents the mean of the slope values ​​between all coordinate points on the change curve.

[0053] It should be noted that It is used to represent the variance of the slope values ​​between all coordinate points on the change curve. The smaller the variance, the lower the discreteness of the slope values ​​on the change curve, the smaller the data difference on the corresponding change curve, the higher the stability and consistency of the data, the more it conforms to the data change characteristics of the linear function, and the greater the linear change degree of the corresponding change curve.

[0054] So far, the linear change degree of the change curve has been obtained.

[0055] Step S103, constructing an auxiliary line in the two-dimensional coordinate system to which the change curve belongs, obtaining all intersection points between the auxiliary line and the change curve, and obtaining the periodic change degree of the change curve according to the horizontal coordinate value of each intersection point.

[0056] Because the traditional LZ77 algorithm cannot effectively process periodically changing data when using a fixed sliding window to compress the cultural and creative product promotion data, and periodically changing data will inevitably be repeated within a certain interval, therefore, in the embodiment of the present invention, if the change curve of the cultural and creative product promotion data shows periodic changes, the size of the sliding window in the LZ77 algorithm can be adaptively set by analyzing the periodicity of the cultural and creative product promotion data, and then the set sliding window size in the LZ77 algorithm can be used to improve the data compression effect of the cultural and creative product promotion data.

[0057] An auxiliary line is constructed in the two-dimensional coordinate system to which the change curve belongs, and is used to analyze the periodic characteristics of the change curve of the cultural and creative product promotion data according to the auxiliary line. The method of constructing an auxiliary line in the two-dimensional coordinate system to which the change curve belongs is:

[0058] The maximum ordinate value and the minimum ordinate value on the change curve are obtained, and a straight line passing through the mean point between the maximum ordinate value and the minimum ordinate value and parallel to the horizontal axis is drawn as an auxiliary line in the two-dimensional coordinate system to which the change curve belongs.

[0059] In one embodiment, for the mean point between the maximum ordinate value and the minimum ordinate value, the calculation expression is:

[0060]

[0061] Among them, P represents the mean point between the maximum ordinate value and the minimum ordinate value, Indicates the maximum ordinate value on the change curve, It represents the minimum vertical coordinate value on the change curve, and 2 represents a constant.

[0062] After obtaining the mean point, draw a straight line passing through the mean point and parallel to the horizontal axis in the two-dimensional coordinate system to which the variation curve belongs as an auxiliary line.

[0063] After obtaining the auxiliary line, all the intersection points between the auxiliary line and the change curve can be obtained, and then the periodic change characteristics of the change curve can be analyzed according to all the intersection points between the auxiliary line and the change curve. Figure 3 , which is a schematic diagram of the intersection between a change curve and an auxiliary line. Figure 3 The dotted line in the figure is the auxiliary line, the solid line is the change curve, and all the points where the auxiliary line and the change curve intersect are the intersection points.

[0064] Furthermore, after all the intersection points between the auxiliary line and the change curve are obtained, the periodic change characteristics of the change curve are analyzed according to all the intersection points between the auxiliary line and the change curve, including:

[0065] The horizontal coordinate difference between every two adjacent intersection points is obtained respectively to obtain a horizontal coordinate difference sequence, the variance of the horizontal coordinate difference sequence is obtained, the opposite number of the variance of the horizontal coordinate difference sequence is substituted into an exponential function with a natural constant as the base, and the corresponding exponential function result is obtained as the periodic change degree of the change curve.

[0066] In one embodiment, the calculation expression for the periodic change degree of the change curve is:

[0067]

[0068] in, It indicates the periodic change degree of the change curve, exp() indicates the exponential function with natural constant as the base, and e indicates the data volume of the horizontal axis difference sequence. represents the tth horizontal coordinate difference in the horizontal coordinate difference sequence, Represents the average value of the horizontal axis difference sequence;

[0069] It should be noted that It represents the variance of the horizontal axis difference sequence. Under the normalization function, the smaller the variance value is, the closer the value of the inverse normalization function is to 1. Indicates the degree of periodic change, and its value range is [0,1]. The closer the value is to 1, the smaller the variance of the horizontal coordinate difference sequence is, and the lower the dispersion of the horizontal coordinate difference sequence relative to its mean is. This means that the difference between the two adjacent horizontal coordinates in the change curve is closer to a constant value, and the more it conforms to the data change characteristics of the periodic function, and the greater the degree of periodic change of the corresponding change curve.

[0070] So far, the periodic variation degree of the variation curve has been obtained.

[0071] Step S104, according to the linear change degree and periodic change degree of the change curve, obtain the characteristic coefficient of the change curve, according to the characteristic coefficient of the change curve, obtain the adaptive compression method for compressing all the cultural and creative product promotion data within the preset time period, obtain the corresponding compressed data, store the compressed data, and complete the data collection of the cultural and creative product promotion data.

[0072] In order to determine whether the change curve has a linear change feature or a periodic change feature, after obtaining the linear change degree and the periodic change degree of the change curve, an integrated analysis can be performed according to the linear change degree and the periodic change degree of the change curve to obtain the characteristic coefficient of the change curve, wherein the method for obtaining the characteristic coefficient of the change curve is:

[0073] A subtraction result between the periodic change degree of the change curve and a constant 1 is obtained, and a mean value between the subtraction result and the linear change degree of the change curve is calculated as a characteristic coefficient of the change curve.

[0074] In one embodiment, the characteristic coefficient of the change curve is calculated as follows:

[0075]

[0076] in, represents the characteristic coefficient, Indicates the degree of periodic change of the change curve. Indicates the linear change degree of the change curve, 1 represents a constant;

[0077] It should be noted that the greater the linear change of the change curve, The closer the value of is to 1 and Approaches 0; when the periodicity of the change curve increases, The closer the value of is to 1, The value of is close to 0; if the current change curve has a linear change characteristic, the characteristic coefficient The value of is close to 1; if the change curve has periodic changes, the characteristic coefficient The value of is close to 0; if the change curve does not have obvious linear change and periodic change characteristics, the characteristic coefficient The value is close to 0.5.

[0078] After obtaining the characteristic coefficient of the change curve, an adaptive compression method for compressing all the promotion data of cultural and creative products within a preset period of time can be obtained according to the characteristic coefficient of the change curve to obtain corresponding compressed data, wherein the specific process of obtaining the adaptive compression method for compressing all the promotion data of cultural and creative products within a preset period of time according to the characteristic coefficient of the change curve includes:

[0079] Obtaining a preset first characteristic coefficient threshold and a second characteristic coefficient threshold, and the first characteristic coefficient threshold is greater than the second characteristic coefficient threshold, if the characteristic coefficient of the change curve is greater than the first characteristic coefficient threshold, obtaining a differential sequence of all cultural and creative product promotion data within the preset time period, and using a traditional LZ77 algorithm to perform data compression on the differential sequence;

[0080] If the characteristic coefficient of the change curve is less than the second characteristic coefficient threshold, the adaptive sliding window size in the LZ77 algorithm is obtained according to all intersections between the auxiliary line and the change curve, and the adaptive sliding window size in the LZ77 algorithm is used to compress all the cultural and creative product promotion data within the preset time period;

[0081] If the characteristic coefficient of the change curve is less than or equal to the first characteristic coefficient threshold and greater than or equal to the second characteristic coefficient threshold, the LZ77 algorithm is used to compress all cultural and creative product promotion data within the preset time period.

[0082] In one embodiment, the first characteristic coefficient threshold is set =0.7; Set the second characteristic coefficient threshold =0.3; when the characteristic coefficient Greater than , obtain the differential sequence of cultural and creative product promotion data within the preset period, so as to improve the repeatability of cultural and creative product promotion data within the preset period. For example, assuming that the cultural and creative product promotion data is , and its corresponding difference sequence is , since the differential sequence of the promotion data of cultural and creative products within the preset period has a linear change characteristic, the value in the differential sequence tends to a constant value. Therefore, when the LZ77 algorithm is used to compress the differential sequence of the promotion data of cultural and creative products within the preset period, a better compression effect can be achieved; when the characteristic coefficient Less than When , the sliding window size is changed to compress the promotion data of cultural and creative products. Specifically, firstly, the adaptive sliding window size in the LZ77 algorithm is obtained according to all the intersections between the auxiliary line and the change curve. Then, the adaptive sliding window size in the LZ77 algorithm is used to compress the promotion data of cultural and creative products within a preset period of time, so that the data in the forward buffer and the sliding window have better repeatability during data compression. When the characteristic coefficient When it is between [0.3,0.7], the LZ77 algorithm and the cultural and creative product promotion data within the preset time period are not preprocessed, and the traditional LZ77 algorithm is directly used to compress the cultural and creative product promotion data.

[0083] Among them, according to all the intersections between the auxiliary line and the change curve, the adaptive sliding window size in the LZ77 algorithm is obtained, including:

[0084] According to all the intersections between the change curve and the auxiliary line, the horizontal coordinate difference between every two adjacent intersections is calculated to obtain the mean of the horizontal coordinate difference, and the mean of the horizontal coordinate difference is used as the minimum positive period of all cultural and creative product promotion data within the preset time period, and the adaptive sliding window size in the LZ77 algorithm is set to the minimum positive period.

[0085] In one embodiment, according to all the intersections between the auxiliary line and the change curve, the abscissa difference between every two adjacent intersections is obtained to obtain an abscissa difference sequence, and the minimum positive cycle of all cultural and creative product promotion data within a preset period is obtained according to the abscissa difference sequence, wherein the calculation expression of the minimum positive cycle is:

[0086]

[0087] in, represents the minimum positive cycle of all cultural and creative product promotion data within the preset period, e represents the data volume of the horizontal axis difference sequence, Represents the tth abscissa difference in the abscissa difference sequence.

[0088] It should be noted that, based on all the intersections between the change curve and the auxiliary line, the minimum positive period of all cultural and creative product promotion data within the preset time period is obtained, and the adaptive sliding window size in the LZ77 algorithm is set to the minimum positive period, so that the data in the forward buffer and the sliding window have better repeatability during data compression.

[0089] At this point, it is possible to adaptively select a suitable method to compress the cultural and creative product promotion data according to the changing characteristics of the changing curve during compression to obtain the corresponding compressed data. Afterwards, the compressed data is stored, thereby completing the data collection of the cultural and creative product promotion data, greatly improving the repeatability of the data to be collected, and greatly improving the compression rate and collection and analysis efficiency of LZ77.

[0090] In summary, the embodiments of the present invention obtain the cultural and creative product promotion data at each sampling moment according to a preset sampling frequency, obtain all the cultural and creative product promotion data within a preset time period, and construct a change curve of the cultural and creative product promotion data; respectively obtain the slope value between each two adjacent coordinate points on the change curve, and obtain the linear change degree of the change curve according to the difference in the slope value between each two adjacent coordinate points on the change curve; construct an auxiliary line in the two-dimensional coordinate system to which the change curve belongs, obtain all the intersection points between the auxiliary line and the change curve, and obtain the periodic change degree of the change curve according to the horizontal coordinate value of each of the intersection points; obtain the characteristic coefficient of the change curve according to the linear change degree and the periodic change degree of the change curve, and obtain the adaptive compression method for compressing all the cultural and creative product promotion data within the preset time period according to the characteristic coefficient of the change curve, obtain the corresponding compressed data, store the compressed data, and complete the data collection of the cultural and creative product promotion data. Among them, by constructing a change curve for all cultural and creative product promotion data within a preset time period, it is used to analyze the linear change degree and periodic change degree of the change curve, so as to analyze the data characteristic changes of all cultural and creative product promotion data within the preset time period, that is, to obtain the characteristic coefficient of all cultural and creative product promotion data within the preset time period, and then obtain an adaptive compression method based on the characteristic coefficient, so that the repeatability of the cultural and creative product promotion data is greatly improved, which greatly improves the compression effect and collection and analysis efficiency of the LZ77 algorithm for the cultural and creative product promotion data.

[0091] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for collecting and analyzing cultural and creative product promotion data, characterized in that: The method comprises: According to the preset sampling frequency, obtain the cultural and creative product promotion data at each sampling moment, obtain all cultural and creative product promotion data within the preset period, and construct a change curve of the cultural and creative product promotion data; Respectively obtaining the slope value between every two adjacent coordinate points on the change curve, and obtaining the linear change degree of the change curve according to the difference in the slope value between every two adjacent coordinate points on the change curve; Constructing an auxiliary line in the two-dimensional coordinate system to which the change curve belongs, obtaining all intersection points between the auxiliary line and the change curve, and obtaining the periodic change degree of the change curve according to the horizontal coordinate value of each intersection point; According to the linear change degree and the periodic change degree of the change curve, the characteristic coefficient of the change curve is obtained, and according to the characteristic coefficient of the change curve, an adaptive compression method is obtained when compressing all the cultural and creative product promotion data within the preset time period, corresponding compressed data is obtained, and the compressed data is stored to complete the data collection of the cultural and creative product promotion data; The step of obtaining a characteristic coefficient of the change curve according to the linear change degree and the periodic change degree of the change curve comprises: Obtaining a subtraction result between the periodic change degree of the change curve and a constant 1, and calculating a mean value between the subtraction result and the linear change degree of the change curve as a characteristic coefficient of the change curve; According to the characteristic coefficient of the change curve, an adaptive compression method for compressing all the cultural and creative product promotion data within a preset time period is obtained, including: Obtaining a preset first characteristic coefficient threshold and a second characteristic coefficient threshold, and the first characteristic coefficient threshold is greater than the second characteristic coefficient threshold, if the characteristic coefficient of the change curve is greater than the first characteristic coefficient threshold, obtaining a differential sequence of all cultural and creative product promotion data within the preset time period, and using a traditional LZ77 algorithm to perform data compression on the differential sequence; If the characteristic coefficient of the change curve is less than the second characteristic coefficient threshold, the adaptive sliding window size in the LZ77 algorithm is obtained according to all intersections between the auxiliary line and the change curve, and the adaptive sliding window size in the LZ77 algorithm is used to compress all the cultural and creative product promotion data within the preset time period; If the characteristic coefficient of the change curve is less than or equal to the first characteristic coefficient threshold and greater than or equal to the second characteristic coefficient threshold, the LZ77 algorithm is used to compress all the cultural and creative product promotion data within the preset time period; The step of obtaining the adaptive sliding window size in the LZ77 algorithm according to all intersections between the auxiliary line and the change curve includes: According to all the intersections between the change curve and the auxiliary line, the horizontal coordinate difference between every two adjacent intersections is calculated to obtain the mean of the horizontal coordinate difference, and the mean of the horizontal coordinate difference is used as the minimum positive period of all cultural and creative product promotion data within the preset time period, and the adaptive sliding window size in the LZ77 algorithm is set to the minimum positive period.

2. The method for collecting and analyzing cultural and creative product promotion data according to claim 1, characterized in that: The step of obtaining the linear change degree of the change curve according to the difference in slope values ​​between every two adjacent coordinate points on the change curve comprises: According to the slope values ​​of each coordinate point on the change curve, the variance of the slope value is obtained, and the inverse of the variance of the slope value is substituted into an exponential function with a natural constant as the base to obtain the corresponding exponential function result as the linear change degree of the change curve.

3. The method for collecting and analyzing cultural and creative product promotion data according to claim 1, characterized in that: The step of constructing an auxiliary line in the two-dimensional coordinate system to which the change curve belongs includes: The maximum ordinate value and the minimum ordinate value on the change curve are obtained, and a straight line passing through the mean point between the maximum ordinate value and the minimum ordinate value and parallel to the horizontal axis is drawn as an auxiliary line in the two-dimensional coordinate system to which the change curve belongs.

4. The method for collecting and analyzing cultural and creative product promotion data according to claim 1, characterized in that: The step of obtaining the periodic variation degree of the variation curve according to the horizontal coordinate value of each intersection point includes: The horizontal coordinate difference between every two adjacent intersection points is obtained respectively to obtain a horizontal coordinate difference sequence, the variance of the horizontal coordinate difference sequence is obtained, the opposite number of the variance of the horizontal coordinate difference sequence is substituted into an exponential function with a natural constant as the base, and the corresponding exponential function result is obtained as the periodic change degree of the change curve.