Methods, apparatus, electronic devices and storage media for calculating inter-brand migration

By acquiring and analyzing consumers' scanning data and sales data at different time periods, the brand migration volume is calculated, solving the problem that existing technologies cannot measure consumer brand migration and achieving accurate measurement of brand migration.

CN116308454BActive Publication Date: 2026-05-05CHINA TOBACCO GUANGXI IND
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA TOBACCO GUANGXI IND
Filing Date
2023-01-20
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing technologies cannot use product sales figures to measure consumer migration between different brands, and the authenticity and representativeness of text review data are difficult to guarantee.

Method used

By acquiring the scan data and sales data of the target object over a continuous period of time, the scan migration volume of each consumer is calculated, the overall scan migration volume of the market is summarized, the brand migration probability is calculated, and the mutual migration volume between brands is calculated using the brand migration probability and sales data.

Benefits of technology

It enables the use of real sales data on consumer brand migration, alleviating the problem of data lacking authenticity and representativeness, and accurately measuring the migration between brands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116308454B_ABST
    Figure CN116308454B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, electronic device, and storage medium for calculating inter-brand migration volume. The method includes: acquiring first barcode scanning data of a target object in a first time period and second barcode scanning data in a second time period, as well as first sales data of each brand in the first time period and second sales data in the second time period, wherein the first and second time periods are continuous; calculating the barcode migration volume of each target object based on the first and second barcode scanning data; summing the barcode migration volumes to obtain the overall barcode migration volume of the market; calculating the brand migration probability based on the overall barcode migration volume; and calculating the inter-brand migration volume based on the brand migration probability, the first sales data, and the second sales data. This application solves the problem in related technologies where product sales cannot be used to measure consumer migration between different brands.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of brand sales forecasting technology, and in particular to a method, apparatus, electronic device, and storage medium for calculating inter-brand migration. Background Technology

[0002] Currently, existing technologies use fuzzy inference algorithms based on online reviews from e-commerce platforms to estimate consumers' brand switching intentions. Additionally, the automotive industry scientifically quantifies brand migration into data and introduces brand inflow, brand outflow, and brand stickiness indices to describe car purchase migration, constructing a research model for automotive brand migration. However, these technical solutions do not calculate the number of consumers migrating between different brands, and existing technologies are based on text reviews rather than actual sales figures for different brands. On the one hand, some brands have difficulty obtaining online reviews; on the other hand, the accuracy and representativeness of text reviews are difficult to guarantee.

[0003] Therefore, existing technologies cannot use product sales figures to measure consumer migration between different brands. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, and storage medium for calculating brand migration, in order to at least solve the problem in the related art that it is impossible to use product sales to measure consumer migration between different brands.

[0005] According to one aspect of the embodiments of this application, a method for calculating brand migration amount is provided, the method comprising:

[0006] Acquire the first scan data of the target object in the first time period and the second scan data in the second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, wherein the first time period and the second time period are consecutive.

[0007] Based on the first scan data and the second scan data, calculate the scan migration amount for each target object;

[0008] By summing up the aforementioned QR code migration volume, the total QR code migration volume of the market is obtained;

[0009] Calculate the brand migration probability based on the total number of QR code scans migrated.

[0010] The mutual migration amount of brands is calculated based on the brand migration probability, the first sales data, and the second sales data.

[0011] According to another aspect of the embodiments of this application, a brand migration calculation device is also provided, the device comprising:

[0012] The acquisition module is used to acquire the first scan data of the target object in a first time period and the second scan data in a second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, wherein the first time period and the second time period are consecutive.

[0013] The first calculation module is used to calculate the scanning migration amount of each target object based on the first scanning data and the second scanning data;

[0014] The aggregation module is used to aggregate the QR code migration volume to obtain the overall QR code migration volume of the market.

[0015] The second calculation module is used to calculate the brand migration probability based on the total number of scan migrations.

[0016] The third calculation module is used to calculate the mutual migration amount of brands based on the brand migration probability, the first sales data, and the second sales data.

[0017] According to another aspect of the embodiments of this application, an electronic device is also provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; wherein the memory is used to store a computer program; and the processor is used to execute the method steps of any of the above embodiments by running the computer program stored in the memory.

[0018] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to execute the method steps of any of the above embodiments when running.

[0019] In this embodiment, the method involves acquiring the first QR code scanning data of the target object in a first time period and the second QR code scanning data in a second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, where the first and second time periods are continuous. Based on the first and second QR code scanning data, the QR code migration amount for each target object is calculated. The total QR code migration amount is then aggregated to obtain the overall market QR code migration amount. Based on the overall QR code migration amount, the brand migration probability is calculated. Finally, based on the brand migration probability, the first sales data, and the second sales data, the inter-brand migration amount is calculated. This method analyzes the QR code migration of individual consumers (i.e., the target object) using their personal QR code scanning data, then aggregates the individual consumers' QR code migration data to obtain the overall market QR code migration data. Next, the consumer brand migration probability is calculated based on the overall market QR code migration data. Finally, using the brand migration probability and the actual sales of each brand, the inter-brand migration amount is calculated. This fully utilizes the real sales data of each brand, alleviating the problem of data lacking authenticity and representativeness. It solves the problem in related technologies where product sales cannot be used to measure consumer migration between different brands. Attached Figure Description

[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a flowchart illustrating an optional method for calculating mutual brand migration according to an embodiment of this application.

[0023] Figure 2 This is a schematic diagram illustrating the brand scanning activity of a single consumer at two different time periods, according to an embodiment of this application.

[0024] Figure 3 This is an illustration of an optional brand migration of a single consumer in two different time periods according to an embodiment of this application;

[0025] Figure 4 This is a flowchart illustrating another optional method for calculating mutual brand migration according to an embodiment of this application;

[0026] Figure 5This is a structural block diagram of an optional brand migration calculation device according to an embodiment of this application;

[0027] Figure 6 This is a structural block diagram of an optional electronic device according to an embodiment of this application. Detailed Implementation

[0028] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0030] According to one aspect of the embodiments of this application, a method for calculating brand migration is provided, such as... Figure 1 As shown, the process of this method may include the following steps:

[0031] Step S101: Obtain the first scan data of the target object in the first time period and the second scan data in the second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, wherein the first time period and the second time period are consecutive.

