Data processing method and apparatus therefor

CN116467533BActive Publication Date: 2026-09-18BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310363721.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2026-09-18
Estimated Expiration
2043-04-06

AI Technical Summary

Technical Problem

然而,在推荐内容时缺乏对用户迁移因素的考虑

Benefits of technology

[0025] The technical solutions provided by the embodiments of this disclosure bring at least the following beneficial effects: real-time determination of the user's regional location based on the user's location information enables the user to obtain relevant recommended content in the area they are in, thereby improving the content recommendation experience for migrating users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116467533B_ABST
    Figure CN116467533B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data processing method and apparatus thereof. A data processing method can include: when a user enables a target application, acquiring current area information of the user; determining whether to apply a migration strategy based on the current area information, wherein the migration strategy is that the user can acquire content related to the current area information when using the target application; and in a case where it is determined to apply the migration strategy, sending the content related to the current area information based on the migration strategy. The present disclosure improves the content recommendation experience of the migrated user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to a data processing method, a data processing apparatus, an electronic device, and a storage medium. Background Technology

[0002] With the development of application technologies, communication networks such as the Internet allow users to enjoy desired content from a vast amount of available material. Due to the enormous quantity of available content, including increasingly diverse media content (such as audio, video, and online novels), various recommendation technologies have emerged. However, these technologies often lack consideration for user migration factors when recommending content. Summary of the Invention

[0003] This disclosure provides a data processing method and apparatus to at least address the problem of optimizing user recommendation content in the event of user migration.

[0004] According to a first aspect of the present disclosure, a data processing method is provided, the method comprising: when a user activates a target application, obtaining the user's current region information; determining whether to apply a migration strategy based on the current region information, wherein the migration strategy enables the user to obtain content related to the current region information when using the target application; and if it is determined that the migration strategy should be applied, sending the content related to the current region information based on the migration strategy.

[0005] As an example, determining whether to apply a migration strategy based on the current region information includes: if the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is resident region information, the migration strategy is not applied.

[0006] As an example, determining whether to apply a migration strategy based on the current region information includes: if the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is not resident region information, the migration strategy is applied.

[0007] As an example, determining whether to apply a migration strategy based on the current region information includes: if the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is consistent with the previous region information, determining whether the migration strategy corresponding to the previous region information has been applied and whether it has expired, and determining whether to apply the migration strategy based on the determination result.

[0008] As an example, determining whether to apply a migration strategy based on the current region information includes: if the user's previous region information is cached and the current user request is not the first user request after the target application is enabled, determining whether the migration strategy corresponding to the previous region information has been applied and whether it has expired, and determining whether to apply the migration strategy based on the determination result.

[0009] As an example, determining whether to apply the migration strategy based on the determination result includes: applying the migration strategy if the migration strategy corresponding to the previous area information has been applied and has not expired; and not applying the migration strategy if the migration strategy corresponding to the previous area information has not been applied or has expired.

[0010] As an example, determining whether to apply a migration strategy based on the current region information includes: applying the migration strategy if the user's previous region information is not cached.

[0011] As an example, the method further includes: not applying the migration strategy if the location information used to determine the current area information is not valid data.

[0012] As an example, the method further includes: not applying the migration strategy if the current region information is not valid region information.

[0013] According to a second aspect of the present disclosure, a data processing apparatus is provided, the apparatus including: a data acquisition module configured to acquire the user's current region information when the user activates a target application; a determination module configured to determine whether to apply a migration strategy based on the current region information, wherein the migration strategy is that the user can obtain content related to the current region information when using the target application; and a processing module configured to send the content related to the current region information based on the migration strategy if it is determined that the migration strategy should be applied.

[0014] As an example, the determination module is configured to: if the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is resident region information, the migration strategy is not applied.

[0015] As an example, the determination module is configured to: if the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is not resident region information, apply the migration strategy.

