Data acquisition method and data acquisition device

By matching the data collection strategy according to the user's behavior scenario when the application requests data collection, the problem of user privacy data is easily leaked is solved, and data security of electronic devices is improved.

CN120372686APending Publication Date: 2025-07-25VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510499183.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

User privacy data is easily collected frequently by applications in electronic devices, resulting in privacy data leakage and low intelligence.

Method used

When the application is detected that the application requests to collect data, determine the user's behavioral scenario and match the corresponding data acquisition strategy according to the behavioral scenario, including allowing acquisition, limiting frequency acquisition, prohibiting acquisition or collecting according to the user's operation, and controlling the application to perform reasonable data acquisition in the electronic device.

Benefits of technology

By matching the data acquisition strategy of user behavior scenarios, unreasonable frequency acquisition of applications is avoided, the probability of privacy data leakage is reduced, and the data security of electronic devices is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120372686A_ABST
    Figure CN120372686A_ABST
Patent Text Reader

Abstract

The invention discloses a data collection method and device, and belongs to the technical field of communication, and the method comprises the steps: determining a current behavior scene of a target user associated with electronic equipment where a target application program is located under the condition that the current running target application program requests to collect data; determining a target data acquisition strategy matched with the current behavior scene according to the target application program, wherein the target data acquisition strategy comprises acquisition permission, frequency-limited acquisition, acquisition prohibition or acquisition according to user operation; and controlling the target application program to collect data in the electronic equipment according to the target data collection strategy. The security of the data in the electronic equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technologies, and particularly relates to a data acquisition method and a data acquisition device. Background Art

[0002] With the development of electronic device technologies, more and more application programs can be loaded onto electronic devices.

[0003] When a user uses an application program in an electronic device, the application program will pop up an option box for the user to authorize data acquisition. In most cases, the user will authorize the application program to perform data acquisition. However, the application program will perform data acquisition multiple times, which is very unfavorable for the protection of the user's privacy data and easily leads to the leakage of the user's privacy data. Summary of the Invention

[0004] The objective of the embodiments of this application is to provide a data acquisition method and a data acquisition device to solve the problem that the user's privacy data is easily leaked.

[0005] In a first aspect, the embodiments of this application provide a data acquisition method applied to an electronic device. The data acquisition method includes:

[0006] When it is detected that a target application program currently running requests to acquire data, determining the current behavior scenario of a target user associated with the electronic device where the target application program is located;

[0007] Determining a target data acquisition policy that matches the current behavior scenario according to the target application program. The target data acquisition policy includes: allowing acquisition, frequency-limited acquisition, prohibiting acquisition, or acquiring according to user operations;

[0008] Controlling the target application program to acquire data in the electronic device according to the target data acquisition policy.

[0009] In a second aspect, the embodiments of this application provide a data acquisition device, including:

[0010] A first determination module, configured to determine the current behavior scenario of a target user associated with the electronic device where the target application program is located when it is detected that the target application program currently running requests to acquire data;

[0011] A second determination module, configured to determine a target data acquisition policy that matches the current behavior scenario according to the target application program. The target data acquisition policy includes: allowing acquisition, frequency-limited acquisition, prohibiting acquisition, or acquiring according to user operations;

[0012] A control module, configured to control the target application program to acquire data in the electronic device according to the target data acquisition policy.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instructions that can run on the processor. When the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored. When the program or instructions are executed by a processor, the steps of the method described in the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instructions to implement the method described in the first aspect.

[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0017] In the embodiment of the present application, when the currently running application requests to collect data, the behavior scenario of the user is determined, and a collection strategy matching the behavior scenario is determined, so as to control the application to perform reasonable data collection in the electronic device according to the data collection strategy. That is, each data collection of the application matches the user's current behavior scenario, avoiding the unlimited and unreasonable collection of user data in the electronic device by the application, reducing the leakage probability of the user's private data, and improving the security of the data in the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is one of the flowcharts of a data collection method shown according to an exemplary embodiment;

[0019] Figure 2 is another flowchart of a data collection method shown according to an exemplary embodiment;

[0020] Figure 3 is yet another flowchart of a data collection method shown according to an exemplary embodiment;

[0021] Figure 4 is still another flowchart of a data collection method shown according to an exemplary embodiment;

[0022] Figure 5 is yet still another flowchart of a data collection method shown according to an exemplary embodiment;

[0023] Figure 6 is a schematic diagram of a virtual function module of a data acquisition device according to an exemplary embodiment;

[0024] Figure 7 is a structural block diagram of an electronic device according to an exemplary embodiment;

[0025] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0029] With the development of electronic device technology, more and more application programs can be loaded on electronic devices.

[0030] When a user is using an application in an electronic device, the application will pop up an option box asking the user to authorize data collection.

[0031] In most cases, users will authorize applications to collect data, but applications will frequently collect data without limit, which is very detrimental to the protection of user privacy data. In other words, the intelligence level of electronic devices is low, which makes it easy for users' privacy data to be leaked.

[0032] In view of the problem of low intelligence of electronic devices, the inventors of the present application thought that when the currently running application requests to collect data, determine the user's behavior scenario, and determine a collection strategy that matches the behavior scenario, so as to control the application to perform reasonable data collection in the electronic device according to the data collection strategy. That is, each data collection of the application matches the user's current behavior scenario, avoiding unlimited and unreasonable collection of user data in the electronic device, reducing the probability of leakage of the user's private data, and improving the security of the data in the electronic device.