[0032] Optionally, for the target audience (consumers who have scanned a QR code at least once within two consecutive time periods), an increase in the number of scans reflects a rise in their purchase preference for a particular brand over a certain period, while a decrease in the number of scans reflects a decrease in their purchase preference for a particular brand over a certain period. Furthermore, the first and second time periods are consecutive. For example, if the first time period is month a, then the second time period is month a+1. The number of scans by all consumers in the first time period is used as the first scan data, and the number of scans by all consumers in the second time period is used as the second scan data.

[0033] For example, let's take consumer cigarette QR code scanning data from a city in a province as an example. The time period is from January 1, 2022 to September 29, 2022, a total of 9 months. Here, we only need to select two consecutive months of data for subsequent calculations. For example, we can choose August and September as the first and second time periods respectively, or January and February as the first and second time periods respectively, and so on. After data cleaning, there are a total of 9,837,702 valid QR code scanning records, involving 179,668 consumers. The average number of scans per consumer is 54.75, involving 465 brands. The top 10 brands by number of scans are shown in Table 1.

[0034] Table 1: Top 10 Brands by Number of Consumers Scanning QR Codes

[0035] Brand Name Number of scans Number of consumers Brand A 3293451 144132 Brand B 1941727 131022 Brand C 193606 57229 Brand D 154740 51740 Brand E 152500 47444 Brand F 146778 49908 Brand G 143546 45216 Brand H 130129 46191 Brand I 120174 40810 Brand J 114383 37642

[0036] Next, the sales volume of each brand in the first and second time periods is obtained, including the first sales volume data and the second sales volume data. The first sales volume data and the second sales volume data are used to calculate the final brand migration volume.

[0037] Step S102: Calculate the scanning migration amount for each target object based on the first and second scanning data.

[0038] Optionally, based on the first and second scan data, analyze the scanning behavior migration of each consumer (i.e., scan migration amount). The scan migration amount is the change in the number of times each consumer purchases a certain brand in different time periods. For example, (1, 2, ..., 179668) represents the number of scans of brand A in the first time period for the i-th consumer. In the second time period, the transfer was made to product B; similarly, the calculation can be performed. And so on. Using the first and second scan data mentioned above, the scan migration volume for each consumer is calculated.

[0039] Step S103: Summarize the QR code migration volume to obtain the total QR code migration volume of the market.

[0040] Optionally, the QR code migration volume of each consumer can be aggregated to obtain the overall QR code migration volume for the entire market. This overall QR code migration volume reflects the overall QR code migration situation in the market. For example, the total number of consumers (179,668 in total) can be aggregated. The data was aggregated to obtain the total number of scans of brand A in the first time period that were migrated to brand B in the second time period. Similarly, we can summarize the results. etc.

[0041] Step S104: Calculate the brand migration probability based on the total number of scan migrations.

[0042] Optionally, as can be seen from the above, there are multiple brands. The number of scans a consumer makes for each brand in the first time period may migrate to other brands in the second time period, or migrate from other brands to a certain brand. Therefore, the brand migration probability includes the migration probability (migration rate) and the migration probability (migration rate).

[0043] Since the total QR code migration volume can reflect the overall QR code migration situation in the market, the migration rate and emigration rate of each brand can be calculated using the total QR code migration volume, for example, the emigration rate α. AB The migration rate from brand A to brand B represents the probability that, in the first time period, the number of scans for brand A will switch to brand B in the second time period; the migration rate β... BD This indicates the probability that, in the second time period, the number of scans for brand D changed from the number of scans for brand B in the first time period to the number of scans for brand D.

[0044] Step S105: Calculate the mutual migration amount of brands based on the brand migration probability, the first sales data, and the second sales data.

[0045] Optionally, by using the brand migration probability and the sales data of each brand in the first and second time periods (i.e., the first sales data and the second sales data), the estimated migration amount between brands can be calculated, the estimated migration amount can be adjusted and optimized, and finally the actual migration amount (i.e., the mutual migration amount between brands) can be obtained.

[0046] In this embodiment, the method involves acquiring the first QR code scanning data of the target object in a first time period and the second QR code scanning data in a second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, where the first and second time periods are continuous. Based on the first and second QR code scanning data, the QR code migration amount for each target object is calculated. The total QR code migration amount is then aggregated to obtain the overall market QR code migration amount. Based on the overall QR code migration amount, the brand migration probability is calculated. Finally, based on the brand migration probability, the first sales data, and the second sales data, the inter-brand migration amount is calculated. This method analyzes the QR code migration of individual consumers (i.e., the target object) using their personal QR code scanning data, then aggregates the individual consumers' QR code migration data to obtain the overall market QR code migration data. Next, the consumer brand migration probability is calculated based on the overall market QR code migration data. Finally, using the brand migration probability and the actual sales of each brand, the inter-brand migration amount is calculated. This fully utilizes the real sales data of each brand, alleviating the problem of data lacking authenticity and representativeness. It solves the problem in related technologies where product sales cannot be used to measure consumer migration between different brands.

[0047] As an optional embodiment, after acquiring the first scan data of the target object in a first time period and the second scan data in a second time period, the method further includes:

[0048] Based on the first and second QR code data, the brands moving in and moving out are determined; based on the brands moving in and moving out, a first set of brands moving in and a first set of brands moving out are generated.

[0049] Optionally, assume that the consumer scanned a total of b brands in the first and second time periods, and the number of times the l-th (l = 1…b) brand was scanned in the first time period was p. l The number of times the l-th brand was scanned in the second time period was p′. l .

[0050] If p l >p′ l This indicates that the number of scans for this brand has decreased. Therefore, this brand is defined as a brand that has moved out, and the amount of this move-out is denoted as Δp. l =p l -p′ l If p l <p′ l This indicates that the number of scans for this brand has increased. We define this brand as a "migrated brand," and the migration volume is denoted as Δp. l =p′ l -p l .

[0051] The set of all brands that have relocated is defined as S. out ={l|p l >p′ l} (i.e., the first set of brands leaving), and the set of all brands moving in is defined as S. in ={l|p l <p′ l} (i.e., the first set of brands that migrate in). Simultaneously, the union of all migrating brands and all emigrating brands yields the set S of all brands. all =S in ∪S out .