[0016] As an example, the determination module is configured to: determine whether the migration strategy corresponding to the previous region information has been applied and whether it has expired, given that the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is consistent with the previous region information; and determine whether to apply the migration strategy based on the determination result.

[0017] As an example, the determination module is configured to: determine whether the migration policy corresponding to the previous region information has been applied and whether it has expired, when the user's previous region information is cached and the current user request is not the first user request after the target application is enabled, and determine whether to apply the migration policy based on the determination result.

[0018] As an example, the determination module is configured to: apply the migration policy if the migration policy corresponding to the previous area information is applied and has not expired; and not apply the migration policy if the migration policy corresponding to the previous area information is not applied or has expired.

[0019] As an example, the determination module is configured to apply the migration strategy if the user's previous region information is not cached.

[0020] As an example, the determination module is configured to not apply the migration strategy if the location information used to determine the current area information is not valid data.

[0021] As an example, the determination module is configured to not apply the migration strategy if the current region information is not valid region information.

[0022] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device may include: at least one processor; at least one memory storing computer-executable instructions, wherein the computer-executable instructions, when executed by the at least one processor, cause the at least one processor to perform the data processing method as described above.

[0023] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores instructions which, when executed by at least one processor, cause the at least one processor to perform the data processing method described above.

[0024] According to a fifth aspect of the present disclosure, a computer program product is provided, wherein instructions in the computer program product are executed by at least one processor in an electronic device to perform the data processing method as described above.

[0025] The technical solutions provided by the embodiments of this disclosure bring at least the following beneficial effects: real-time determination of the user's regional location based on the user's location information enables the user to obtain relevant recommended content in the area they are in, thereby improving the content recommendation experience for migrating users.

[0026] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0027] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0028] Figure 1 This is a diagram illustrating the hardware environment for data processing according to embodiments of the present disclosure;

[0029] Figure 2 This is a flowchart of a data processing method according to an embodiment of the present disclosure;

[0030] Figure 3 This is a schematic diagram of the data processing flow according to an embodiment of the present disclosure;

[0031] Figure 4 This is a block diagram of a data processing apparatus according to embodiments of the present disclosure;

[0032] Figure 5 Block diagram of an electronic device according to embodiments of the present disclosure.

[0033] Throughout the accompanying drawings, it should be noted that the same reference numerals are used to denote the same or similar elements, features, and structures. Detailed Implementation

[0034] The following description, provided with reference to the accompanying drawings, is intended to aid in a full understanding of embodiments of the present disclosure as defined by the claims and their equivalents. Various specific details are included to aid understanding, but these details are to be considered exemplary only. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Furthermore, for clarity and brevity, descriptions of well-known functions and structures are omitted.

[0035] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure 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 disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following examples do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0036] It should be noted that the phrase "at least one of several items" in this disclosure refers to three parallel cases: "any one of the several items", "a combination of any number of the several items", and "all of the several items". For example, "including at least one of A and B" includes the following three parallel cases: (1) including A; (2) including B; (3) including A and B. As another example, "performing at least one of step one and step two" indicates the following three parallel cases: (1) performing step one; (2) performing step two; (3) performing both step one and step two.

[0037] Currently, in content recommendation, related technologies lack real-time judgment and processing of user migration, even if migrating users can access relevant content from their current location. The inventors have discovered that refined judgment of user migration can improve recommended content and enhance user experience. Therefore, this disclosure optimizes recommended content through real-time judgment of migrating users.

[0038] In the following, the methods, apparatus and systems of this disclosure will be described in detail with reference to the accompanying drawings, according to various embodiments of this disclosure.

[0039] Figure 1 This is a diagram illustrating the hardware environment for data processing according to embodiments of the present disclosure.

[0040] Reference Figure 1 The hardware environment 100 includes a terminal 110 (client) and a server 120 (server).