[0033] The data collection method and data collection device provided by the embodiments of the present application are described in detail below through specific embodiments and their application scenarios.

[0034] The data collection method provided by the embodiments of the present application can be applied to the application scenario where an application in an electronic device requests to collect data.

[0035] The data collection method provided by the embodiments of the present application is described in detail below.

[0036] Refer to Figure 1 , Figure 1 which is one of the flow diagrams of the data collection method provided by the present application. As Figure 1 shown, the data collection method includes the following steps:

[0037] Step S101, when it is detected that the currently running target application requests to collect data, determine the current behavior scenario of the target user associated with the electronic device where the target application is located.

[0038] In this embodiment, the execution entity is an electronic device, and the electronic device can be any mobile device loaded with an application, such as a mobile phone, a tablet computer, a notebook computer, etc. For the convenience of description, the device is used to refer to the electronic device hereinafter.

[0039] The currently running application in the device is defined as the target application, and the target application will request the device to collect data. When the device detects that the target application requests to collect data, the device determines the current behavior scenario of the user. The user refers to the user of the device where the target application is located, and this user is defined as the target user. The current behavior scenario is, for example, the current intention or purpose of the target user. Exemplarily, the current behavior scenario is going to the office location, going to the event location, doing sports, doing office work, etc.

[0040] In one example, the device can determine the current behavior scenario corresponding to the target user through the device status of the device. For example, the device obtains the type of the network currently connected by the device based on the device status. If the type of the network is the network of the work location, it can be determined that the current behavior scenario of the target user is doing office work.

[0041] In another example, the device can determine the current behavior scenario corresponding to the target user through the target application. Exemplarily, when the target application is a navigation program, the device obtains the destination of the target user in the navigation program, and the current behavior scenario can be determined through the destination. For example, if the destination is the office location marked by the target user, the current behavior scenario is going to the office.

[0042] In one example, the current behavior scenario can be determined by the current time. For example, the device determines the user behavior habits associated with the time period in which the current time is located based on the current time, and determines the current behavior scenario based on the user behavior habits. For example, if the user behavior habit corresponding to the current time is to play badminton at location A, the current behavior scenario is going to location A.

[0043] Step S102, determine a target data collection policy that matches the current behavior scenario according to the target application. The target data collection policy includes: allow collection, frequency-limited collection, prohibit collection, or collect according to user operations.

[0044] After determining the current behavior scenario of the target user, the device determines a data collection policy that matches the current behavior scenario, and the matching data collection policy is defined as the target data collection policy. The target data collection policy includes: allow collection, frequency-limited collection, prohibit collection, or collect according to user operations.

[0045] Allow collection means allowing the application to collect data. Further, the application can collect data with the user's permission.

[0046] Frequency-limited collection means allowing the application to perform data collection with a limited number of times. For example, the data collection with a limited number of times is to limit the application to collect data at most 10 times within a day. The frequency of data collection is related to the current behavior scenario. Further, the application can perform frequency-limited data collection with the user's permission.

[0047] Prohibit collection means that the application is not allowed to collect data in the current behavior scenario.

[0048] Collecting according to user operations means free collection, that is, the user actively triggers the data collection or data upload behavior. When the data collection or data upload is triggered for the first time, a prompt of "The data is not the data required for the current behavior scenario. Do you still want to continue the corresponding behavior?" can be given. When the user makes a selection, an option of "Do not prompt again next time" can be checked. Collecting according to user operations is a data collection policy under the user's independent control.

[0049] The device determines a target data collection policy that matches the current behavior scenario based on the data requested by the target application for collection.

[0050] In one example, the current behavior scenario is "going to work". If the target application requests location data, the location data can be used for positioning to help reach the work location and continuous positioning is required. Therefore, the data collection strategy can be to allow collection.

[0051] In another example, if the current behavior scenario is "going to work", but the target application requests to obtain an image in the album, and the user's image is not helpful for "going to work", it is considered that the data requested by the target application is unreasonable. Then the data collection strategy is to prohibit collection.

[0052] In one example, if the current behavior scenario is "leisure and entertainment", and the target application requests location data, the location data is somewhat helpful for the user's leisure and entertainment. For example, it helps the user locate the area so that users in the same area can form teams for leisure and entertainment. However, the location data is only used to locate the user's area, and frequency limitation is imposed on the location data. For example, the application is allowed to obtain location data twice a day. Therefore, the data collection strategy is frequency-limited collection.

[0053] In yet another example, the data requested by the target application is actively triggered by the user's operation. Regardless of the type of the current behavior scenario, the data collection strategy is user-operation collection, that is, the target application performs data collection with the user's permission.

[0054] Step S103, control the target application to collect data in the electronic device according to the target data collection strategy.

[0055] After determining the target data collection strategy, control the target application to collect data in the device according to the target data collection strategy. For example, if the target data collection strategy is to allow collection, the device allows the target application to collect data; if the target data collection strategy is frequency-limited collection, the device determines whether the number of times the target application requests to obtain data is lower than the set number of times. If it is lower than the set number of times, the device allows the target application to collect data. If it is higher than or equal to the set number of times, the device does not allow the target application to collect data; if the target data collection strategy is to prohibit collection, the device prohibits the target application from collecting data and outputs a prompt message for prohibiting collection; if the target data collection strategy is user-operation collection, the device outputs a prompt message to ask the target user whether to allow the target application to collect data. If the device detects a confirmation operation triggered by the target user based on the prompt message, the device allows the target application to collect data.

