Information generation method, device, terminal device and computer readable medium

By acquiring and processing historical data sequences containing a variety of influencing factors, and eliminating noise data to improve the forecast accuracy of product demand in large supermarket stores, it solves the problem of low forecast accuracy under the influence of diverse factors and noise in the existing technology. Enables more efficient demand forecasting and inventory management.

CN115115383BActive Publication Date: 2024-10-15MULTIPOINT (SHENZHEN) DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110284660.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-17
Publication Date
2024-10-15
Estimated Expiration
2041-03-17

AI Technical Summary

Technical Problem

It is difficult to accurately predict the demand for goods in large supermarket stores with existing technology, especially due to the low prediction accuracy caused by noise samples caused by the category attributes of different goods and various influencing factors.

Method used

By obtaining historical data sequences, determine the mapping sequence set containing date indicators, promotion indicators, weather indicators and temperature indicators, generate forecast information, and calculate deviation values ​​through iterative thresholds to discard abnormal data, and optimize the identification and elimination of noise data to improve forecast accuracy. Spend.

Benefits of technology

It improves the forecasting level and efficiency of store demand, reduces the coupling degree between different factors, and enhances the scalability and forecasting speed of the method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115115383B_ABST
    Figure CN115115383B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose information generation methods, devices, terminal devices and computer-readable media. A specific implementation of the method includes: obtaining a historical data sequence, wherein the historical data sequence includes a first number of historical data; determining a mapping sequence set, wherein the mapping sequence set includes a first mapping sequence, a second mapping sequence, a third mapping sequence and a fourth mapping sequence; using the historical data sequence and the mapping sequence set to generate prediction information; pushing the prediction information to a target device to control the target device to perform a target operation. This implementation can analyze and predict the historical data sequence according to different factors determined in the mapping sequence set, with a low degree of coupling between different factors and strong scalability. Optimize the identification of abnormal data in the historical data sequence and discard the abnormal data, the optimization speed is fast, the historical data sequence can be effectively utilized, and the prediction level of the historical data sequence can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to an information generating method, apparatus, terminal device, and computer-readable medium. Background Art

[0002] During the transformation of large supermarkets to new retail and the integration of online and offline, there is a widespread situation of irrational resource allocation (such as unsalable or out of stock) in the store's procurement and sales operations, which results in high losses and loss of gross profit. Therefore, accurate prediction of the shopping demand of store customers directly affects the store's operation level. Good demand estimation can better plan the store's procurement and inventory management, and can also better guide sales pricing and promotional activities, thereby improving the turnover rate and profitability of stores and even merchants.

[0003] However, when analyzing and predicting store demand, the following technical problems often arise:

[0004] First, different commodities have their own unique category attributes, such as seasonal attributes and promotional attributes, and it is difficult for existing methods to take all these factors into account. In addition, the amount of sample data from each store is limited, and the amount of complete sample data considering different influencing factors is even smaller, so the prediction accuracy of existing methods is low.

[0005] Second, due to the large number of new retail stores in large supermarkets, the factors affecting store demand are very complex and diverse, and there are a large number of noise samples, which directly affect the accuracy of predictions by existing methods. Summary of the invention

[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0007] Some embodiments of the present disclosure propose information generation methods, apparatuses, terminal devices, and computer-readable media to solve one or more of the technical problems mentioned in the above background technology section.

[0008] In a first aspect, some embodiments of the present disclosure provide an information generation method, the method comprising: obtaining a historical data sequence, wherein the historical data sequence includes a first number of historical data; determining a mapping sequence set, wherein the mapping sequence set includes a first mapping sequence, a second mapping sequence, a third mapping sequence, and a fourth mapping sequence; generating prediction information using the historical data sequence and the mapping sequence set; and pushing the prediction information to a target device to control the target device to perform a target operation.

[0009] In a second aspect, some embodiments of the present disclosure provide an information generating device, which includes: a receiving unit, configured to obtain a historical data sequence, wherein the historical data sequence includes a first number of historical data; a determining unit, configured to determine a mapping sequence set, wherein the mapping sequence set includes a first mapping sequence, a second mapping sequence, a third mapping sequence, and a fourth mapping sequence; a generating unit, configured to generate prediction information using the historical data sequence and the mapping sequence set; and a control unit, configured to push the prediction information to a target device to control the target device to perform a target operation.