[0041] Terminal 110 is the user's terminal, which can be at least one of a smartphone, tablet, laptop, and desktop computer. Although only one terminal 110 is shown for illustration in this embodiment, those skilled in the art will understand that the number of terminals can be one or more. This disclosure does not limit the number or type of terminals.

[0042] Terminal 110 may have a target application installed, used to send various data or requests to server 120. Terminal 110 may collect various information about itself, such as GPS coordinate data and geographical location information.

[0043] Terminal 110 can connect to server 120 via a wireless network, enabling data exchange between terminal 110 and server 120. For example, the network may include a local area network (LAN), a wide area network (WAN), a wireless link, an intranet, the Internet, or a combination thereof.

[0044] Server 120 can be a server used to parse and process received information. For example, server 120 may include interfaces, databases, displays, and processors. The above examples are merely illustrative, and this disclosure is not limited thereto. Server 120 can receive various data from terminal 110 and analyze and calculate the received data. For example, when the target application is enabled, terminal 110 can report its collected GPS coordinate data or IP address data to server 120, so that server 120 can determine whether to apply migration strategies to terminal 110, whether to send local related recommended content to terminal 110, etc., based on the reported data. In this way, users of terminal 110 can obtain relevant content from the migration location, improving the content recommendation experience for migrating users.

[0045] Figure 2 This is a flowchart of a data processing method according to an embodiment of the present disclosure. Figure 2 The data processing method can be executed by server 120.

[0046] Reference Figure 2 In step S201, when the user activates the target application, the user's current region information is obtained. For example, when the user opens the target application (such as a short video application), the terminal can send the user's GPS data and / or Internet Protocol (IP) address data to the server. The server can obtain the user's GPS location information and / or IP address data. The user's district / county information (i.e., region information) can be obtained through valid GPS latitude and longitude information. The district / county information can refer to the Gaode Map standard and use a six-digit code of administrative division as the identifier.

[0047] In step S202, it is determined whether to apply a migration strategy based on the current region information. The migration strategy ensures that the user can access content related to the current region information when using the target application. A migration strategy can be configured on the server side. When it is determined that the migration strategy is enabled, relevant recommended content about the user's current location can be sent to the terminal when the user uses the target application. In this way, the user can access locally relevant content.

[0048] As an example, if the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is resident region information, the migration strategy will not be applied.

[0049] If the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is not resident region information, then the migration strategy is applied.

[0050] If the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is consistent with the previous region information, determine whether the migration policy corresponding to the previous region information has been applied and whether it has expired, and determine whether to apply the migration policy based on the determination results.

[0051] If the user's previous region information is cached, and the current user request is not the first user request after the target application is enabled, determine whether the migration policy corresponding to the previous region information has been applied and whether it has expired, and determine whether to apply the migration policy based on the determination results.

[0052] If a migration policy corresponding to the previous area information has been applied and has not expired, the migration policy shall be applied; if a migration policy corresponding to the previous area information has not been applied or has expired, the migration policy shall not be applied.

[0053] Apply the migration strategy if the user's previous region information is not cached.

[0054] For example, it can be determined whether the user's most recent district / county information (i.e., previous area information) is cached on the server and whether a migration strategy has been applied. Whenever a user opens the target application, the terminal can send location information to the server and cache the user's current area information under normal circumstances (such as when GPS data is valid and district / county information is valid). If it is determined that a migration strategy is applied, a flag indicating whether the migration strategy is applied can be set to a first value (such as 1). If it is determined that a migration strategy is not applied, the flag can be set to a second value (such as 0).

[0055] If previous area information is not cached, a migration strategy can be applied, with the start time set to the time the location information is obtained and the duration set to a preset time period. For example, if no previous area information exists, the user's current district / county information can be initialized in the district / county cache, and the expiration time of the migration strategy can be set to activate the strategy. For instance, the migration strategy may be active from the time the location information is received until Y days after the current date, where Y is an integer greater than or equal to 1. Y can be set to 2.