[0056] In this embodiment, when the currently running application requests to collect data, the user's behavior scenario is determined, and a collection strategy matching the behavior scenario is determined, so as to control the application to perform reasonable data collection in the electronic device according to the data collection strategy. That is, each data collection of the application matches the user's current behavior scenario, avoiding unlimited and unreasonable collection of user data in the electronic device, reducing the probability of leakage of the user's private data, and improving the security of the data in the electronic device.

[0057] Refer to Figure 2 , Figure 2 is the second flowchart of the data collection method provided by this application. Based on Figure 1 the embodiment shown, step S102 includes:

[0058] Step S201, obtain a target parameter, where the target parameter is used to indicate the purpose of the data requested to be collected by the target application, or the target parameter is used to indicate the matching degree between the target application and the current behavior scenario.

[0059] In this embodiment, the device obtains the target parameter. The target parameter may be the purpose of the data requested to be collected by the target application, or the target parameter is the matching degree between the data requested to be collected by the target application and the current behavior scenario.

[0060] Exemplarily, when the target application requests to obtain data, the target application may send a request to the device to obtain the purpose of the data. For example, if the target application is a navigation application, the data obtained by the navigation application is location data, and the location data is used for navigation, that is, the purpose of the target application requesting to obtain data is positioning and navigation.

[0061] Labels associated with the behavior scenario are stored in the device. When the target parameter needs to be obtained, the device determines the type of the target application and determines the matching degree between the type and the label of the current behavior scenario as the matching degree between the target application and the current behavior scenario.

[0062] In an example, the current behavior scenario is "going to the workplace", the labels of "going to the workplace" are location and music, and the type of the target application is positioning or music, then the matching degree between the target application and "going to the workplace" is 100%. If the type of the target application is not positioning and not music, then the matching degree between the target application and "going to the workplace" is 0.

[0063] In another example, the device can also determine the matching degree between the target application and the current behavior scenario based on the usage and the type of the target application. The current behavior scenario is "going to the workplace". The tags for "going to the workplace" are location and music. If the type of the target application is location or music, the initial matching degree between the target application and "going to the workplace" is 100%. However, if the usage of the data requested by the target application is to analyze the user's behavior of purchasing goods in the mini-game within the target application, the usage does not match "going to the workplace". Therefore, the matching degree between the target application and "going to the workplace" is changed from 100% to 0. That is, based on the type of the target application, the initial matching degree between the target application and the current behavior scenario is determined, and then based on the matching correction value of the usage and the current behavior scenario, the initial matching degree is corrected by the matching correction value to obtain the target matching degree between the target application and the current behavior scenario, which is used as the target parameter.

[0064] Step S202, determine the target data collection strategy that matches the current behavior scenario according to the target parameter.

[0065] After obtaining the target parameter, the target data collection strategy that matches the current behavior scenario can be determined based on the target parameter.

[0066] In one example, when the target parameter is the usage of the data requested by the target application to be collected. The device determines whether the usage is relevant to the current behavior scenario. If the usage is relevant to the behavior scenario, the target data collection strategy is to allow collection or limited-frequency collection; if the current behavior scenario allows continuous data acquisition, the target data collection is to allow collection. For example, when the current behavior scenario is going to a certain location and continuous acquisition of location data is allowed, therefore, the target data collection strategy is to allow collection; if the current behavior scenario does not allow continuous data acquisition, the target data collection strategy is limited-frequency collection. For example, when the current behavior scenario is office check-in, the target data collection strategy is limited-frequency collection. When the usage is irrelevant to the behavior scenario, the target data collection strategy is to prohibit collection or user-operation collection; for example, when the usage of the data requested by the target application to be collected is to obtain image data for user portrait analysis, and the current behavior scenario is office check-in, user portrait analysis is irrelevant to office check-in, so the target data collection strategy is to prohibit collection or user-operation collection. Further, if the data requested by the target application to be collected is triggered by user operation, the target data collection strategy is user-operation collection; if the data requested by the target application to be collected is not triggered by user operation, the target data collection is prohibited collection.

[0067] In another example, when the target parameter is the degree of matching between the target application and the current behavior scenario, the device determines the target data acquisition strategy based on the degree of matching. The degree of matching is characterized by the matching degree. When the target parameter as the matching degree is less than the preset threshold, the degree of matching between the target application and the current behavior scenario is low, and the target data acquisition strategy is determined as prohibiting acquisition or user operation acquisition. Further, when the data requested by the target application to be acquired is actively triggered by the user, the user operation acquisition is used as the target data acquisition strategy. If the data requested by the target application to be acquired is not actively triggered by the user, the prohibiting acquisition is used as the target data acquisition strategy. When the target parameter as the matching degree is greater than or equal to the preset threshold, the allowing acquisition or frequency-limited acquisition is used as the target data acquisition strategy. Further, if the current behavior scenario allows continuous data acquisition, the allowing acquisition is used as the target data acquisition strategy. If the current behavior scenario does not allow continuous data acquisition, the frequency-limited acquisition is used as the target data acquisition strategy.