[0010] In a third aspect, some embodiments of the present disclosure provide a terminal device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement any method as described in the first aspect.

[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, any method in the first aspect is implemented.

[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the information generation method of some embodiments of the present disclosure can analyze and predict the historical data sequence according to the different factors determined in the mapping sequence set, the coupling degree between different factors is low, and the scalability is strong. The abnormal data in the historical data sequence is optimized and discarded, the optimization speed is fast, the historical data sequence can be effectively utilized, and the prediction level of the historical data sequence is improved. Specifically, the inventor found that the reason for the low level of store demand prediction at present is that there are many factors affecting store demand and the amount of sample data is limited. In addition, there is a large amount of noise data in the sample data, resulting in a large prediction deviation. Based on this, firstly, some embodiments of the present disclosure obtain the historical data sequence. Secondly, a mapping sequence set is determined. Among them, the mapping sequence set includes a first mapping sequence, a second mapping sequence, a third mapping sequence and a fourth mapping sequence. The mapping sequence set takes into account the date index, the promotion index, the weather index and the temperature index, and can analyze and predict the historical data sequence according to different factors, the coupling degree between different factors is low, and the scalability is strong. Thirdly, the historical data sequence and the mapping sequence set are used to generate prediction information. Determine the threshold, the first iteration threshold and the second iteration threshold, use the threshold, the first iteration threshold and the second iteration threshold to calculate the deviation value, monitor the abnormal data in the historical data sequence, discard the abnormal data, and effectively use the historical data sequence. Then, determine the factor sequence, including the first factor sequence, the second factor sequence, the third factor sequence, and the fourth factor sequence, and make predictions based on factors related to the merchant's sales behavior, thereby improving the prediction level of store demand. By optimizing the identification of abnormal data in the historical data sequence and discarding the abnormal data, the optimization prediction process is fast and the prediction efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0014] Figure 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;

[0015] Figure 2 are flow charts of some embodiments of the information generation method according to the present disclosure;

[0016] Figure 3 This is an exemplary authorization prompt box;

[0017] Figure 4 is a flow chart of some embodiments of the information generating device according to the present disclosure;

[0018] Figure 5 It is a structural diagram of a terminal device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0020] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0023] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0024] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the information generation method of the present disclosure may be applied.

[0025] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0026] Users can use terminal devices 101, 102, 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications, such as data processing applications, information generation applications, data analysis applications, etc., can be installed on terminal devices 101, 102, 103.

[0027] The terminal devices 101, 102, 103 can be hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various terminal devices with display screens, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When the terminal devices 101, 102, 103 are software, they can be installed in the terminal devices listed above. They can be implemented as multiple software or software modules (for example, to provide historical data sequence input, etc.), or they can be implemented as a single software or software module. No specific limitation is made here.

[0028] The server 105 may be a server that provides various services, such as a server that stores historical data sequences input by the terminal devices 101, 102, and 103. The server may process the received historical data sequences and feed back the processing results (such as prediction information) to the terminal device.

[0029] It should be noted that the information generating method provided in the embodiment of the present disclosure may be executed by the server 105 or by a terminal device.

[0030] It should be pointed out that the server 105 can also directly store the historical data sequence locally, and the server 105 can directly extract the local historical data sequence and obtain the prediction information after processing. In this case, the exemplary system architecture 100 may not include the terminal devices 101, 102, 103 and the network 104.

[0031] It should also be noted that the terminal devices 101, 102, 103 may also be installed with information generation applications, and in this case, the processing method may also be executed by the terminal devices 101, 102, 103. In this case, the exemplary system architecture 100 may also not include the server 105 and the network 104.

[0032] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, for providing information generation services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0033] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0034] Continue to refer Figure 2 , shows a process 200 of some embodiments of the information generation method according to the present disclosure. The information generation method comprises the following steps:

[0035] Step 201, obtaining a historical data sequence.