[0056] If previous region information is cached, it can be determined first whether the current user request is the first user request when using the target application; if the current user request is the first user request, it can be determined whether the previous region information and the current region information are consistent, and based on the determination result, it can be determined whether to apply the migration strategy; if the current user request is not the first user request, it can be determined whether the migration strategy corresponding to the previous region information has been applied and whether it has expired, and based on the determination result, it can be determined whether to apply the migration strategy.

[0057] The first user request can refer to whether the current user's content interaction behavior (such as browsing videos) is the first content interaction behavior after opening the target application. If it is not the first content interaction behavior (such as page turning, swiping videos, etc.), the content cache result can be directly obtained. For example, if a migration strategy is determined after receiving the last location information and the effective time of the migration strategy has not expired, then the migration strategy is applied at this time; if it is determined not to apply the migration strategy or the effective time of the migration strategy has expired after receiving the last location information, then the migration strategy is not applied.

[0058] If this is the first content interaction, it can be determined whether the current district / county and the cached district / county are consistent.

[0059] If the current region information is inconsistent with the previous region information, the user's permanent region information can be obtained. Based on the permanent region information and the current region information, it can be determined whether to apply a migration strategy. If the current region information is consistent with the previous region information, it can be determined whether the migration strategy corresponding to the previous region information has been applied and whether it has expired. Based on the determination results, it can be determined whether to apply the migration strategy.

[0060] For example, if the current district / county and the cached district / county are inconsistent, it is considered that the user has engaged in cross-district / county behavior. The cached district / county information can be updated to the current district / county information, and then the user's permanent district / county information can be obtained. The two most frequently occurring city / districts / counties recorded by the user in the last n days can be defined as the permanent district / county. Offline tasks need to update the permanent user's district / county information daily. If the current area information and the permanent area information are consistent, the migration strategy can be omitted and the current area information can be cached. If the current area information and the permanent area information are inconsistent, the migration strategy can be applied, with the start time set to the time of obtaining location information and the duration set to a preset time period. For example, if the current district / county (the district / county after crossing) is a non-permanent district / county, a migration strategy expiration time can be set, assuming the current user has migrated, and the migration strategy can be applied; if the current district / county is the user's permanent district / county, the migration strategy can be omitted.

[0061] If the current district / county and the cached district / county are the same, and if a migration strategy is determined to be applied after receiving the last location information, and the effective time of the migration strategy has not expired, then the migration strategy can be applied; otherwise, the migration strategy will not be applied.

[0062] As an example, if the location information used to determine the current area information is not valid data, a migration strategy is not applied. Considering that the received location information may be a cached result from the user's client application, it is necessary to determine the timeliness of the acquired location information. If the location information is valid data, the user's current area information can be determined based on the location information, and whether to apply a migration strategy can be determined based on the current area information. If the location information is not valid data, a migration strategy may not be applied. For example, location information within a predetermined time period can be set as real-time valid data. The predetermined time period satisfies the following condition: it covers at least 90% of location-authorized users within the predetermined time period. For example, the predetermined time for determining the timeliness of location information can be set to two hours. If the location information received by the server is data obtained by the terminal within the previous two hours, the received location information can be considered valid data. If the received location information is outside the timeliness period, a migration strategy is not applied to the terminal. As another example, when the server cannot obtain location information, a migration strategy may not be applied to the terminal.

[0063] As an example, if the current area information is not valid, the migration strategy will not be applied. If the current area information is valid, it can be determined whether the user's previous area information is cached, and based on this determination, it can be decided whether to apply the migration strategy. If the current area information is not valid, the migration strategy may not be applied. For example, the user's district / county information can be obtained through valid GPS latitude and longitude information. The district / county information can refer to the Gaode Map standard and be identified by a six-digit administrative division code. According to the example, if the latitude and longitude of the valid GPS data is not in China or a valid district / county cannot be obtained (such as for some newly added or abolished districts / counties, the national administrative division code has not yet been published, and in this case, the district / county information cannot be obtained from the GPS latitude and longitude information), then it can be determined that the migration strategy will not be applied, i.e., the migration strategy will not take effect.