[0068] In this embodiment, the device obtains the purpose of the data requested by the target application to be acquired or the degree of matching between the target application and the current behavior scenario, and accurately determines the target data acquisition strategy matching the current behavior scenario.

[0069] Referring to Figure 3 , Figure 3 is the third flow chart of the data acquisition method provided by this application. Based on Figure 2 the embodiment shown, step S202 includes:

[0070] Step S301, determine the data acquisition method according to the target parameter.

[0071] In this embodiment, the data acquisition strategy is determined by the data acquisition method and the data acquisition accuracy. The data acquisition methods are allowing acquisition, prohibiting acquisition, frequency-limited acquisition, and user operation acquisition. The data acquisition accuracy includes fuzzy acquisition and precise acquisition. Fuzzy acquisition means that the accuracy of the acquired data is lower than the threshold, while precise acquisition means that the accuracy of the acquired data is higher than or equal to the threshold. For example, when acquiring location data, in the case of fuzzy acquisition, the municipal area is acquired, while in the case of precise acquisition, the location information is accurate to xx Road, xx Community, etc.

[0072] In this regard, the device first determines the data acquisition method through the target parameter.

[0073] Step S302, obtain reference parameters, where the reference parameters include at least one of the operation behavior of the target user on the target application, the location where the electronic device is located, the device state of the electronic device, the active location of the target user, and the current time period information.

[0074] After obtaining the data collection method, the device acquires reference parameters. The reference parameters include at least one of the operation behavior of the target user on the target application, the location where the device is located, the device status of the device, the active location of the target user, and the current time period information.

[0075] Step S303: Determine the data collection accuracy according to the reference parameters, and determine the target data collection strategy matching the current behavior scenario according to the data collection accuracy and the data collection method.

[0076] After determining the reference parameters, the device determines the data collection accuracy based on the reference parameters.

[0077] In one example, when the reference parameter is the operation behavior of the target user on the target application, the data collection method is determined through the operation behavior. Exemplarily, when the operation behavior is a game operation on a game application, the data collection accuracy is fuzzy collection; when the user behavior is product browsing and purchasing on a shopping application, if the requested data is the user's browsing record and the operation behavior of product browsing and purchasing matches the data requested by the shopping application, the data collection accuracy is precise collection. If the requested data is location data and the location data does not match the operation behavior of product browsing and purchasing, the data collection accuracy is fuzzy collection.

[0078] In another example, when the reference parameter is the location where the device is located, the data collection accuracy is determined through the location where the device is located. Exemplarily, a geographical fence corresponding to the location where the device is located is determined. Different geographical fences are set with corresponding collection accuracies, and the device uses the collection accuracy corresponding to the geographical fence where it is located as the data collection accuracy of the target data collection strategy. For example, if the location where the device is located is the home of the target user, the geographical fence is the community, and the data collection accuracy is fuzzy collection, that is, the location data is fuzzily collected to protect the privacy of the target user; when the location where the device is located is the office location of the target user, the geographical fence of the office location is the office area, and the data collection accuracy is precise positioning. Further, the precise collection can be determined based on the size of the geographical fence. For example, if the geographical fence where the device is located is the home area, the precision of the precise collection can be to collect any location within 500 meters in the home area. If the geographical fence where the device is located is a public area, the precise collection can be to collect any location within 100 meters in the public area. If the geographical fence where the device is located is the office area, the precise collection can be to collect the location where the office area is located.

[0079] In one example, the target parameter is the device status corresponding to the device, and the data acquisition accuracy is determined based on the device status. Exemplarily, the device status is the network to which the device is connected. If the connected network is not a frequently connected network, the data acquisition accuracy is fuzzy acquisition; if the connected network is a set network, such as a home network or an office network, the data acquisition accuracy is precise acquisition. And when the device status is the battery level, if the battery level is lower than the battery threshold and the power consumption for fuzzy data acquisition is less, the data acquisition accuracy is fuzzy acquisition; if the battery level is higher than or equal to the battery threshold, the data acquisition is precise acquisition. For another example, the device status is the storage space. If the remaining storage data volume of the storage space is lower than the data volume threshold, the storage space can store less data, and thus fuzzy acquisition is performed to acquire small amounts of data; if the remaining storage data volume of the storage space is higher than or equal to the data volume threshold, precise acquisition is performed to acquire large amounts of data.

[0080] In another example, the reference parameter is the active location of the target user. If the active location is the same as the location where the device is located, precise acquisition can be performed; if the location where the device is located is not the active location of the target user, fuzzy acquisition can be performed.

[0081] In other examples, the reference parameter is the current time period information. The current time period includes the current time period. If the current time period is the active time period of the target user, in this time period, the target user uses the terminal more frequently. When the target application performs data acquisition, with the permission of the target user, precise acquisition can be performed; if the current time period is not the active time period of the target user, but the data requested to be acquired by the target application has been previously agreed by the target user, and the possibility of the target user using the device is small, thus fuzzy acquisition is performed to avoid leaking precise data without the target user's knowledge.

[0082] It should be noted that the reference parameter includes multiple reference factors such as operation behavior, device location, device status, active location, and current time period information. Then, the reference factor with the highest priority is extracted from each reference factor, and the data acquisition accuracy is determined based on the reference parameter with the highest priority.