[0052] For an individual consumer, an increase in the number of scans reflects a rise in their purchase preference for a particular brand over a certain period, while a decrease reflects a decrease in their purchase preference for a particular brand over a certain period. There is no situation where purchase preference for a particular brand both increases and decreases simultaneously. Therefore, the direction of brand migration for an individual consumer always shifts from brands with decreasing purchase preference to brands with increasing purchase preference, i.e., from the set of brands leaving S. out Towards the relocation of brand collection S in Migration. Furthermore, no single brand can simultaneously exist within the set of brands migrating out, S. outand the collection of brands that moved in S in It should be noted that some of the scans for a particular brand, such as brand A, in the first time period may remain on brand A in the second time period. For ease of representation, this application uses T. AA This represents the number of users who retain their QR code data, reflecting a certain level of consumer preference for brand A. It does not mean that brand A is both an inbound and outbound brand simultaneously. Therefore, it contradicts the statement above that "no single brand can simultaneously exist within the set of outbound brands S". out and the collection of brands that moved in S in There is no contradiction in the phrase "in the middle".

[0053] The scanning data for each consumer can be obtained from the first and second scanning data. Here, we assume that the first time period is time period t and the second scanning data is time period t+1. The scanning data of consumer i in time period t and time period t+1 are obtained, as shown in Table 2:

[0054] Table 2. Scanning data of a single consumer at two different time periods.

[0055]

[0056] The contents of Table 2 are as follows: Figure 2 As shown: During time period t, consumer i scanned brand A 3 times, brand B 5 times, and brand C 4 times; during time period t+1, consumer i scanned brand A 5 times, brand B 4 times, and brand D once. For consumer i, the total number of scans decreased from 12 in time period t to 10 in time period t+1. This decrease reflects a decline in their preference for purchasing cigarettes over a certain period. Analyzing the changes in this consumer's scanning behavior yields the first set of brands leaving the market, S. out = {B, C} and the first set of migrating brands S in ={A,D}.

[0057] In this embodiment of the application, by analyzing the scanning behavior of consumers in two different but consecutive time periods, each brand is divided into outgoing brands and incoming brands, thereby obtaining the first set of outgoing brands and the first set of incoming brands. By dividing each brand, a basis is provided for subsequent calculation of brand migration.

[0058] As an optional embodiment, the scanning migration amount for each target object is calculated based on the first scanning data and the second scanning data, including:

[0059] Based on the first and second barcode scanning data, the total outflow of all emigrating brands and the total inflow of all emigrating brands are obtained. The total outflow and inflow are compared. If the total outflow is greater than the total inflow, a first preset number of virtual emigrating brands are generated. If the total outflow is less than the total inflow, a second preset number of virtual outflow brands are generated. The virtual emigrating brands are added to the first set of emigrating brands to obtain the second set of emigrating brands. The virtual outflow brands are added to the first set of emigrating brands to obtain the second set of emigrating brands. Based on the first and second barcode scanning data, the barcode inflow volume for each emigrating brand in the second set of emigrating brands and the barcode outflow volume for each emigrating brand in the second set of emigrating brands are determined. Based on the second set of emigrating brands, the second set of emigrating brands, the barcode inflow volume, and the barcode outflow volume, a set of barcode migration equations is generated. Based on the first and second barcode scanning data, the set of barcode migration equations, and a preset solver, the barcode migration volume for each target object is calculated.

[0060] Optionally, if the k-th (k∈S) in This brand is a migrating brand, and its migration volume via QR code scanning Δp k It should be from other brands that migrated out, j (j∈S) out The migration amount Δp j For items transferred from elsewhere, the number of QR codes transferred from the outgoing brand j to the incoming brand k is recorded as T. jk ,satisfy:

[0061] The migration volume Δp represents the number of brands (k) migrated in via QR code scanning. k It equals the sum of the number of QR codes transferred from all brands that moved out to it.

[0062] Similarly, if the number of scanned items for brand j migrating out is Δp j This should be considered a transfer of inflow volume to other inflow brands, satisfying the following: The number of brands (j) that migrated out, represented by the scanned migration volume Δp, is the number of brands that migrated out. j It equals the sum of the number of QR codes transferred to all the brands that moved in.

[0063] The migration amount Δp in the above two equations j and immigration amount Δp k The amount transferred, T, can be calculated from the scanned data. jk Since it is an unknown quantity, by listing the above two equations for all inbound and outbound brands, we can obtain the following system of linear equations (hereinafter referred to as the system of equations):

[0064]

[0065] For consumer i, the system of equations has m+n equations and mn unknowns, where m=2 represents the number of brands moving in (brand A and brand D) and n=2 represents the number of brands moving out (brand B and brand C).

[0066] It is easy to see that the necessary and sufficient condition for this system of equations to have a solution is: This means the sum of the outflow volume of all brands equals the sum of the inflow volume of all brands. This condition is equivalent to the number of scans a consumer makes in the first time period being equal to the number of scans in the second time period. However, in the actual scan data sample of consumer i in this case, the number of scans made by consumer i in the two time periods is not equal: 12 scans in time period t and 10 scans in time period t+1, which fails to satisfy the necessary and sufficient condition for solving the above system of equations.

[0067] To solve the above system of equations, this embodiment introduces a first preset number, for example, 1 virtual inbound brand X and a second preset number, for example, 1 virtual outbound brand Y:

[0068] Based on the initial scan data, calculate the number of scans made by consumers within the first time period. That is, the total number of people leaving the country; based on the second set of QR code data, calculate the number of QR codes scanned by consumers in the second time period. That is, the total number of immigrants.

[0069] when At that time, add the virtual relocated brand X to the relocated brand set S. in The corrected notation for the influx of new brands is S' in =S in ∪{X}(S' in That is, the second set of brands that migrate in, while the set of brands that migrate out remains unchanged. For the sake of uniformity, this is denoted as S'. out =S out (S' out That is, the second set of brands leaving the market. At this point, the scan count of the virtual brand x reflects the number of scans lost by that consumer in the later time period compared to the previous time period, and its scan count is set as...

[0070] when At that time, the virtual relocating brand Y will be added to the relocating brand set S. out The corrected designation for the relocated brands is S' out =S out ∪{Y}, the migrated brand set remains unchanged, and for consistent description, it is denoted as S' in =S in At this point, the scan count of the virtual outgoing brand y reflects the additional scans made by that consumer in the later time period compared to the previous time period, and its scan count is set to...

[0071] When happens, the original system of equations has a solution, and the set of brands to be introduced and the set of brands to be removed remain unchanged. For unified description, the set of brands to be introduced is denoted as S’ in = in , and the set of brands to be removed is denoted as S’ out = out .