[0064] In step S203, if an application migration strategy is determined, content related to location information is sent based on the migration strategy. Users can then access relevant recommended content from their new location when using the target application. For example, after migrating from one district / county to another, users can access relevant recommended content when using the target application in the new district / county.

[0065] Figure 3 This is a schematic diagram of the data processing flow according to an embodiment of the present disclosure.

[0066] Reference Figure 3 When a user opens a target application, such as entering a target function page, the server can obtain the user's recent GPS data and GPS timestamp from the terminal. The obtained GPS data may be a cached result of the target application on the user's terminal. The timeliness of the obtained GPS data needs to be determined. Typically, GPS data from the terminal within a certain number of hours is considered real-time valid. This "x hours" should cover at least 90% of location-authorized users; for example, x = 2. Whether the data is within the specified x hours can be determined based on the obtained GPS timestamp.

[0067] If the GPS data is not valid, such as if GPS data cannot be obtained or if the GPS data is out of date, then it can be determined that the migration strategy should not be applied, i.e., the migration strategy will not be effective.

[0068] If the GPS data is valid, the latitude and longitude information of the valid GPS data can be used to obtain the user's current district / county information. The district / county information can refer to the Gaode Map standard and be identified by the six-digit code of the administrative division. According to the example, if the latitude and longitude of the valid GPS data is not in China or if a valid district / county cannot be obtained (such as for some newly added or abolished districts / counties, the national administrative division code has not yet been published, and in this case, the district / county information cannot be obtained from the GPS latitude and longitude information), then it can be determined that the migration strategy should not be applied, that is, the migration strategy will not be effective.

[0069] After obtaining valid district / county information, it can be determined whether the user's most recent district / county information is cached on the server, i.e., whether the server has cached previous district / county information. Whenever a user opens the target application, the terminal can send location information to the server, and under normal circumstances (i.e., valid GPS data and valid district / county information), the user's current district / county information will be cached. If it does not exist, the current user's district / county information is initialized into the district / county cache, and the expiration time of the migration policy is set (e.g., y days after the current calendar day, such as y=2), and the migration policy is applied / activated for the current user. For example, setting the flag regarding whether the migration policy is applied to a first value (e.g., 1) indicates that the migration policy is applied.

[0070] If the cache contains previous district / county information, it's advisable to prioritize determining whether the current user request is the first request after entering the target function page. Considering that a user's geographical location generally doesn't change significantly during continuous operations using the target application, determining whether it's the first user request reduces subsequent redundant calculations.

[0071] The first user request can refer to the first interactive action that occurs after a user enters a target function page. For example, when a user enters a video page, the first time they swipe through a video can be identified as the first user request. Similarly, the act of a user entering a video page can be identified as the first user request.

[0072] If it's not the first user request, such as when the user flips through a page or swipes through a video again, the cached content can be retrieved directly. For example, if a migration strategy is determined to be applied after receiving the previous location information, and the strategy's effective period has not expired, then the migration strategy can be applied, meaning relevant local recommendations can be retrieved after a user's subsequent request. If it's determined not to apply a migration strategy after receiving the previous location information, or if the strategy's effective period has expired, then the migration strategy can be omitted.

[0073] If it is the first user request, it is determined whether the current district / county information is consistent with the previously cached district / county information. If the current district / county and the cached district / county are consistent, and a migration strategy is determined after receiving the previous location information, and the effective time of the migration strategy has not expired, then the migration strategy is applied to the current user; otherwise, the migration strategy is not applied.