[0083] After determining the data acquisition accuracy, the data acquisition accuracy and the data acquisition method can constitute the target data acquisition strategy. For example, the target data acquisition strategy includes permitted acquisition (data acquisition method) and precise acquisition (data acquisition accuracy).

[0084] In this embodiment, the data acquisition method is determined through the target parameter, and the data acquisition accuracy is determined based on the reference parameter. Thus, based on the data acquisition method and the data acquisition accuracy, the target data acquisition strategy matching the current behavior scenario is accurately determined.

[0085] Reference Figure 4 , Figure 4 Figure 4 is the fourth flowchart of the data collection method provided by this application. Based on the embodiment shown in Figure 1 , step S102 includes:

[0086] Step S401, obtain reference parameters, where the reference parameters include at least one of the operation behavior of the target user on the target application, the location of the electronic device, the device state of the electronic device, the active location of the target user, and the current time period information.

[0087] In this embodiment, the device determines the target data collection strategy based on the reference parameters and the data requested to be collected by the target application. The reference parameters include at least one of the operation behavior of the target user on the target application, the location of the electronic device, the device state of the electronic device, the active location of the target user, and the current time period information.

[0088] Step S402, determine the target data collection strategy that matches the current behavior scenario according to the reference parameters and the data requested to be collected by the target application.

[0089] The device determines the target data collection strategy through the reference parameters and the data requested to be collected by the target application.

[0090] In an example, when the reference parameter is the operation behavior of the target user on the target application, if the operation behavior is a clock-in operation on an office software, and the data requested to be obtained by the office software is location data, and the data required for the clock-in operation is location data, and the data required for the clock-in operation is the same as the data requested to be obtained by the target application, that is, the data required for the operation behavior is the same as the data requested to be obtained by the target application, then the target data collection strategy is to allow collection or limited-frequency collection; further, if the purpose of using the data by the target application is to continuously obtain data, such as clocking in for work or getting off work on an office software, and only a limited number of data needs to be obtained for clocking in, so the purpose is not to continuously obtain data, then the target data collection strategy is limited-frequency collection. If the purpose is to continuously obtain data, then allowing collection is used as the target data collection strategy. If the data required for the operation behavior is inconsistent with the data requested to be obtained by the target application, then the target data collection strategy is to prohibit collection or user operation collection; further, when the data requested to be obtained by the target application is triggered by the user, then user operation collection is used as the target data collection strategy. If the data requested to be obtained by the target application is not triggered by the user, then prohibiting collection is used as the target data collection strategy. In addition, when the user's operation behavior is to make a picture comment or post a post, and the data obtained by the target application is to obtain image data, then the operation behavior matches the data obtained by the target application, so allowing collection is used as the target data collection strategy.

[0091] In another example, the reference parameter is the location where the device is located. If the area where the location is located does not match the data requested to be collected by the target application, then prohibiting collection is used as the target data collection strategy. For example, if the target application is a social software that requests clipboard data, and the location area is an office area where data collection is not allowed, then prohibiting collection is used as the target data collection strategy. If the area where the location is located matches the data collected by the target application, then allowing collection or frequency-limited collection is used as the target data collection strategy. For example, if the target application is a game application that collects location data, and the location area is a public area, then frequency-limited collection of data is allowed, that is, frequency-limited collection is used as the target data collection strategy.

[0092] In one example, when the target parameter is the device status of the device, the target data collection strategy is determined based on the device status and the data requested to be collected by the target application. For example, if the device status is the network type of the device, and the network type is a public network and the data requested to be obtained by the target application is non-private data, then allowing collection or frequency-limited collection is used as the target data collection strategy. If the network type is a public network, but the data requested to be obtained by the target application is the private data of the target user, then prohibiting collection is used as the target data collection strategy. Another example is that if the device status is the remaining battery power of the device, and the remaining battery power is less than the preset battery power and the data volume of the data requested to be collected by the target application is higher than the preset data volume, then prohibiting collection is used as the target data collection strategy. If the remaining battery power is less than the preset battery power and the data volume of the data requested to be collected by the target application is lower than or equal to the preset data volume, then allowing collection is used as the target data collection strategy.

[0093] In yet another example, the target parameter is the active location of the target user, and the target data collection strategy is determined based on the active location and the data requested by the target application. Exemplarily, when the data requested to be obtained by the target application matches the active location, then allowing collection or frequency-limited collection is used as the target data collection strategy. For example, the device obtains data acquisition records related to the active location from the historical record information. Based on the data acquisition records, the type of data and the application for which data acquisition is agreed can be determined. If the target application is the application that requested to obtain data at the active location historically and the target application has a record of successfully obtaining data, then the active location matches the data requested to be obtained by the target application. If the target application is not the application that requested to obtain data at the active location historically, or the target application does not have a record of successfully obtaining data at the active location, then the active location does not match the data requested to be obtained by the target application, and thus prohibiting collection is used as the target data collection strategy.