[0072] Combining the above three cases, in this case, the scanning volume of consumer i decreases from 12 times in the t time period to 10 times in the t+1 time period, the total scanning volume decreases, and the total removal volume of the brand removal set S out ={B, C} is The total introduction volume of the brand introduction set S in ={A, D} is That is Therefore, the brand removal set is modified to S′ out = out = {B, C}, and the brand introduction set S′ in = in = {A, D, X}. For all brand sets S′ all = all = {A, B, C, D, X}. After introducing the virtual brand X, at this time, the virtual brand X is the brand to be introduced. According to the first scanning data, the second scanning data and the content of Table 2, the scanning situation of this consumer is shown in Table 3:

[0073] Table 3 Scanning situation table of a single consumer after introducing the virtual brand X to be introduced

[0074]

[0075] According to the second brand introduction set S’ in , the second brand removal set S’ out and Table 3, the above system of equations can be corrected as:

[0076] (That is, the scanning migration system of equations)

[0077] After introducing the virtual brand X, the number of brands to be introduced m = 3, and the number of brands to be removed n = 2. The system of equations has m + n = 5 equations and mn = 6 unknowns, ensuring that the system of equations always has a solution.

[0078] However, when m + n < mn at this time, the solution of the system of equations is multiple solutions. In order to uniquely determine the migration volume T jk , the equation constraint condition is further set, that is, the removal volume Δp j of the brand to be removed is jk The larger, the larger its transfer volume T j [[ID=X]] jk ​They are directly proportional.

[0079] Based on the above information (including: first scan data, second scan data, scan migration equations, etc.), write code to construct an SMT solver, i.e., a preset solver (the SMT solver is used to check the satisfiability of the equations; the solver stops when it finds a feasible solution that satisfies all constraints) to solve for the migration amount T from the outgoing brand j to the incoming brand k. jk . Figure 3 This diagram illustrates brand migration for a single consumer across two different time periods, where T represents the migration amount between brands. Figure 3 As shown: During time period t, consumer i scanned the QR code for brand A 3 times, brand B 5 times, and brand C 4 times; during time period t+1, consumer i scanned the QR code for brand A 5 times, brand B 4 times, brand D once, and the virtual brand X twice. Figure 3 China T AA T BB T CC T represents the retention rates of brands A, B, and C, respectively. BA This represents the migration amount between brand B and brand A; similarly, T BD T BX T CA T CB T CX T AB T AD T AX This also indicates the amount of migration between brands, which will not be elaborated on here.

[0080] After the SMT solver calculates the migration variables between brands in the equation system, the migration matrix of consumer i is obtained (for ease of viewing the migration matrix, all brands are listed as both migrating and emigrating brands; in fact, brands B and C are emigrating brands, and brands A, D, and virtual brand X are migrating brands), as shown in Table 4:

[0081] Table 4 Migration Matrix for a Single Consumer

[0082]

[0083]

[0084] According to Table 4, the above T BA =1 / 3, T CX =5 / 3, not listed here. The values ​​on the diagonal in Table 4 represent the amount of data retained by the brand from one time period to the next. For example, the value "3" for brand A to brand A means that the amount of data retained by the consumer in the previous time period is 3 (including the above T). AA T BB TCC This can be interpreted as the consumer still retaining some preference for the brand. The value "0" in Table 4 indicates that the consumer neither migrated from one brand to another nor from another brand to the same brand during either of the two time periods, and there was no retention. The STM solver will find a feasible solution based on the system of equations, which will result in a large number of "0" values ​​in the migration matrix, which is a reasonable phenomenon.

[0085] Using the method described above, the number of QR code migrations for each consumer can be calculated.

[0086] In this embodiment, virtual inbound or virtual outbound brands are introduced according to three scenarios to generate a set of barcode migration equations. The SMT solver is then used to calculate the barcode migration amount of each consumer across all brands, providing a basis for subsequent calculation of the overall barcode migration amount of the market.

[0087] As an optional implementation, the total number of QR code migrations is aggregated to obtain the overall QR code migration volume for the entire market, including:

[0088] Based on the first and second scan data, determine the number of target users; based on the number of target users, the scan migration volume, and the first preset formula, obtain the total scan migration volume.

[0089] Optionally, in the first and second scan data, the number of consumers who scanned the codes is 179,668 (i.e., the target population). The scan migration amount for each consumer from the outgoing brand j to the incoming brand k is calculated using the method described above and denoted as... (i = 1, 2, ..., 179668).

[0090] Based on the number of target users and the number of QR code migrations And formula (1), i.e. the first preset formula, sums up the migration volume of all consumers to obtain the total market migration volume from brand j to brand k via barcode scanning.

[0091]

[0092] The migration matrix of 179,668 consumers (representing the total number of QR code scanning migrations) was calculated, as shown in Table 5 (taking 10 brands as an example):

[0093] Table 5 Consumer Migration Matrix

[0094]

[0095] According to Table 5, Not all of them are listed here.

[0096] In this embodiment of the application, the brand scanning migration information of individual consumers is summarized to obtain the overall brand scanning migration information of the market, which provides a basis for subsequent calculation of migration in and migration out rates.

[0097] As an optional embodiment, the brand migration probability includes the emigration rate corresponding to each emigration brand in the second emigration brand set and the emigration rate corresponding to each emigration brand in the second emigration brand set. The brand migration probability is calculated based on the total number of QR code migrations, including:

[0098] Based on the total QR code migration volume and the second set of emigrating brands, the total QR code volume and the QR code migration volume of each emigrating brand in the second set of emigrating brands are obtained for the first time period. Based on the second set of emigrating brands, the second set of emigrating brands, preset conditions, the total QR code volume, the QR code migration volume of the first brand, and the second preset formula, the emigration rate is calculated. The preset conditions are used to confirm the brand consistency relationship between emigrating and emigrating brands. Based on the total QR code migration volume and the second set of emigrating brands, the total QR code volume and the QR code migration volume of each emigrating brand in the second set of emigrating brands are obtained for the second time period. Based on the second set of emigrating brands, the second set of emigrating brands, preset conditions, the total QR code volume, the QR code migration volume of the second brand, and the third preset formula, the emigration rate is calculated.