[0074] If the current district / county and the cached district / county are inconsistent, it is considered that the user has engaged in cross-regional behavior. The cached district / county information needs to be updated to the current district / county, and then the user's permanent district / county information needs to be obtained. The two most frequently occurring city / districts / counties recorded by the user in the last n days can be defined as the permanent district / county. The offline task needs to update the user's permanent district / county information daily. If the current district / county (the district / county after the cross-regional move) is not the permanent district / county, the current district / county information can be cached, a migration policy expiration time can be set, and the flag indicating whether the migration policy is applied can be set to a first value (such as 1), confirming that the migration policy is applied. If the current district / county is the user's permanent district / county, the current district / county information can be cached, and the flag indicating whether the migration policy is applied can be set to a second value (such as 0), confirming that the migration policy is not applied.

[0075] Figure 4 This is a block diagram of a data processing apparatus according to embodiments of the present disclosure.

[0076] Reference Figure 4 The data processing apparatus 400 may include a data acquisition module 401, a determination module 402, and a processing module 403. Each module in the data processing apparatus 400 may be implemented by one or more modules, and the names of the corresponding modules may vary depending on the type of module. In various embodiments, some modules in the data processing apparatus 400 may be omitted, or additional modules may be included. Furthermore, modules / elements according to various embodiments of this disclosure may be combined to form a single entity, and thus perform the functions of the respective modules / elements equivalently prior to the combination.

[0077] When a user activates a target application, the data acquisition module 401 can acquire the user's current region information. The determination module 402 can determine whether to apply a migration strategy based on the current region information, wherein the migration strategy enables the user to access content related to the current region information when using the target application. If it is determined that the migration strategy should be applied, the processing module 403 can send content related to the current region information based on the migration strategy.

[0078] As an example, if the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is resident region information, the determination module 402 may not apply the migration strategy.

[0079] As an example, if the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is not resident region information, the determination module 402 may apply the migration strategy.

[0080] As an example, if the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is consistent with the previous region information, the determining module 402 can determine whether the migration strategy corresponding to the previous region information has been applied and whether it has expired, and determine whether to apply the migration strategy based on the determination result.

[0081] As an example, if the user's previous region information is cached and the current user request is not the first user request after the target application is enabled, the determination module 402 can determine whether the migration strategy corresponding to the previous region information has been applied and whether it has expired, and determine whether to apply the migration strategy based on the determination result.

[0082] As an example, if the migration strategy corresponding to the previous area information is applied and has not expired, the determination module 402 may apply the migration strategy; if the migration strategy corresponding to the previous area information is not applied or has expired, the determination module 402 may not apply the migration strategy.

[0083] As an example, the determination module 402 may apply the migration strategy if the user's previous region information is not cached.

[0084] As an example, if the location information used to determine the current area information is not valid data, the determination module 402 may not apply the migration strategy.

[0085] As an example, if the current region information is not valid region information, the determination module 402 may not apply the migration strategy.

[0086] According to another embodiment of this disclosure, when a user activates a target application, the data acquisition module 401 can acquire the user's location information; the determination module 402 can determine whether to apply a migration strategy based on the location information, wherein the migration strategy is that the user can acquire content related to the location information when using the target application; if it is determined that the migration strategy should be applied, the processing module 403 can send content related to the location information based on the migration strategy.

[0087] Optionally, determining whether to apply a migration strategy based on the location information includes: determining whether the location information is valid data; if the location information is valid data, determining the user's current area information based on the location information, and determining whether to apply a migration strategy based on the current area information; if the location information is not valid data, not applying the migration strategy.

[0088] Optionally, determining whether to apply a migration strategy based on the current region information includes: determining whether the current region information is valid region information; if the current region information is valid region information, determining whether the user's previous region information is cached, and determining whether to apply the migration strategy based on the first determination result; if the current region information is not valid region information, not applying the migration strategy.

[0089] Optionally, determining whether to apply the migration strategy based on the first determination result includes: if the previous area information is cached, determining whether to apply the migration strategy based on the previous area information and the current area information; if the previous area information is not cached, applying the migration strategy, and setting the start time of the migration strategy to the time of obtaining the location information and setting the duration of the migration strategy to a preset time period.