[0036] In some embodiments, the execution subject of the information display method (eg Figure 1 The server shown) can obtain the historical data sequence in response to receiving the target authorization signal. The above-mentioned target authorization signal can be a signal generated by the user corresponding to the above-mentioned historical data sequence performing the target operation on the target control. The above-mentioned target control can be included in the authorization prompt box. The above-mentioned authorization prompt box can be displayed on the target terminal device. The above-mentioned target terminal device can be a terminal device logged in with the account corresponding to the above-mentioned user. The above-mentioned terminal device can be a "mobile phone" or a "computer". The above-mentioned target operation can be a "click operation" or a "slide operation". The above-mentioned target control can be a "confirm button".

[0037] As an example, the authorization prompt box above can be as follows Figure 3 As shown. The authorization prompt box may include: a prompt information display part 301 and a control 302. The prompt information display part 301 may be used to display prompt information. The prompt information may be "whether to allow the acquisition of historical data sequence". The control 302 may be a "confirm button" or a "cancel button".

[0038] Optionally, the historical data sequence includes a first number of historical data. The specific historical data may be the sales volume data of daily necessities in a store. The historical data may also be the quantity data of online fruit orders. The recording period of the historical data sequence may be "days", and the historical data sequence includes the historical data of the first number of days. The recording period of the historical data sequence may be "hours", and the historical data sequence includes the historical data of the first number of hours.

[0039] Step 202: determine a mapping sequence set.

[0040] In some embodiments, the above-mentioned execution subject determines a mapping sequence set. Among them, the mapping sequence set includes a first mapping sequence, a second mapping sequence, a third mapping sequence and a fourth mapping sequence. Optionally, the first mapping sequence includes a second number of first mappings, and the first mapping is a date indicator. The second mapping sequence includes a third number of second mappings, and the second mapping is a promotion indicator. The third mapping sequence includes a fourth number of third mappings, and the third mapping is an indicator of a public emergency. Specific public emergencies may include but are not limited to one of the following: extreme weather, natural disasters, and epidemic blockades. The fourth mapping sequence includes a fifth number of fourth mappings, and the fourth mapping is a temperature indicator. Specifically, the first mapping, the second mapping, the third mapping, and the fourth mapping may be objects that need to be predicted according to the rules of historical data, and it may be any quantity related to the sales behavior of merchants. Specifically, it may be various special situations in stores that have a greater impact on sales. Specifically, the first mapping may represent stock demand. Stock demand may be a stable, periodic user demand of a store. The second mapping, the third mapping, and the fourth mapping may represent incremental demand. Incremental demand may be a short-term user demand increment of a store. The coupling degree between the first mapping, the second mapping, the third mapping, and the fourth mapping is low.

[0041] Step 203: Generate prediction information using the historical data sequence and the mapping sequence set.

[0042] In some embodiments, the execution entity of the information generation method generates prediction information using a historical data sequence and a mapping sequence set.

[0043] Optionally, determine an initial factor sequence set. The initial factor sequence set includes a first initial factor sequence, a second initial factor sequence, a third initial factor sequence, and a fourth initial factor sequence. Specifically, the first initial factor, the second initial factor, the third initial factor, and the fourth initial factor are all 0. Determine the number of iterations, a first iteration threshold, and a second iteration threshold. Specifically, the first iteration threshold may be 10, and the second iteration threshold may be 3. The number of iterations may be 0.

[0044] Optionally, a parameter set is generated based on the historical data sequence, the mapping sequence set and the initial factor sequence set. The parameter set includes a trend sequence, an iteration number and a factor sequence set. The factor sequence set includes a first factor sequence, a second factor sequence, a third factor sequence and a fourth factor sequence. Specifically, the initial factor sequence set is determined as the factor sequence set.

[0045] Use the following formula to calculate the trend to get the trend sequence:

[0046]

[0047] Wherein, d is the seventh number and d is an integer. Specifically, d can be 14. k represents the iteration count, and T represents the trend. i represents the count. W[k]=W_factor[week(k)], P[k]=P_factor[promo(k)], E[k]=E_factor[exce(k)], C[k]=C_factor*centi_N(k). W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, and C_factor represents the fourth factor. week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping, centi(i) represents the ith fourth mapping, and T[i] represents the ith trend in the trend sequence.