[0099] Optionally, based on the total number of QR code migrations and the second set of brands migrating out, S' out , thus obtaining S' out For each brand relocating, such as brand j, the total number of QR codes scanned in the first time period is represented by p. j And the number of QR code migrations of the first brand, for example Define the emigration rate of emigrating brand j to emigrating brand k as:

[0100]

[0101] Where, k∈S' in ,j∈S' out emigration rate α jk This represents the probability that, within the total number of scans of brand j in the first time period, the scans will switch to brand k in the second time period (α = k). jk This refers to the first retention rate, which to some extent reflects the proportion of sales of brand j in the first time period that are converted into sales of brand k in the second time period.

[0102] According to the second set of relocated brands S' in The second group of brands to relocate, S' out Preset conditions, first total number of scans, for example, p j The number of first-brand QR code migrations, for example And formula (2), which is the second preset formula, calculates the emigration rate between each emigrating brand and each emigrating brand, for example, α. jk The preset condition is to determine whether j equals k, that is, to determine whether j and k refer to the same brand, which is also the condition for α. jk Does this refer to the first retention rate?

[0103] After calculation, the emigration rate of emigrating brand j to emigrating brand k can be obtained, as shown in Table 6 (taking 10 brands as an example):

[0104] Table 6. Migration Rate Matrix

[0105]

[0106]

[0107] According to Table 6, α BA =0.182441597, α CB =0.022469069, not listed here.

[0108] Based on the above total QR code migration volume and the second set of inbound brands S' in , thus obtaining S' in For each brand that migrates in, e.g., brand k, the total number of QR codes scanned in the second time period, e.g., p′ k Second brand QR code migration volume, for example (Here, the migration volume of the first brand's QR code scanning and the migration volume of the second brand's QR code scanning are both...) For example, although the migration volume of the first brand and the migration volume of the second brand are independent (hence the use of "first" and "second" for distinction), the migration rate from the inbound brand k to the outbound brand j is defined as:

[0109]

[0110] Where, k∈S' in ,j∈S' out Inflow rate β jk This represents the probability that, within the total number of scans for brand k in the second time period, the scanned brand j in the first time period switched to scanned brand k (when j = k, β). jk This refers to the second retention rate, which to some extent reflects the proportion of sales of brand k in the market during the second time period that were converted from brand j (scanned during the first time period) to brand k.

[0111] According to the second set of relocated brands S' in The second group of brands to relocate, S' out Preset conditions, second total number of scans, for example p′ kThe second brand's QR code migration volume and formula (3), i.e., the third preset formula, calculate the migration rate between all inbound brands and all outbound brands, for example, β. jk Here, the preset condition is also to determine whether j equals k, that is, whether j and k refer to the same brand. In this case, it is also to determine β. jk Does this refer to the second retention rate?

[0112] After calculation, the migration rate from inbound brand k to outbound brand j can be obtained as shown in Table 7 (taking 10 brands as an example):

[0113] Table 7 Immigration Rate Matrix

[0114]

[0115]

[0116] According to Table 7, β BA =0.005622144, β CB =0.028012026, not listed here.

[0117] In this embodiment of the application, the probability of consumers migrating to each brand is calculated based on the overall market scanning migration situation, which provides a basis for subsequently using the brand migration probability and the actual sales volume of each brand to estimate the migration volume of each brand.

[0118] As an optional embodiment, the mutual migration amount between brands is calculated based on the brand migration probability, the first sales data, and the second sales data, including:

[0119] Based on the first sales data and the first intermediate migration amount, the intermediate emigration rate is calculated, where the intermediate emigration rate is a dynamic value in the process of determining the true emigration rate; based on the second sales data and the second intermediate migration amount, the intermediate emigration rate is calculated, where the intermediate emigration rate is a dynamic value in the process of determining the true emigration rate; based on the emigration rate, intermediate emigration rate, emigration rate, and intermediate emigration rate, an evaluation function is obtained, where the evaluation function is used to adjust the intermediate emigration rate and intermediate emigration rate; constraints are obtained, where the constraints are used to constrain the intermediate emigration rate and intermediate emigration rate; based on the evaluation function and constraints, the true emigration rate and true emigration rate are obtained; based on the first sales data, the second sales data, the true emigration rate, and the true emigration rate, the inter-brand migration amount is obtained.

[0120] Optionally, based on the first sales data, the sales volume of brand j relocating in the first time period can be obtained as L. j Based on the second sales data, the sales volume of the relocated brand k in the second time period is L'. k ,k∈S' in ,j∈S'out The first intermediate migration is This represents the migration amount from brand k to brand j, and the second intermediate migration amount is... This represents the migration amount from brand j to brand k. Because it cannot be determined at this point... and The specific values ​​are represented by the first intermediate migration amount and the second intermediate migration amount, respectively. and They are all variables.

[0121] The brand's true migration rate should be as close as possible to the migration rate calculated using barcode scanning data. The true migration rate can be calculated using the first sales volume and the first intermediate migration volume. Using the second sales volume and the second intermediate migration volume, the true migration rate can be calculated. Because the true emigration rate cannot be determined at this time. The specific value is not given, so it is temporarily referred to as the intermediate emigration rate; similarly, the true emigration rate is... Since the exact value is uncertain, it is temporarily referred to as the intermediate immigration rate. and These are all dynamically changing values.

[0122] Based on the migration rate α calculated using the barcode scanning data mentioned above... jk The migration rate β calculated using the above-mentioned barcode scanning data jk Intermediate migration rate Intermediate immigration rate The actual migration rate of a brand should be as close as possible to the migration rate calculated using barcode scanning data. Taking into account both the inflow rate and intermediate inflow rate, and the outflow rate and intermediate outflow rate, the sum of squared errors is used to measure the difference between the actual migration rate and the migration rate calculated using barcode scanning data. The evaluation function F is shown in formula (4):

[0123]

[0124] Where, ∈S' in ,j∈S' out In formula (4) Since they are all variables, they are referred to as intermediate emigration rate and intermediate emigration rate, respectively.

[0125] Solving for the mutual migration of brands using the evaluation function is an optimization problem. To solve this problem, constraints need to be added, such as: the migration amount of a brand leaving cannot exceed its own sales in the previous period, and the migration amount of a brand entering cannot exceed its sales in the next period.

[0126] Based on the above conditions, the optimization problem is constructed as follows:

[0127] Constraints