[0090] Optionally, determining whether to apply the migration strategy based on the previous region information and the current region information includes: determining whether the current user request is the first user request when using the target application; if the current user request is the first user request, determining whether the previous region information and the current region information are consistent, and determining whether to apply the migration strategy based on a second determination result; if the current user request is not the first user request, determining whether the migration strategy corresponding to the previous region information has been applied and whether it has expired, and determining whether to apply the migration strategy based on a third determination result.

[0091] Optionally, determining whether to apply the migration strategy based on the second determination result includes: if the current region information is inconsistent with the previous region information, obtaining the user's permanent region information, and determining whether to apply the migration strategy based on the permanent region information and the current region information; if the current region information is consistent with the previous region information, determining whether the migration strategy corresponding to the previous region information has been applied and whether it has expired, and determining whether to apply the migration strategy based on the fourth determination result.

[0092] Optionally, determining whether to apply the migration strategy based on the permanent area information and the current area information includes: if the current area information is consistent with the permanent area information, not applying the migration strategy and caching the current area information; if the current area information is inconsistent with the permanent area information, applying the migration strategy, setting the start time of the migration strategy to the time of obtaining the location information, and setting the duration of the migration strategy to a preset time period.

[0093] Optionally, determining whether to apply the migration strategy based on a third or fourth determination result includes: applying the migration strategy if the migration strategy corresponding to the previous area information has been applied and has not expired; and not applying the migration strategy if the migration strategy corresponding to the previous area information has not been applied or has expired.

[0094] The above has been referenced Figures 2 to 3 The detailed operation of the data processing method will not be elaborated here.

[0095] According to embodiments of this disclosure, an electronic device may be provided. Figure 5 According to a block diagram of an electronic device according to an embodiment of the present disclosure, the electronic device 800 may include at least one memory 802 and at least one processor 801. The at least one memory 802 stores a set of computer-executable instructions. When the set of computer-executable instructions is executed by the at least one processor 801, a data processing method according to an embodiment of the present disclosure is performed.

[0096] Processor 801 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. By way of example and not limitation, processor 801 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.

[0097] The memory 802, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, a program for executing the methods of this disclosure, and a database.

[0098] The memory 802 may be integrated with the processor 801; for example, RAM or flash memory may be arranged within an integrated circuit microprocessor. Alternatively, the memory 802 may include a separate device, such as an external disk drive, a storage array, or other storage device that can be used by any database system. The memory and processor may be operatively coupled, or may communicate with each other, for example, via I / O ports, network connections, etc., enabling the processor to read files stored in the memory.

[0099] In addition, the electronic device 800 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device 800 can be interconnected via a bus and / or network.

[0100] As an example, electronic device 800 may be a PC, tablet, personal digital assistant, smartphone, or other device capable of executing the aforementioned set of instructions. Here, electronic device 800 is not necessarily a single electronic device, but may be any collection of devices or circuits capable of executing the aforementioned instructions (or instruction sets) individually or in combination. Electronic device 800 may also be part of an integrated control system or system manager, or may be configured to interconnect with a portable electronic device locally or remotely (e.g., via wireless transmission) through an interface.

[0101] As will be understood by those skilled in the art, Figure 5 The structure shown does not constitute a limitation and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0102] According to embodiments of this disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, they cause at least one processor to perform a data processing method according to this disclosure. Examples of computer-readable storage media include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disc storage, hard disk drive (HDD), solid-state drive (SSD), card storage (such as multimedia cards, secure digital (SD) cards, or ultra-fast digital (XD) cards), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid-state drive, and any other device configured to store a computer program and any associated data, data files, and data structures in a non-transitory manner and to provide the computer program and any associated data, data files, and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the aforementioned computer-readable storage medium can run in an environment deployed in computer devices such as clients, hosts, agent devices, servers, etc. Furthermore, in one example, the computer program and any associated data, data files, and data structures are distributed across a networked computer system, such that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed manner through one or more processors or computers.