[0048] Update the first factor using the following formula to obtain the first factor sequence:

[0049] W[j]=W_factor[week(j)]

[0050]

[0051]

[0052] Sw j ={i|week(i)=j,i∈[1,N]}

[0053] Where i and j represent counts, and N is the first number. len() represents the length of the sequence. P[k] = P_factor[promo(k)], E[k] = E_factor[exce(k)], C[k] = C_factor*centi_N(k). W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, and C_factor represents the fourth factor. week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping. W[j] represents the jth first factor. Specifically, the first factor sequence can be a 7-dimensional array, and week(i) represents the day of the week in which the i-th day is.

[0054] Update the second factor using the following formula to obtain the second factor sequence:

[0055] P[i]=P_factor[promo(i)]

[0056]

[0057] Sp1={i|promo(i)=1}

[0058] Where i represents the count, and len() represents the length of the sequence. W[k] = W_factor[week(k)], E[k] = E_factor[exce(k)], and C[k] = C_factor*centi_N(k). W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, and C_factor represents the fourth factor. week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping. centi(i) represents the ith fourth mapping, and P[i] represents the ith second factor. Specifically, promo(i) represents whether the ith day is a holiday promotion. In response to yes, promo(i)=1. In response to no, promo(i)=0.

[0059] Update the third factor using the following formula to obtain the third factor sequence:

[0060] E[i]=E_factor[exce(i)]

[0061]

[0062] Se1={i|exce(i)=1}

[0063] Where i represents the count, and len() represents the length of the sequence. W[k] = W_factor[week(k)], P[k] = P_factor[promo(k)], and C[k] = C_factor*centi_N(k). W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, and C_factor represents the fourth factor. week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping. centi(i) represents the ith fourth mapping, and E[i] represents the ith third factor. Specifically, exce(i) represents whether the ith day is a special extreme case. In response to yes, exce(i)=1. In response to no, exce(i)=0.

[0064] Use the following formula to update the fourth factor to obtain the fourth factor sequence:

[0065] C[i]=C_factor*centi_N(i)

[0066]

[0067] C[i]=C_factor*centi_N(i)

[0068]

[0069] Among them, i represents count, C_factor represents the fourth factor, and week represents the first mapping. centi represents the fourth mapping. centi(i) represents the i-th fourth mapping. N represents the first number, and C[i] represents the i-th fourth factor.

[0070] The value of the number of iterations is increased by 1. The set of the trend sequence, the number of iterations, the first factor sequence, the second factor sequence, the third factor sequence, and the fourth factor sequence is determined as a parameter set.

[0071] Optionally, in response to the number of iterations being not greater than a first iteration threshold, the following first step is performed.

[0072] Step 1: In response to the number of iterations not being greater than the second iteration threshold, a parameter set is generated based on the historical data sequence, the mapping sequence set, the factor sequence set, the trend sequence and the number of iterations. Specifically, the trend is calculated using the following formula to obtain a trend sequence:

[0073]

[0074] Wherein, d is the seventh number and d is an integer. Specifically, d can be 14. k represents the iteration count, and T represents the trend. i represents the count. W[k]=W_factor[week(k)], P[k]=P_factor[promo(k)], E[k]=E_factor[exce(k)], C[k]=C_factor*centi_N(k). W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, and C_factor represents the fourth factor. week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping, centi(i) represents the ith fourth mapping, and T[i] represents the ith trend in the trend sequence.

[0075] Update the first factor using the following formula to obtain the first factor sequence:

[0076] W[j]=W_factor[week(j)]

[0077]

[0078]

[0079] Sw j ={i|week(i)=j,i∈[1,N]}

[0080] Where i and j represent counts, and N is the first number. len() represents the length of the sequence. P[k] = P_factor[promo(k)], E[k] = E_factor[exce(k)], C[k] = C_factor*centi_N(k). W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, and C_factor represents the fourth factor. week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping. W[j] represents the jth first factor. Specifically, the first factor sequence can be a 7-dimensional array, and week(i) represents the day of the week in which the i-th day is.