[0094] In other examples, the reference parameter is the current time period information, and the device determines the target data collection policy based on the current time period information and the data requested by the target application. Exemplarily, the current time period information includes the current time period. The device determines the user behavior habit of the current time period, and based on the matching degree between the user behavior habit and the data requested by the target application. If the matching degree is higher than the matching threshold, allowing collection is used as the target data collection policy; if the matching degree is lower than or equal to the matching threshold, prohibiting collection is used as the target data collection policy. For example, if the user behavior habit in the current time period is for leisure and entertainment, and the data requested by the target application is for office work, then the matching degree between the user behavior habit and the data requested by the target application is low, so prohibiting collection is used as the target data collection policy; if the data requested by the target application is for leisure and entertainment, then the matching degree between the user behavior habit and the requested matching is high, and allowing collection or frequency-limited collection is used as the target data collection policy.

[0095] In this embodiment, the device obtains reference parameters such as the operation behavior of the target user on the target application, the location where the electronic device is located, the device state of the electronic device, the active location of the target user, and the current time period information. Then, based on the reference parameters and the data requested by the target application, it accurately determines the target data collection policy that matches the current behavior scenario.

[0096] Refer to Figure 5 , Figure 5 is the fifth flow diagram of the data collection method provided by this application. Based on Figure 1 the embodiment shown, step S102 includes:

[0097] Step S501, determine the sensitivity parameter of the data requested to be collected by the target application.

[0098] In this embodiment, sensitive words or sensitive data types are stored in the device. The sensitivity parameter is determined through the data requested by the target application and the sensitive words or sensitive data types stored in the device.

[0099] In one example, the device determines the type of data requested by the target application. If the type is a sensitive data type stored in the device, then 1 is used as the sensitivity parameter; if the type is not a sensitive data type stored in the device, then 0 is used as the sensitivity parameter.

[0100] In another example, the device determines the data requested by the target application and determines whether the requested data contains sensitive words. If the requested data contains sensitive words, then 0 is used as the sensitivity parameter; if the requested data does not contain sensitive words, then 1 is used as the sensitivity parameter.

[0101] Step S502: Determine a target data collection policy that matches the current behavior scenario according to the sensitivity parameter.

[0102] The device determines the sensitivity parameter and then determines a target data collection policy that matches the current behavior scenario based on the sensitivity parameter. For example, if the sensitivity parameter is 1, the target data collection policy is to allow collection or limit the collection frequency; if the sensitivity parameter is 0, the target data collection policy is to prohibit collection.

[0103] In this embodiment, the device accurately determines a target data collection policy that matches the current behavior scenario based on the sensitivity parameter of the data requested to be collected by the target application.

[0104] In one embodiment, the device includes a policy prediction model. The policy prediction model is used to determine the current behavior scenario of the target user associated with the electronic device where the target application is located, and is also used to determine a target data collection policy that matches the current behavior scenario according to the target application.

[0105] Exemplarily, the device collects data and inputs the collected data into the policy prediction model. The data collected by the device includes the type of the target application. The data collected by the device may also include at least one of the data collected by the target application, target parameters, and reference parameters. The principle of the target data collection policy predicted by the policy prediction model specifically refers to the above embodiment and will not be elaborated here.

[0106] The training process of the policy prediction model includes: obtaining the training collection policy for the training application to collect data, the training behavior scenario corresponding to the training data collection policy, constructing a training sample corresponding to the training application based on the training application, the corresponding training behavior scenario, and the training data collection policy, and then training a preset model based on each training sample to obtain the policy prediction model. The preset model can be a deep learning model, a convolutional neural network model, or a pre-trained deep learning model.

[0107] Furthermore, the device obtains the training parameters corresponding to the training application and constructs training samples based on each training application, the corresponding training data collection policy, training parameters, and training behavior scenario. The training parameters include at least one of the purpose of the data requested to be collected by the training application, the matching degree between the data requested to be collected by the training application and the training behavior scenario, the operation behavior of the training user on the training application, the location of the device where the training application is located when the training application requests to collect data, the device state of the device where the training application is located when the training application requests to collect data, the active location of the training user, and the time period when the device where the training application is located is at the time point when the training application requests to collect data.

[0108] It should be noted that the purpose of the data requested by the training application can be achieved by tagging. That is, tags are added to the training data to mark its usage scope, which can be understood as the purpose.

[0109] In this embodiment, through the policy prediction model, the target data collection policy is accurately determined, and then based on the target data collection policy, the target application is reasonably controlled to collect data.

[0110] Based on the above embodiments, the data collection method of the present application will be illustrated by examples.