[0128] Solving this optimization problem yields a set of definite... This involves calculating the true migration rate between different brands in the market: based on constraints, finding a set of... To minimize the value of F, then the group This is the true migration rate that best reflects the actual situation. At this point, the migration rate in this group can be... Viewed as the true emigration rate, the group can be... This is considered the true immigration rate.

[0129] According to the above It can be known According to the above It can be known Therefore, based on the actual migration rate and the first sales data mentioned above, a definite result can be calculated. The exact figure can be calculated based on the above actual migration rate and second sales data. That is, the mutual migration volume of brands is obtained based on the first sales data, the second sales data, the actual migration rate, and the actual migration rate.

[0130] In this embodiment, an intermediate migration rate is calculated based on sales data and intermediate migration volume. An evaluation function is constructed by combining the intermediate migration rate with the brand migration rate calculated using barcode scanning data. The true migration rate for each brand is then calculated based on constraints, leading to the calculation of the mutual migration volume between brands. This achieves full utilization of the true sales data of each brand, alleviating the problem of data lacking authenticity and representativeness. It solves the problem in existing technologies where product sales cannot be used to measure consumer migration between different brands.

[0131] As an optional embodiment, the constraints include a first constraint and a second constraint. Obtaining the constraints includes:

[0132] Based on the first sales data, the second set of brands moving in, and the intermediate migration volume, the first constraint is obtained; based on the second sales data, the second set of brands moving out, and the intermediate migration volume, the second constraint is obtained.

[0133] Optionally, based on the first sales data, the sales volume of brand j relocating in the first time period can be obtained as L. j According to L j The second group of brands to relocate, S' in and intermediate migration amount R jk The first constraint is: the sum of the migration volumes of individual brands cannot exceed the total sales volume of that brand in the first time period, i.e., ∑ k R jk <Lj ,k∈S' in .

[0134] Based on the second sales data, the sales volume of the relocated brand k in the second time period can be calculated as L′. k According to L′ k The second group of brands to relocate, S' out and intermediate migration amount R jk This leads to the second constraint: the sum of the migration volume of individual brands cannot exceed the total sales volume of that brand in the second time period, i.e., ∑ j R jk <L’ k ,j∈S' out .

[0135] Based on the above constraints, the optimization problem can be adjusted to:

[0136]

[0137] In this embodiment of the application, by setting a first constraint and a second constraint, the intermediate migration amount is constrained, making the solution of the above optimization problem more in line with the actual situation and improving the accuracy of the inter-brand migration amount.

[0138] As an optional embodiment, Figure 4 This is a flowchart illustrating another optional method for calculating brand migration according to an embodiment of this application, the method comprising:

[0139] The analysis involves analyzing the scanning data to track individual consumers' brand migration patterns; summarizing individual consumers' brand migration patterns to obtain the overall market scanning migration pattern; calculating the probability of consumer brand migration based on the scanning migration pattern; and using the brand migration probability and the sales volume of each brand to estimate the migration volume of each brand.

[0140] Optionally, for specific implementation methods of this application, please refer to the above embodiments of this application, which will not be repeated here.

[0141] In this embodiment, analyzing individual consumer QR code scanning data provides a clear understanding of a consumer's brand migration patterns across different brands. The brand migration data for each individual consumer is then aggregated to obtain the overall market migration data. Next, the probability of consumer brand migration is calculated based on the overall market QR code scanning migration data. Finally, using the brand migration probability and the actual sales volume of each brand, the mutual migration volume between brands is estimated. Subsequently, brand cultivation strategies can be formulated based on the mutual migration volume to increase market share. This solves the problem in related technologies where product sales volume cannot be used to estimate consumer migration patterns between different brands.

[0142] According to another aspect of the embodiments of this application, a brand mutual migration calculation apparatus for implementing the above-described brand mutual migration calculation method is also provided. Figure 5 This is a structural block diagram of an optional brand migration calculation device according to an embodiment of this application, such as... Figure 5 As shown, the device may include:

[0143] The acquisition module 501 is used to acquire the first scan data of the target object in the first time period and the second scan data in the second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, wherein the first time period and the second time period are consecutive.

[0144] The first calculation module 502 is used to calculate the scanning migration amount of each target object based on the first scanning data and the second scanning data.

[0145] The summary module 503 is used to summarize the scanning migration volume to obtain the overall scanning migration volume of the market.

[0146] The second calculation module 504 is used to calculate the brand migration probability based on the total number of scan migrations.

[0147] The third calculation module 505 is used to calculate the mutual migration amount of brands based on the brand migration probability, the first sales data, and the second sales data.

[0148] The modules described above analyze individual consumer QR code scanning data (i.e., the target audience) to determine individual consumer migration patterns. Then, the individual consumer migration patterns are aggregated to obtain the overall market migration pattern. Next, the probability of consumer brand migration is calculated using the overall market migration pattern. Finally, the inter-brand migration volume is calculated using the brand migration probability and the actual sales volume of each brand. This approach fully utilizes real sales data for each brand, alleviating the problem of data lacking authenticity and representativeness. It solves the problem in related technologies that cannot use product sales volume to measure consumer migration between different brands.

[0149] As an optional embodiment, the device further includes: a determining module, configured to determine the inbound brand and the outbound brand based on the first barcode data and the second barcode data; and a generating module, configured to generate a first inbound brand set and a first outbound brand set based on the inbound brand and the outbound brand.

[0150] As an optional embodiment, the first calculation module includes: a first obtaining unit, configured to obtain the total outflow of all outflowing brands and the total inflow of all inflowing brands based on the first and second barcode scanning data; a comparison unit, configured to compare the total outflow and total inflow; a first generating unit, configured to generate a first preset number of virtual inflowing brands when the total outflow is greater than the total inflow; a second generating unit, configured to generate a second preset number of virtual outflowing brands when the total outflow is less than the total inflow; a first adding unit, configured to add the virtual inflowing brands to the first inflowing brand set to obtain a second inflowing brand set; and a second adding unit... The system comprises the following components: an input unit for adding virtual emigrating brands to a first emigrating brand set to obtain a second emigrating brand set; a first determination unit for determining the scanned migration volume for each emigrating brand in the second input brand set and the scanned migration volume for each emigrating brand in the second emigrating brand set based on the first and second scanned data; a third generation unit for generating a set of scanned migration equations based on the second input brand set, the second emigrating brand set, the scanned migration volume, and the scanned migration volume; and a first calculation unit for calculating the scanned migration volume of each target object based on the first and second scanned data, the scanned migration equations, and a preset solver.