[0081] Update the second factor using the following formula to obtain the second factor sequence:

[0082] P[i]=P_factor[promo(i)]

[0083]

[0084] Sp1={i|promo(i)=1}

[0085] Where i represents the count, and len() represents the length of the sequence. W[k] = W_factor[week(k)], E[k] = E_factor[exce(k)], and C[k] = C_factor*centi_N(k). W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, and C_factor represents the fourth factor. week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping. centi(i) represents the ith fourth mapping, and P[i] represents the ith second factor. Specifically, promo(i) represents whether the ith day is a holiday promotion. In response to yes, promo(i)=1. In response to no, promo(i)=0.

[0086] Update the third factor using the following formula to obtain the third factor sequence:

[0087] E[i]=E_factor[exce(i)]

[0088]

[0089] Se1={i|exce(i)=1}

[0090] Where i represents the count, and len() represents the length of the sequence. W[k] = W_factor[week(k)], P[k] = P_factor[promo(k)], and C[k] = C_factor*centi_N(k). W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, and C_factor represents the fourth factor. week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping. centi(i) represents the ith fourth mapping, and E[i] represents the ith third factor. Specifically, exce(i) represents whether the ith day is a special extreme case. In response to yes, exce(i)=1. In response to no, exce(i)=0.

[0091] Use the following formula to update the fourth factor to obtain the fourth factor sequence:

[0092] C[i]=C_factor*centi_N(i)

[0093]

[0094] C[i]=C_factor*centi_N(i)

[0095]

[0096] Among them, i represents count, C_factor represents the fourth factor, and week represents the first mapping. centi represents the fourth mapping. centi(i) represents the i-th fourth mapping. N represents the first number, and C[i] represents the i-th fourth factor.

[0097] Increase the number of iterations by 1.

[0098] Optionally, in response to the number of iterations being greater than a second iteration threshold, the deviation value is calculated using the following formula to obtain a deviation value set:

[0099]

[0100]

[0101] Among them, T represents the trend, Indicates the calculation trend, i indicates the count. N is the first number. || indicates taking the absolute value. W[i]=W_factor[week(i)], P[i]=P_factor[promo(i)], E[i]=E_factor[exce(i)], C[i]=C_factor*centi_N(i). W_factor indicates the first factor, P_factor indicates the second factor, E_factor indicates the third factor, and C_factor indicates the fourth factor. week indicates the first mapping, promo indicates the second mapping, and exce indicates the third mapping. centi represents the fourth mapping. centi(i) represents the ith fourth mapping. delta represents the deviation value, and delta[i] represents the ith deviation value in the deviation value set. For each deviation value in the deviation value set, reorder them from large to small according to the numerical value to generate a deviation value sequence.

[0102] The historical data corresponding to the first sixth number of deviation values ​​in the deviation value sequence are deleted from the historical data sequence. Specifically, the sixth number may be 1. The historical data corresponding to the first deviation value in the deviation value sequence is deleted each time.

[0103] Optionally, in response to the number of iterations being greater than a first iteration threshold, prediction information is generated using the following formula:

[0104]

[0105] Among them, W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, and C_factor represents the fourth factor. week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi indicates the fourth mapping. x indicates the prediction information tag, x is a counting index, T indicates the trend, and N indicates the first number. last indicates the trend count in the trend sequence, and T[last] indicates the last trend in the trend sequence. The prediction information tag is a date index, and Predict(x) indicates the prediction information.