[0111] The first behavior scenario is as follows: The user turns on the mobile phone and starts the navigation application, and selects to drive to the target company. This behavior scenario indicates that the user is about to drive to the company. Then the navigation application requests to collect the user's geographical location data in real time. At this time, the mobile phone turns on the geofence. Before the user leaves the community, the navigation application is allowed to collect the user's approximate location information within the community (the approximate location information refers to the user's location within a few hundred meters, which is a way of accurate collection of location data). That is, the data collection method in the data collection policy is to allow collection and the data collection accuracy is accurate collection.

[0112] The second behavior scenario switches to the process when the user is driving to the company and opens the work software to reply to messages. The behavior scenario is the driving process of the user, and the target application is the work software. The work software requests to obtain the geographical location. Since the geographical location obtained by the work software cannot help the user drive, the data collection policy is to prohibit collection. That is, the work software is prohibited from obtaining the geographical location during the driving process.

[0113] The third behavior scenario switches to when the user arrives at the company and the work software in the mobile phone is running. The work software requests to obtain the geographical location for clock-in. The clock-in matches the behavior scenario of the user arriving at the company. Then the data collection method in the data collection policy is frequency-limited collection and the data collection accuracy is accurate collection. That is, the mobile phone allows the work software to accurately obtain the geographical location within the limited number of times. After the user finishes clocking in and the user is within the geofence where the company is located, if the work software actively obtains the geographical location again, the collection of the geographical location is prohibited, unless the user actively triggers the clock-in, then the work software is allowed to accurately obtain the geographical location within the limited number of times. That is, the data collection policy is user-operation collection.

[0114] The fourth behavior scenario switches to when the user logs in to the social software for online chatting. That is, the user uses the social software for social activities in the company. The social software requests to collect the user's geographical location to obtain the province information. The data collection policy is frequency-limited collection, allowing one collection per day. For large-scale geographical location changes, additional collection frequencies are allowed.

[0115] The fifth behavioral scenario is that the user enters the chat interface of a social software to chat, and the social software requests to obtain clipboard data. At this time, such data is not necessary for the social software. The social software is prohibited from obtaining clipboard data, that is, the data collection strategy is to prohibit collection;

[0116] The sixth behavioral scenario is that the user plays a game when idle, and the game application requests to collect imei (International Mobile Equipment Identity) data for statistical analysis purposes. The mobile phone monitors this data collection and determines that the purpose of collection is unreasonable, and determines that the collection of such data by the application is prohibited.

[0117] Based on the same inventive concept, the present application also provides a data collection device. The following combines Figure 6 to describe in detail the data collection device provided in the embodiments of the present application.

[0118] Figure 6 is a structural block diagram of a data collection device shown according to an exemplary embodiment.

[0119] As Figure 6 shown, the data collection device 600 may include:

[0120] A first determination module 610, configured to determine the current behavioral scenario of the target user associated with the electronic device where the target application is located when it is detected that the currently running target application requests to collect data;

[0121] A second determination module 620, configured to determine a target data collection strategy that matches the current behavioral scenario according to the target application, where the target data collection strategy includes: allowing collection, limiting frequency collection, prohibiting collection, or collecting according to user operations;

[0122] A control module 630, configured to control the target application to collect data in the electronic device according to the target data collection strategy.

[0123] In one embodiment, the data collection device 600 is specifically configured to:

[0124] When it is detected that the currently running target application requests to collect data, determine the current behavioral scenario of the target user associated with the electronic device where the target application is located;

[0125] Determine a target data collection strategy that matches the current behavioral scenario according to the target application, where the target data collection strategy includes: allowing collection, limiting frequency collection, prohibiting collection, or collecting according to user operations;

[0126] Control the target application to collect data in the electronic device according to the target data collection strategy.

[0127] In one embodiment, the data acquisition device 600 is specifically configured to:

[0128] Obtain a target parameter, where the target parameter is used to indicate the purpose of the data requested to be collected by the target application, or the target parameter is used to indicate the matching degree between the target application and the current behavior scenario;

[0129] Determine a target data acquisition strategy that matches the current behavior scenario according to the target parameter.

[0130] In one embodiment, the data acquisition device 600 is specifically configured to:

[0131] Determine a data acquisition method according to the target parameter;

[0132] Obtain a reference parameter, where the reference parameter includes at least one of the operation behavior of the target user on the target application, the location of the electronic device, the device state of the electronic device, the active location of the target user, and the current time period information;

[0133] Determine the data acquisition accuracy according to the reference parameter, and determine a target data acquisition strategy that matches the current behavior scenario according to the data acquisition accuracy and the data acquisition method.

[0134] In one embodiment, the data acquisition device 600 is specifically configured to:

[0135] Obtain a reference parameter, where the reference parameter includes at least one of the operation behavior of the target user on the target application, the location of the electronic device, the device state of the electronic device, the active location of the target user, and the current time period information;

[0136] Determine a target data acquisition strategy that matches the current behavior scenario according to the reference parameter and the data requested to be collected by the target application.

[0137] The data acquisition device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0138] The data acquisition device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0139] The data acquisition device provided in the embodiments of the present application can implement Figures 1 - 5 each process implemented by the method embodiments in , achieving the same technical effects. To avoid repetition, details are not described herein again.

[0140] In some embodiments, as Figure 7 shown, the embodiments of the present application further provide an electronic device 700, including a processor 701 and a memory 702. A program or instruction that can run on the processor 701 is stored on the memory 702. When the program or instruction is executed by the processor 701, it implements each step of the above data acquisition method embodiment and can achieve the same technical effects. To avoid repetition, details are not described herein again.

[0141] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0142] Figure 8 It is a schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.

[0143] The electronic device 800 includes, but is not limited to, components such as a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a target user input unit 807, an interface unit 808, a memory 809, and a processor 810.

[0144] Those skilled in the art can understand that the electronic device 800 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 810 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 8 The structure of the electronic device shown does not limit the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here. Among them, the processor 810 is used to implement the steps in any of the above embodiments.

[0145] It should be understood that in the embodiments of the present application, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042. The graphics processing unit 8041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The target user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. The other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.

[0146] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 809 may include a volatile memory or a non-volatile memory, or the memory 809 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 808 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.