[0103] According to embodiments of this disclosure, a computer program product may also be provided, wherein the instructions in the computer program product can be executed by the processor of a computer device to perform the above-described data processing method.

[0104] This disclosure optimizes recommendations by real-time assessment of migrating users, improving their content recommendation experience and refining the definition and criteria for migrating users. It utilizes a district / county caching scheme combined with judgment of the user's permanent city / county to trigger user migration strategies and handle expired user exits, thus enhancing the user's content recommendation experience.

[0105] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0106] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A data processing method, characterized in that, The method includes: When a user activates the target application, the user's current region information is obtained; Whether to apply a migration strategy is determined based on the current area information, wherein the migration strategy is to enable the user to obtain content related to the current area information when using the target application; If the migration strategy is determined to be applied, content related to the current region information is sent based on the migration strategy. The process of determining whether to apply a migration strategy based on the current region information includes: If the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is resident region information, the migration strategy will not be applied. If the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is not resident region information, the migration strategy shall be applied. If the user's previous area information is not cached, the migration strategy is applied, and the start time of the migration strategy is set to the time when the location information of the current area information is obtained, and the duration of the migration strategy is set to a preset time period.

2. The method according to claim 1, characterized in that, Determining whether to apply a migration strategy based on the current area information includes: If the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is consistent with the previous region information, determine whether the migration strategy corresponding to the previous region information has been applied and whether it has expired, and determine whether to apply the migration strategy based on the determination result.

3. The method according to claim 1, characterized in that, Determining whether to apply a migration strategy based on the current area information includes: If the user's previous region information is cached, and the current user request is not the first user request after the target application is enabled, determine whether the migration policy corresponding to the previous region information has been applied and whether it has expired, and determine whether to apply the migration policy based on the determination result.

4. The method according to claim 2 or 3, characterized in that, Determining whether to apply the migration strategy based on the determined results includes: If the migration strategy corresponding to the previous area information has been applied and has not expired, the migration strategy shall be applied. If the migration strategy corresponding to the previous region information has not been applied or has expired, the migration strategy shall not be applied.

5. The method according to claim 1, characterized in that, Also includes: If the location information used to determine the current area information is not valid data, the migration strategy shall not be applied.

6. The method according to claim 1, characterized in that, Also includes: If the current region information is not valid region information, the migration strategy will not be applied.

7. A data processing apparatus, characterized in that, The device includes: The data acquisition module is configured to acquire the user's current region information when the user activates the target application; The determination module is configured to determine whether to apply a migration strategy based on the current area information, wherein the migration strategy is that the user can obtain content related to the current area information when using the target application; The processing module is configured to, when it is determined that the migration strategy will be applied, send content related to the current region information based on the migration strategy. The determination module is configured as follows: If the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is resident region information, the migration strategy will not be applied. If the user's previous region information is cached, the current user request is the first user request after the target application is enabled, and the current region information is inconsistent with the previous region information, then if the current region information is not resident region information, the migration strategy shall be applied. If the user's previous area information is not cached, the migration strategy is applied, and the start time of the migration strategy is set to the time when the location information of the current area information is obtained, and the duration of the migration strategy is set to a preset time period.

8. An electronic device, characterized in that, include: At least one processor; At least one memory that stores computer-executable instructions. The computer-executable instructions, when executed by the at least one processor, cause the at least one processor to perform the data processing method as described in any one of claims 1 to 6.

9. A computer-readable storage medium for storing instructions, characterized in that, When the instruction is executed by at least one processor, it causes the at least one processor to perform the data processing method as described in any one of claims 1 to 6.

10. A computer program product storing instructions that, when executed by at least one processor in an electronic device, perform the data processing method as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Position information-based data obtaining method and apparatus

    CN106708833A