[0106] The optional content in the above step 203, namely, "the technical content of discarding abnormal historical data by calculating the deviation value", as an inventive point of the embodiment of the present disclosure, solves the technical problem 2 mentioned in the background technology, "due to the large number of new retail stores of large supermarkets, the factors affecting store demand are very mixed and varied, and there are a large number of noise samples, which directly affect the accuracy of the prediction of the existing method.". The factors that lead to poor prediction accuracy are often as follows: the existing method predicts store demand based on large-scale sample historical data, and the historical data is affected by multiple factors and there is a lot of noise. The prediction accuracy based on noisy data is poor. If the above factors are solved, the effect of improving the accuracy of the prediction result can be achieved. In order to achieve this effect, the present disclosure introduces deviation value calculation to eliminate noise data. First, determine the control parameters of iterative optimization, including the first iteration threshold and the second iteration threshold. Then, use the trend sequence, the factor sequence set and the mapping sequence set to calculate the deviation value sequence. The deviation value sequence is calculated by iterative method, and only the first factor, the second factor, the third factor, and the fourth factor are alternately iterated, and the convergence speed is fast. Finally, after the iteration is stable, the historical data corresponding to the first deviation value in the deviation value sequence is deleted from the historical data sequence. By calculating the deviation value sequence based on the factor sequence set and the mapping sequence set, the various factors are decoupled and there is no high correlation, which reduces the complexity of the calculation process and ensures a faster convergence speed. After eliminating the noise data, predicting store demand based on valid historical data can improve the accuracy of the prediction results, thereby solving the second technical problem.

[0107] Step 204: Push the prediction information to the target device to control the target device to perform the target operation.

[0108] In some embodiments, the execution subject pushes the prediction information to the target device to control the target device to perform the target operation. The target device may be a device that is in communication with the execution subject and can perform the target operation according to the received prediction information. For example, when the prediction information output by the execution subject can indicate the user demand of the store on the next working day, the store's goods delivery volume can be adjusted according to the prediction information to meet the store's sales demand.

[0109] Figure 2An embodiment provided has the following beneficial effects: obtaining a historical data sequence, wherein the historical data sequence includes a first number of historical data; determining a mapping sequence set, wherein the mapping sequence set includes a first mapping sequence, a second mapping sequence, a third mapping sequence, and a fourth mapping sequence; using the historical data sequence and the mapping sequence set to generate prediction information; pushing the prediction information to a target device to control the target device to perform a target operation. This implementation can analyze and predict the historical data sequence according to different factors determined in the mapping sequence set, with a low degree of coupling between different factors and strong scalability. It optimizes the identification of abnormal data in the historical data sequence and discards the abnormal data, has a fast optimization speed, can effectively utilize the historical data sequence, and improves the prediction level of the historical data sequence.

[0110] Further references Figure 4 As an implementation of the above methods in the above figures, the present disclosure provides some embodiments of an information generating device, and these device embodiments are Figure 2 Corresponding to the above method embodiments, the device can be specifically applied to various terminal devices.

[0111] like Figure 4 As shown, in some embodiments, the information generating device 400 includes: a receiving unit 401, a determining unit 402, a generating unit 403, and a control unit 404. The first receiving unit 401 is configured to obtain a historical data sequence, wherein the historical data sequence includes a first number of historical data. The determining unit 402 is configured to determine a mapping sequence set. The mapping sequence set includes a first mapping sequence, a second mapping sequence, a third mapping sequence, and a fourth mapping sequence. The generating unit 403 is configured to generate prediction information using the historical data sequence and the mapping sequence set. The control unit 404 is configured to push the prediction information to the target device to control the target device to perform a target operation.

[0112] It is understood that the units described in the device 400 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 400 and the units included therein, and will not be described in detail here.

[0113] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present disclosure. Figure 5 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0114] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503. Various programs and data required for the operation of the system 500 are also stored in the RAM 503. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0115] The following components are connected to the I / O interface 505: a storage section 506 including a hard disk, etc.; and a communication section 507 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 507 performs communication processing via a network such as the Internet. A drive 508 is also connected to the I / O interface 505 as needed. A removable medium 509, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 508 as needed, so that a computer program read therefrom is installed into the storage section 506 as needed.