[0151] As an optional embodiment, the aggregation module includes: a second determining unit, used to determine the number of target objects based on the first scanning data and the second scanning data; and a second obtaining unit, used to obtain the total scanning migration amount based on the number of target objects, the scanning migration amount, and a first preset formula.

[0152] As an optional embodiment, the brand migration probability includes the emigration rate corresponding to each emigration brand in the second emigration brand set and the migration rate corresponding to each migration brand in the second emigration brand set. The second calculation module includes: a third obtaining unit, used to obtain the first total scan volume and the first brand scan migration volume corresponding to each emigration brand in the second emigration brand set in the first time period based on the total scan migration volume and the second emigration brand set; a second calculation unit, used to calculate the emigration rate based on the second emigration brand set, the second emigration brand set, preset conditions, the first total scan volume, the first brand scan migration volume, and a second preset formula, wherein the preset conditions are used to confirm the brand consistency relationship between the emigration brand and the emigration brand; a fourth obtaining unit, used to obtain the second total scan volume and the second brand scan migration volume corresponding to each migration brand in the second emigration brand set in the second time period based on the total scan migration volume and the second emigration brand set; and a third calculation unit, used to calculate the migration rate based on the second emigration brand set, the second emigration brand set, preset conditions, the second total scan volume, the second brand scan migration volume, and a third preset formula.

[0153] As an optional embodiment, the third calculation module includes: a fifth obtaining unit, used to calculate the intermediate emigration rate based on the first sales data and the first intermediate migration amount, wherein the intermediate emigration rate is a dynamic change value in the process of determining the true emigration rate; a sixth obtaining unit, used to calculate the intermediate emigration rate based on the second sales data and the second intermediate migration amount, wherein the intermediate emigration rate is a dynamic change value in the process of determining the true emigration rate; a seventh obtaining unit, used to obtain an evaluation function based on the emigration rate, the intermediate emigration rate, the emigration rate, and the intermediate emigration rate, wherein the evaluation function is used to adjust the intermediate emigration rate and the intermediate emigration rate; an obtaining unit, used to obtain constraint conditions, wherein the constraint conditions are used to constrain the intermediate emigration rate and the intermediate emigration rate; an eighth obtaining unit, used to obtain the true emigration rate and the true emigration rate based on the evaluation function and the constraint conditions; and a ninth obtaining unit, used to obtain the brand mutual migration amount based on the first sales data, the second sales data, the true emigration rate, and the true emigration rate.

[0154] As an optional embodiment, the acquisition unit includes: a first acquisition submodule, used to obtain a first constraint condition based on the first sales data, the second set of brands migrating in, and the intermediate migration amount; and a second acquisition submodule, used to obtain a second constraint condition based on the second sales data, the second set of brands migrating out, and the intermediate migration amount.

[0155] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the above embodiments.

[0156] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described method for calculating inter-brand migration is also provided. The electronic device may be a server, a terminal, or a combination thereof.

[0157] Figure 6 This is a structural block diagram of an optional electronic device according to an embodiment of this application, such as... Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604. The processor 601, communication interface 602, and memory 603 communicate with each other via the communication bus 604.

[0158] Memory 603 is used to store computer programs;

[0159] When processor 601 executes a computer program stored in memory 603, it performs the following steps:

[0160] Acquire the first scan data of the target object in the first time period and the second scan data in the second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, wherein the first time period and the second time period are consecutive.

[0161] Calculate the scanning migration amount for each target object based on the first and second scanning data;

[0162] By summarizing the QR code migration volume, we can obtain the overall QR code migration volume for the entire market.

[0163] Calculate the brand migration probability based on the total number of QR code migrations;

[0164] The mutual migration volume between brands is calculated based on the brand migration probability, the first sales data, and the second sales data.

[0165] Optionally, in this embodiment, the communication bus can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0166] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0167] The memory may include RAM, or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0168] As an example, such as Figure 6 As shown, the memory 603 may include, but is not limited to, the acquisition module 501, the first calculation module 502, the summarization module 503, the second calculation module 504, and the third calculation module 505 in the aforementioned brand migration amount calculation device. Furthermore, it may include, but is not limited to, other module units in the aforementioned brand migration amount calculation device, which will not be elaborated upon in this example.

[0169] The processors mentioned above can be general-purpose processors, including but not limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; they can also be DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0170] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.

[0171] Those skilled in the art will understand that Figure 6 The structure shown is for illustrative purposes only. The device implementing the above method for calculating inter-brand migration can be a terminal device, such as a smartphone (e.g., Android phone, iOS phone), tablet computer, PDA, mobile Internet Devices (MID), PAD, etc. Figure 6 This does not limit the structure of the aforementioned electronic devices. For example, the terminal device may also include components that are more advanced than those described above. Figure 6 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 6 The different configurations shown.

[0172] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, ROM, RAM, disk or optical disk, etc.

[0173] According to another aspect of the embodiments of this application, a storage medium is also provided. Optionally, in this embodiment, the storage medium can be used to store program code for executing a method for calculating inter-brand migration amounts.

[0174] Optionally, in this embodiment, the storage medium may be located on at least one of the network devices in the network shown in the above embodiment.

[0175] Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:

[0176] Acquire the first scan data of the target object in the first time period and the second scan data in the second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, wherein the first time period and the second time period are consecutive.

[0177] Calculate the scanning migration amount for each target object based on the first and second scanning data;

[0178] By summarizing the QR code migration volume, we can obtain the overall QR code migration volume for the entire market.

[0179] Calculate the brand migration probability based on the total number of QR code migrations;

[0180] The mutual migration volume between brands is calculated based on the brand migration probability, the first sales data, and the second sales data.

[0181] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated in this embodiment.

[0182] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, ROMs, RAMs, portable hard drives, magnetic disks, or optical disks.

[0183] In the description of this specification, the references to terms such as "this embodiment," "an embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0184] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.

Claims