[0147] The processor 810 may include one or more processing units; in some embodiments, the processor 810 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, the target user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor may not be integrated into the processor 810 either.

[0148] The embodiments of the present application also provide a readable storage medium. A program or instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, it implements each process of the above-mentioned data acquisition method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0149] Among them, the processor is the processor in the electronic device in the above embodiment. The readable storage medium includes computer-readable storage media such as computer read-only memory, random access memory, magnetic disk, or optical disc, etc.

[0150] An embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above embodiment of the data acquisition method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0151] It should be understood that the chip mentioned in the embodiment of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0152] An embodiment of the present application provides a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above embodiment of the data acquisition method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0153] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0154] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment method can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.

[0155] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.

Claims

1. A data acquisition method, characterized in that, Applied to an electronic device, the data collection method includes: When it is detected that a target application currently running requests to collect data, determining a current behavior scenario of a target user associated with the electronic device where the target application is located; Determining a target data collection strategy that matches the current behavior scenario according to the target application, where the target data collection strategy includes: allowing collection, frequency-limited collection, prohibiting collection, or collecting according to user operations; Controlling the target application to collect data in the electronic device according to the target data collection strategy.

2. The method according to claim 1, characterized in that, The determining a target data collection strategy that matches the current behavior scenario according to the target application includes: Obtaining a target parameter, where the target parameter is used to indicate the purpose of the data requested to be collected by the target application, or the target parameter is used to indicate the degree of matching between the target application and the current behavior scenario; Determining a target data collection strategy that matches the current behavior scenario according to the target parameter.

3. The method according to claim 2, wherein The determining a target data collection strategy that matches the current behavior scenario according to the target parameter includes: Determining a data collection method according to the target parameter; Obtaining a reference parameter, where the reference parameter includes at least one of the operation behavior of the target user on the target application, the location where the electronic device is located, the device state of the electronic device, the active location of the target user, and the current time period information; Determining the data collection accuracy according to the reference parameter, and determining a target data collection strategy that matches the current behavior scenario according to the data collection accuracy and the data collection method.

4. The method according to claim 1, wherein The determining a target data collection strategy that matches the current behavior scenario according to the target application includes: Obtaining a reference parameter, where the reference parameter includes at least one of the operation behavior of the target user on the target application, the location where the electronic device is located, the device state of the electronic device, the active location of the target user, and the current time period information; Determining a target data collection strategy that matches the current behavior scenario according to the reference parameter and the data requested to be collected by the target application.

5. The method according to claim 1, wherein The determining a target data collection strategy that matches the current behavior scenario according to the target application includes: Determining a sensitivity parameter of the data requested to be collected by the target application; Determining a target data collection strategy that matches the current behavior scenario according to the sensitivity parameter.

6. The method according to claim 1, wherein The electronic device includes a strategy prediction model, and the strategy prediction model is used to determine the current behavior scenario of the target user currently associated with the electronic device where the target application is located; The strategy prediction model is further used to determine a target data collection strategy that matches the current behavior scenario according to the target application.

7. A data acquisition device, characterized in that, Includes: A first determination module, configured to determine the current behavior scenario of the target user associated with the electronic device where the target application is located when it is detected that the target application currently running requests to collect data; A second determination module, configured to determine a target data collection policy that matches the current behavior scenario according to the target application, where the target data collection policy includes: allowing collection, frequency-limited collection, prohibiting collection, or collecting according to user operations; A control module, configured to control the target application to collect data in the electronic device according to the target data collection policy.

8. The device according to claim 7, wherein The second determination module includes: A first acquisition unit, configured to acquire a target parameter, where the target parameter is used to indicate the purpose of the data requested to be collected by the target application, or the target parameter is used to indicate the matching degree between the target application and the current behavior scenario; A first determination unit, configured to determine a target data collection policy that matches the current behavior scenario according to the target parameter.

9. The device according to claim 8, characterized in that, The first determination unit includes: A first determination subunit, configured to determine a data collection method according to the target parameter; An acquisition subunit, configured to acquire a reference parameter, where the reference parameter includes at least one of the operation behavior of the target user on the target application, the location where the electronic device is located, the device state of the electronic device, the active location of the target user, and the current time period information; A second determination subunit, configured to determine a data collection accuracy according to the reference parameter, and determine a target data collection policy that matches the current behavior scenario according to the data collection accuracy and the data collection method.

10. The device according to claim 7, characterized in that, The second determination unit includes: A second acquisition unit, configured to acquire a reference parameter, where the reference parameter includes at least one of the operation behavior of the target user on the target application, the location where the electronic device is located, the device state of the electronic device, the active location of the target user, and the current time period information; A second determination unit, configured to determine a target data collection policy that matches the current behavior scenario according to the reference parameter and the data requested to be collected by the target application.

11. The device according to claim 7, characterized in that, The second determination unit includes: A third determination unit, configured to determine a sensitivity parameter of the data requested to be collected by the target application; A fourth determination unit, configured to determine a target data collection policy that matches the current behavior scenario according to the sensitivity parameter.

12. The device according to claim 7, characterized in that, The data collection device includes a policy prediction model, and the policy prediction model is configured to determine the current behavior scenario of the target user currently associated with the electronic device where the target application is located; The policy prediction model is further configured to determine a target data collection policy that matches the current behavior scenario according to the target application.