[0116] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 507, and / or installed from the removable medium 509. When the computer program is executed by the central processing unit (CPU) 501, the above functions defined in the method of the present disclosure are executed. It should be noted that the computer-readable medium described in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0117] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0118] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0119] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A method for generating information, include: Acquire a historical data sequence, wherein the historical data sequence includes a first number of historical data; Determine a mapping sequence set, wherein the mapping sequence set includes a first mapping sequence, a second mapping sequence, a third mapping sequence, and a fourth mapping sequence; Generate prediction information using the historical data sequence and the mapping sequence set; Pushing the prediction information to a target device to control the target device to perform a target operation; The first mapping sequence includes a second number of first mappings, the first mappings are date indicators, the second mapping sequence includes a third number of second mappings, the second mappings are promotion indicators, the third mapping sequence includes a fourth number of third mappings, the third mappings are weather indicators, and the fourth mapping sequence includes a fifth number of fourth mappings, the fourth mappings are temperature indicators; Wherein, the generating prediction information by using the historical data sequence and the mapping sequence set includes: Determine an initial factor sequence set, wherein the initial factor sequence set includes a first initial factor sequence, a second initial factor sequence, a third initial factor sequence, and a fourth initial factor sequence; Determine the number of iterations, a first iteration threshold, and a second iteration threshold; Generate a parameter set based on the historical data sequence, the mapping sequence set and the initial factor sequence set, wherein the parameter set includes a trend sequence, the number of iterations and a factor sequence set, and the factor sequence set includes a first factor sequence, a second factor sequence, a third factor sequence and a fourth factor sequence; In response to the number of iterations being not greater than a first iteration threshold, executing the following first step: In response to the number of iterations being not greater than a second iteration threshold, generating a parameter set based on the historical data sequence, the mapping sequence set, the factor sequence set, the trend sequence, and the number of iterations; In response to the number of iterations being greater than the second iteration threshold, the deviation value is calculated using the following formula to obtain a deviation value set: Among them, T represents the trend, represents the calculation trend, i represents the count, N is the first number, || represents the absolute value, W[i]=W_factor[week(i)], P[i]=P_factor[promo(i)], E[i]=E_factor[exce(i)], C[i]=C_factor*centi_N(i), W_factor represents the first factor sequence, P_factor represents the second factor, E_factor represents the third factor, C_factor represents the fourth factor, week represents the first mapping, promo represents the second mapping, exce represents the third mapping, centi represents the fourth mapping, centi(i) represents the i-th fourth mapping, delta represents the deviation value, and delta[i] represents the i-th deviation value in the deviation value set; For each deviation value in the deviation value set, reorder the values ​​from large to small to generate a deviation value sequence; The historical data corresponding to the first sixth number of deviation values ​​in the deviation value sequence are deleted from the historical data sequence.

2. The method according to claim 1, in, The generating prediction information by using the historical data sequence and the mapping sequence set further includes: In response to the number of iterations being greater than the first iteration threshold, prediction information is generated using the following formula: Among them, W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, C_factor represents the fourth factor, week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping, x represents the prediction information mark, x is a counting indicator, T represents the trend, N represents the first number, last represents the trend count in the trend sequence, T[last] represents the last trend in the trend sequence, the prediction information mark is a date indicator, and Predict(x) represents the prediction information.