1. A method for calculating brand migration, characterized in that, The method includes: Acquire the first scan data of the target object in the first time period and the second scan data in the second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, wherein the first time period and the second time period are consecutive. Based on the first and second scan data, the brands moving in and moving out are determined; Based on the inbound brands and the outbound brands, generate a first inbound brand set and a first outbound brand set; Based on the first scan data and the second scan data, calculate the scan migration amount for each target object; By summing up the aforementioned QR code migration volume, the total QR code migration volume of the market is obtained; Calculate the brand migration probability based on the total number of QR code scans migrated. The mutual migration amount of brands is calculated based on the brand migration probability, the first sales data, and the second sales data. The step of calculating the migration amount of each target object based on the first and second scan data includes: obtaining the total migration amount of all the outgoing brands and the total migration amount of all the incoming brands based on the first and second scan data; comparing the total migration amount and the total migration amount; generating a first preset number of virtual incoming brands when the total migration amount is greater than the total migration amount; generating a second preset number of virtual outgoing brands when the total migration amount is less than the total migration amount; and adding the virtual incoming brands to the first set of incoming brands to obtain a second set of incoming brands. The virtual emigrating brands are added to the first emigrating brand set to obtain the second emigrating brand set; based on the first and second barcode scanning data, the barcode migration in amount corresponding to each emigrating brand in the second emigrating brand set and the barcode migration out amount corresponding to each emigrating brand in the second emigrating brand set are determined; based on the second emigrating brand set, the second emigrating brand set, the barcode migration in amount, and the barcode migration out amount, a set of barcode migration equations is generated; based on the first and second barcode scanning data, the set of barcode migration equations, and a preset solver, the barcode migration amount of each target object is calculated.

2. The method according to claim 1, characterized in that, The total number of QR code migrations is summarized to obtain the overall QR code migration volume of the market, including: The number of target individuals is determined based on the first and second scan data. The total number of scans is obtained based on the number of target users, the amount of QR code migration, and the first preset formula.

3. The method according to claim 2, characterized in that, The brand migration probability includes the emigration rate corresponding to each emigration brand in the second emigration brand set and the emigration rate corresponding to each emigration brand in the second emigration brand set. The step of calculating the brand migration probability based on the total scan migration volume includes: Based on the total scanning migration volume and the second set of brands that migrated out, the first total scanning volume and the first brand scanning migration volume for each of the brands that migrated out in the second set of brands in the first time period are obtained. The migration rate is calculated based on the second set of brands moving in, the second set of brands moving out, preset conditions, the first total number of QR codes scanned, the first brand migration amount scanned and the second preset formula, wherein the preset conditions are used to confirm the brand consistency relationship between the brands moving in and the brands moving out. Based on the total scanning migration volume and the second set of migrating brands, the second total scanning volume and the second brand scanning migration volume for each migrating brand in the second set of migrating brands in the second time period are obtained. The migration rate is calculated based on the second set of brands moving in, the second set of brands moving out, the preset conditions, the second total number of QR codes scanned, the second number of brand QR code migrations, and the third preset formula.

4. The method according to claim 3, characterized in that, The step of calculating the mutual migration amount of brands based on the brand migration probability, the first sales data, and the second sales data includes: Based on the first sales data and the first intermediate migration amount, the intermediate migration rate is calculated, wherein the intermediate migration rate is a dynamic change value in the process of determining the true migration rate; Based on the second sales data and the second intermediate migration amount, the intermediate migration rate is calculated, wherein the intermediate migration rate is a dynamic value in the process of determining the true migration rate; An evaluation function is obtained based on the emigration rate, the intermediate emigration rate, the emigration rate, and the intermediate emigration rate, wherein the evaluation function is used to adjust the intermediate emigration rate and the intermediate emigration rate; Obtain constraints, wherein the constraints are used to constrain the intermediate migration rate and the intermediate migration rate; The true immigration rate and the true emigration rate are obtained based on the evaluation function and the constraints. The brand migration volume is obtained based on the first sales data, the second sales data, the actual migration rate, and the actual migration rate.

5. The method according to claim 4, characterized in that, The constraints include a first constraint and a second constraint, and obtaining the constraints includes: The first constraint is obtained based on the first sales data, the second set of brands migrating in, and the intermediate migration amount; The second constraint is derived from the second sales data, the second set of brands migrating out, and the intermediate migration amount.

6. A device for calculating the mutual migration of brand information, characterized in that, include: The acquisition module is used to acquire the first scan data of the target object in a first time period and the second scan data in a second time period, as well as the first sales data of each brand in the first time period and the second sales data in the second time period, wherein the first time period and the second time period are consecutive. The determination module is used to determine the brands moving in and moving out based on the first and second barcode scanning data. The generation module is used to generate the first set of brands that migrate in and the first set of brands that migrate out, based on the brands that migrate in and the brands that migrate out. The first calculation module is used to calculate the scanning migration amount of each target object based on the first scanning data and the second scanning data; The aggregation module is used to aggregate the QR code migration volume to obtain the overall QR code migration volume of the market. The second calculation module is used to calculate the brand migration probability based on the total number of scan migrations. The third calculation module is used to calculate the mutual migration amount of brands based on the brand migration probability, the first sales data, and the second sales data. The first calculation module includes: a first obtaining unit, configured to obtain the total outflow of all the outflowing brands and the total inflow of all the inflowing brands based on the first scanned data and the second scanned data; a comparison unit, configured to compare the total outflow and the total inflow; a first generating unit, configured to generate a first preset number of virtual inflowing brands when the total outflow is greater than the total inflow; a second generating unit, configured to generate a second preset number of virtual outflowing brands when the total outflow is less than the total inflow; a first adding unit, configured to add the virtual inflowing brands to the first inflowing brand set to obtain a second inflowing brand set; and a second adding unit, configured to add the virtual inflowing brands to the first inflowing brand set to obtain a second inflowing brand set. A virtual emigration brand is added to the first emigration brand set to obtain a second emigration brand set; a first determining unit is used to determine the scan migration amount corresponding to each emigration brand in the second emigration brand set and the scan migration amount corresponding to each emigration brand in the second emigration brand set based on the first scan data and the second scan data; a third generating unit is used to generate a set of scan migration equations based on the second emigration brand set, the second emigration brand set, the scan migration amount, and the scan migration amount; a first calculating unit is used to calculate the scan migration amount of each target object based on the first scan data, the second scan data, the scan migration equations, and a preset solver.

7. An electronic device comprising a processor, a communication interface, a memory, and a communication bus, wherein, The processor, the communication interface, and the memory communicate with each other via the communication bus, characterized in that... The memory is used to store computer programs; The processor is configured to perform the steps of the method described in any one of claims 1 to 5 by running the computer program stored in the memory.

8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data processing method and device

    CN109902896A