3. The method according to claim 2, in, The generating a parameter set based on the historical data sequence, the mapping sequence set and the initial factor sequence set comprises: Use the following formula to calculate the trend to get the trend sequence: Wherein, d is the seventh number, d is an integer, k represents the iteration count, T represents the trend, i represents the count, W[k]=W_factor[week(k)], P[k]=P_factor[promo(k)], E[k]=E_factor[exce(k)], C[k]=C_factor*centi_N(k), W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, C_factor represents the fourth factor, week represents the first mapping, promo represents the second mapping, exce represents the third mapping, centi represents the fourth mapping, centi(i) represents the i-th fourth mapping, and T[i] represents the i-th trend in the trend sequence; Update the first factor using the following formula to obtain the first factor sequence: Where i and j represent counts, N is the first number, len() represents the length of the sequence, P[k]=P_factor[promo(k)], E[k]=E_factor[exce(k)], C[k]=C_factor*centi_N(k), W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, C_factor represents the fourth factor, week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping, W[j] represents the jth first factor; Update the second factor using the following formula to obtain the second factor sequence: Where i represents count, len() represents the length of the sequence, W[k]=W_factor[week(k)], E[k]=E_factor[exce(k)], C[k]=C_factor*centi_N(k), W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, C_factor represents the fourth factor, week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping, centi(i) represents the i-th fourth mapping, and P[i] represents the i-th second factor; Update the third factor using the following formula to obtain the third factor sequence: E[i]=E_factor[exce(i)] Yes 1 ={i|exce(i)=1} Where i represents count, len() represents the length of the sequence, W[k]=W_factor[week(k)], P[k]=P_factor[promo(k)], C[k]=C_factor*centi_N(k), W_factor represents the first factor, P_factor represents the second factor, E_factor represents the third factor, C_factor represents the fourth factor, week represents the first mapping, promo represents the second mapping, and exce represents the third mapping. centi represents the fourth mapping, centi(i) represents the i-th fourth mapping, and E[i] represents the i-th third factor; Use the following formula to update the fourth factor to obtain the fourth factor sequence: C[i]=C_factor*centi_N(i) C[i]=C_factor*centi_N(i) Among them, i represents count, C_factor represents the fourth factor, and week represents the first mapping. centi represents the fourth mapping, centi(i) represents the i-th fourth mapping, N represents the first number, and C[i] represents the i-th fourth factor; Add 1 to the value of the number of iterations; A set of the trend sequence, the number of iterations, the first factor sequence, the second factor sequence, the third factor sequence, and the fourth factor sequence is determined as the parameter set.

4. An information generating device, include: A receiving unit is configured to obtain a historical data sequence, wherein the historical data sequence includes a first number of historical data; a determining unit, configured to determine a mapping sequence set, wherein the mapping sequence set includes a first mapping sequence, a second mapping sequence, a third mapping sequence, and a fourth mapping sequence; A generating unit, configured to generate prediction information using the historical data sequence and the mapping sequence set; a control unit, configured to push the prediction information to a target device to control the target device to perform a target operation; The first mapping sequence includes a second number of first mappings, the first mappings are date indicators, the second mapping sequence includes a third number of second mappings, the second mappings are promotion indicators, the third mapping sequence includes a fourth number of third mappings, the third mappings are weather indicators, and the fourth mapping sequence includes a fifth number of fourth mappings, the fourth mappings are temperature indicators; Wherein, the generating unit is further configured to: Determine an initial factor sequence set, wherein the initial factor sequence set includes a first initial factor sequence, a second initial factor sequence, a third initial factor sequence, and a fourth initial factor sequence; Determine the number of iterations, a first iteration threshold, and a second iteration threshold; Generate a parameter set based on the historical data sequence, the mapping sequence set and the initial factor sequence set, wherein the parameter set includes a trend sequence, the number of iterations and a factor sequence set, and the factor sequence set includes a first factor sequence, a second factor sequence, a third factor sequence and a fourth factor sequence; In response to the number of iterations being not greater than a first iteration threshold, executing the following first step: In response to the number of iterations being not greater than a second iteration threshold, generating a parameter set based on the historical data sequence, the mapping sequence set, the factor sequence set, the trend sequence, and the number of iterations; In response to the number of iterations being greater than the second iteration threshold, the deviation value is calculated using the following formula to obtain a deviation value set: Among them, T represents the trend, represents the calculation trend, i represents the count, N is the first number, || represents the absolute value, W[i]=W_factor[week(i)], P[i]=P_factor[promo(i)], E[i]=E_factor[exce(i)], C[i]=C_factor*centi_N(i), W_factor represents the first factor sequence, P_factor represents the second factor, E_factor represents the third factor, C_factor represents the fourth factor, week represents the first mapping, promo represents the second mapping, exce represents the third mapping, centi represents the fourth mapping, centi(i) represents the i-th fourth mapping, delta represents the deviation value, and delta[i] represents the i-th deviation value in the deviation value set; For each deviation value in the deviation value set, reorder the values ​​from large to small to generate a deviation value sequence; The historical data corresponding to the first sixth number of deviation values ​​in the deviation value sequence are deleted from the historical data sequence.

5. A first terminal device, include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.

6. A computer readable medium having a computer program stored thereon, in, When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.