WO2020207201A1 - Method and apparatus for constructing user behavior prediction model, storage medium and electronic device - Google Patents

Method and apparatus for constructing user behavior prediction model, storage medium and electronic device Download PDF

Info

Publication number
WO2020207201A1
WO2020207201A1 PCT/CN2020/079549 CN2020079549W WO2020207201A1 WO 2020207201 A1 WO2020207201 A1 WO 2020207201A1 CN 2020079549 W CN2020079549 W CN 2020079549W WO 2020207201 A1 WO2020207201 A1 WO 2020207201A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
scene
information
electronic device
relationship
Prior art date
Application number
PCT/CN2020/079549
Other languages
French (fr)
Chinese (zh)
Inventor
何明
陈仲铭
黄粟
刘耀勇
陈岩
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020207201A1 publication Critical patent/WO2020207201A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0204Market segmentation
    • G06Q30/0205Location or geographical consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data

Definitions

  • This application relates to the field of electronic technology, and in particular to a method, device, storage medium and electronic equipment for constructing a user behavior prediction model.
  • the electronic device can not only identify the user's movement track, but also identify the geographic location of the user.
  • the electronic device can push various information about the geographic location to the user, so as to facilitate the user to understand the information that he is interested in.
  • the embodiments of the present application provide a method, device, storage medium, and electronic equipment for constructing a user behavior prediction model, which can improve the accuracy of the information pushed by the electronic equipment.
  • an embodiment of the present application provides a method for constructing a user behavior prediction model, including:
  • the user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • an embodiment of the present application provides an apparatus for constructing a user behavior prediction model, including:
  • the first acquisition module is used to acquire the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
  • An identification module configured to identify the current scene of the electronic device according to the perception data
  • a determining module configured to determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
  • the second acquiring module is configured to acquire the user's preference for the scene according to the historical track information of the user in the scene;
  • the third obtaining module is configured to obtain the user's behavior habit information in the scene according to the user's historical behavior information in the scene;
  • the establishment module is used to establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • the embodiments of the present application also provide a storage medium in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute:
  • the user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • an embodiment of the present application further provides an electronic device.
  • the electronic device includes a processor and a memory.
  • the memory stores a computer program.
  • the processor calls the computer program stored in the memory. For:
  • the user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • FIG. 1 is a schematic diagram of an application scenario of a method for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 2 is a schematic diagram of the first flow of a method for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram of the second flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of the third process of the method for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of the fourth flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 6 is a schematic diagram of the fifth flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of the sixth flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of the seventh process of the method for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 9 is a schematic diagram of the eighth process of the method for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 10 is a schematic structural diagram of an apparatus for constructing a user behavior prediction model provided by an embodiment of the application.
  • FIG. 11 is a schematic diagram of the first structure of an electronic device provided by an embodiment of this application.
  • FIG. 12 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the application.
  • FIG. 1 is a schematic diagram of an application scenario of a method for constructing a user behavior prediction model provided by an embodiment of the application.
  • the user behavior prediction model construction method is applied to electronic equipment.
  • the electronic device is provided with a panoramic sensing architecture.
  • the panoramic perception architecture is the integration of hardware and software used to implement the method for constructing the user behavior prediction model in an electronic device.
  • the panoramic perception architecture includes an information perception layer, a data processing layer, a feature extraction layer, a scenario modeling layer, and an intelligent service layer.
  • the information perception layer is used to obtain the information of the electronic device itself or the information in the external environment.
  • the information perception layer may include multiple sensors.
  • the information sensing layer includes multiple sensors such as a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a Hall sensor, a position sensor, a gyroscope, an inertial sensor, a posture sensor, a barometer, and a heart rate sensor.
  • the distance sensor can be used to detect the distance between the electronic device and an external object.
  • the magnetic field sensor can be used to detect the magnetic field information of the environment in which the electronic device is located.
  • the light sensor can be used to detect the light information of the environment in which the electronic device is located.
  • the acceleration sensor can be used to detect the acceleration data of the electronic device.
  • the fingerprint sensor can be used to collect the user's fingerprint information.
  • Hall sensor is a kind of magnetic field sensor made according to Hall effect, which can be used to realize automatic control of electronic equipment.
  • the location sensor can be used to detect the current geographic location of the electronic device. Gyroscopes can be used to detect the angular velocity of electronic devices in various directions. Inertial sensors can be used to detect movement data of electronic devices.
  • the attitude sensor can be used to sense the attitude information of the electronic device.
  • the barometer can be used to detect the air pressure of the environment where the electronic device is located.
  • the heart rate sensor can be used to detect the user's heart rate information.
  • the data processing layer is used to process the data obtained by the information perception layer.
  • the data processing layer can perform data cleaning, data integration, data transformation, and data reduction on the data acquired by the information perception layer.
  • data cleaning refers to cleaning up a large amount of data obtained by the information perception layer to eliminate invalid data and duplicate data.
  • Data integration refers to the integration of multiple single-dimensional data acquired by the information perception layer into a higher or more abstract dimension to comprehensively process multiple single-dimensional data.
  • Data transformation refers to the data type conversion or format conversion of the data acquired by the information perception layer, so that the transformed data meets the processing requirements.
  • Data reduction means to minimize the amount of data while maintaining the original appearance of the data as much as possible.
  • the feature extraction layer is used to perform feature extraction on data processed by the data processing layer to extract features included in the data.
  • the extracted features can reflect the state of the electronic device itself or the state of the user or the environmental state of the environment in which the electronic device is located.
  • the feature extraction layer can extract features or process the extracted features through methods such as filtering, packaging, and integration.
  • the filtering method refers to filtering the extracted features to delete redundant feature data.
  • the packaging method is used to screen the extracted features.
  • the integration method refers to the integration of multiple feature extraction methods to construct a more efficient and accurate feature extraction method for feature extraction.
  • the scenario modeling layer is used to construct a model based on the features extracted by the feature extraction layer, and the obtained model can be used to represent the state of the electronic device or the state of the user or the environment.
  • the scenario modeling layer can construct key value models, pattern identification models, graph models, entity connection models, object-oriented models, etc. based on the features extracted by the feature extraction layer.
  • the intelligent service layer is used to provide users with intelligent services based on the model constructed by the scenario modeling layer.
  • the intelligent service layer can provide users with basic application services, can perform system intelligent optimization for electronic devices, and can also provide users with personalized intelligent services.
  • the panoramic perception architecture may also include multiple algorithms, each of which can be used to analyze and process data, and the multiple algorithms can form an algorithm library.
  • the algorithm library may include Markov algorithm, implicit Dirichlet distribution algorithm, Bayesian classification algorithm, support vector machine, K-means clustering algorithm, K-nearest neighbor algorithm, conditional random field, residual network , Long and short-term memory networks, convolutional neural networks, recurrent neural networks and other algorithms.
  • the embodiment of the present application provides a method for constructing a user behavior prediction model, including:
  • the user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • the determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene includes:
  • the operation information includes information about the user's operation of multiple application software of the electronic device
  • the type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
  • the determining the type of relationship between the user and the scene according to the duration and the number of times each application software has been operated includes:
  • the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
  • the number of times of being operated includes the duration of being operated
  • the determining the type of relationship between the user and the scene according to the duration and the number of times of being operated for each application software includes:
  • the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
  • the acquiring the user's preference for the scene according to the historical track information of the user in the scene includes:
  • the user's preference for the scene is determined according to the cumulative number of times.
  • the determining the user's preference for the scene according to the accumulated number of times includes:
  • the preset preference is determined as the user's preference for the scene.
  • the acquiring the user's preference for the scene according to the historical track information of the user in the scene includes:
  • the acquiring behavior information of the user in the scene according to the historical behavior information of the user in the scene includes:
  • the method for constructing a user behavior prediction model provided in the embodiments of the present application can be applied to electronic devices.
  • the electronic device can push information that the user is interested in, thereby improving the accuracy of pushing information.
  • the electronic equipment realizes the effect of intelligent optimization, thereby improving the operating efficiency and operating speed of the electronic equipment.
  • the electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as Electronic watches, electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment.
  • the electronic device can push information and display the pushed information on the display screen of the electronic device.
  • FIG. 2 is a schematic diagram of the first flow of a method for constructing a user behavior prediction model provided by an embodiment of the application.
  • the electronic device can obtain the longitude and latitude information or coordinate points of the user's arrival at the place through the Global Positioning System (GPS). Then, the electronic device converts the latitude and longitude information or coordinate points into geographic location information according to the target software.
  • the geographic location information includes shopping malls, office buildings, bus stations, or communities.
  • the target software includes Baidu map, Tencent map or Gaode map, etc.
  • the electronic device can also directly obtain the geographic location information of the electronic device through the target software.
  • the electronic device can construct a database to store all the acquired data. Therefore, the geographic location information can be recorded as l n .
  • the electronic device collects data related to the geographic location. Wherein the correlation data of at least one raw data d n, and the original data may be related to food, exercise or game.
  • the electronic device can use the MySQL relational database to store the geographic location information and the original data related to the geographic location in the form of a table, without putting all the data together. Therefore, the speed at which the electronic device obtains geographic location information and raw data is improved, and the flexibility of using the electronic device is also improved.
  • the table may be (l n , d n ).
  • the electronic device obtains the perception data of the current scene.
  • the electronic device may obtain the current ambient light intensity through the light sensor of the information perception layer, the current temperature of the electronic device through the temperature sensor, etc., or the current geographic location of the electronic device through the position sensor.
  • the electronic device can also obtain the user's action track. For example, when the electronic device recognizes that the user moves from the current geographic location to another geographic location, the electronic device can track the user's movement track. When the user reaches the target geographic location, the geographic location information of the target geographic location is acquired.
  • the electronic device recognizes the current scene of the electronic device according to the acquired perception data.
  • the acquired sensing data such as temperature, ambient light intensity, and geographic location are used to identify the current scene of the electronic device to determine the current scene of the electronic device.
  • the scene includes: a gas station, a gym, a food court, or a movie theater.
  • the electronic device When the user is in the scene, the electronic device obtains the length of time the user stays in the scene. The duration can be in hours, minutes or seconds. For example, 1 hour, 40 minutes, or 2450 seconds.
  • the electronic device obtains operation information in the scene.
  • the operation information includes the user's operation of multiple application software of the electronic device.
  • the operation information may include: opening Alipay, opening video, or opening navigation.
  • the type of relationship between the user and the scene is determined according to the length of time the user stays in the scene and the operation information in the scene.
  • the relationship type may include home, office, work place, or canteen.
  • the electronic device can store the relationship type and record it as c n .
  • the electronic device obtains the historical track information of the user in the scene.
  • the historical track information may be the cumulative number of times the user appears in the scene.
  • Electronic equipment can obtain the cumulative number of times by using common statistical methods.
  • the cumulative number of times may be the number of times the user appears in the scene within a preset time period.
  • the preset time period may be in units of years, months, weeks, hours, minutes, or seconds.
  • the electronic device may count the cumulative number of times the user appears in the movie theater within one year as five or the electronic device may count the cumulative number of times the user appears in the gym within three months as three.
  • the preset period of time may also be the period of use by the electronic device from the date when the user starts to use the electronic device to the date on the current calendar.
  • the date when the user starts to use the electronic device may be June 6, 2018.
  • the current or current calendar date is August 8, 2019.
  • the length of time the user uses the electronic device is one year, two months, and two days.
  • the electronic device counts that the cumulative number of times the user appeared in the supermarket in one year, two months, and two days is 30 times and the cumulative number of times in the movie theater is 3.
  • the user's preference for the scene is determined according to the cumulative number of times.
  • the electronic device may use a common statistical method to calculate the user's preference for the scene.
  • the preference includes like, generally like or dislike.
  • the preference is to measure the degree of user's preference for the scene. For example, the cumulative number of times a user appears in a movie theater in a day is 10 times. And the cumulative number of times the user appeared in the subway station in the same day is 3 times, so 10 times is greater than 3 times. Therefore, it can be concluded that users like to appear in movie theaters. I generally like to appear in subway stations.
  • the historical track information may also be the cumulative duration of the user's appearance in the scene.
  • Electronic equipment can obtain the accumulated time by using common statistical methods.
  • the cumulative duration may be the cumulative duration of the user appearing in the scene within a preset time period.
  • the preset time period may be in units of years, months, weeks, hours, minutes, or seconds.
  • the cumulative duration may be in units of hours, minutes or seconds. For example, the user appeared in a movie theater on the first day and spent 3 hours in the movie theater. Then, the user appeared in the gym on the next day and stayed in the gym for 2 hours.
  • the user's electronic device counts the cumulative time that the user appears in the movie theater is 5 hours and the cumulative time that the user appears in the gym is 2 hours.
  • the electronic device can count the cumulative time that the user appears in the karaoke hall within one year as 5 hours. Or the electronic device counts the cumulative time that the user appears in the movie theater within one month to be 75 minutes.
  • the preset period of time may also be the period of use by the electronic device from the date when the user starts to use the electronic device to the date on the current calendar.
  • the date when the user starts to use the electronic device may be January 1, 2018.
  • the current or current calendar date is January 1, 2019.
  • the user has used the electronic device for one year.
  • the electronic device counts that the cumulative number of times the user appears in the gym in the one year is 20 times and the cumulative number of times the library is 2 times.
  • the cumulative time that the user appears in the movie theater in a day is 3 hours. And in the same day, the cumulative time that the user appears in the parking lot is 60 minutes. Then 3 hours is greater than 60 minutes, so it can be concluded that users like to appear in the cinema. And to appear in the parking lot is generally like.
  • the electronic device may record the user's preference for the scene as p n .
  • MySQL relational database is used to store it in the form of a table. That is, the table can be (l n , c n , p n ).
  • the electronic device determines multiple historical behaviors of the user in the scene according to the historical behavior information.
  • the historical behaviors include working out in a gym, eating hot pot in a hot pot restaurant, or shopping in a supermarket.
  • the historical behavior information includes application type information, fitness information, game information, or food information of the application opened by the user.
  • the electronic device obtains the number of occurrences of each historical behavior.
  • the electronic device records the number of occurrences of each historical behavior of the user.
  • the user obtains the number of occurrences of each historical behavior in the scene. For example, in the first week, users eat hot pot and play games at a hot pot restaurant. Then the historical behavior of electronic equipment in hot pot restaurants is eating hot pot and playing games. Then, the electronic device records the user's historical behavior in the first week as the eating hot pot and playing games. In the second week, the user’s historical behavior at the same hot pot restaurant was to only eat hot pot. Then the electronic device records the historical behavior of eating hot pot in the same hot pot restaurant in the second week. In summary, by summarizing the historical behaviors that occurred in the hot pot restaurant, it can be obtained that the user's historical behavior in the hot pot restaurant and within the two weeks is eating hot pot twice and playing a game once.
  • the user's behavior habit information in the scene is established according to the multiple historical behaviors and the corresponding times of each of the historical behaviors. Please refer to the above example, then the user's behavioral habit information in hot pot restaurants is that they often eat hot pot and rarely play games.
  • the electronic device can store the user's behavior habit information, which is recorded as b n .
  • the electronic device can establish a relationship table for the geographic location information, the relationship type, the preference degree, and the behavior habit information, namely (l n , c n , p n , b n ).
  • a user behavior prediction model is generated according to the relationship table.
  • the geographic location information, the relationship type, the preference degree, and the behavior habit information are stored in the form of a database.
  • a user behavior prediction model is generated according to the database.
  • the electronic device may directly establish a user behavior prediction model based on the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • the electronic device can obtain social information corresponding to the current scene of the user.
  • the social information can include neighboring resources, laws and customs, customs, or social relations.
  • the electronic device can predict which social information users are interested in.
  • the information of interest is pushed to the user, so that the user can quickly and efficiently receive the information of interest, so that the electronic device improves the accuracy of pushing the information of interest to the user.
  • it can also enable electronic devices to provide users with relevant information efficiently and quickly. For example, the user is shopping in a shopping mall. Certain merchants in shopping malls are conducting discount promotions.
  • the electronic device predicts that the user is interested in the information of discount promotion activities through the user behavior prediction model. Then the electronic device may send the information of the discount promotion activity to the user, so that the user can quickly understand which merchant is conducting the discount promotion activity and what the content of the discount promotion activity is.
  • the electronic device can obtain the geographic location information of the electronic device and the perception data of the scene where the electronic device is currently located through the information perception layer, and the intelligent service layer can identify the location information according to the perception data. Describe the current scene of the electronic device. It is understandable that before the intelligent service layer recognizes the current scene of the electronic device, the electronic device can also process the geographic location data obtained by the information perception layer and the perception data of the current scene through the data processing layer, such as data cleaning and data processing. Transformation and other processing.
  • the electronic device can determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene through the intelligent service layer, and obtain the historical track information of the user in the scene
  • the user's preference for the scene, and the user's behavior habit information in the scene is obtained according to the user's historical behavior information in the scene.
  • the electronic device After obtaining the type of relationship between the user and the scene, the user’s preference for the scene, and the user’s behavior habit information in the scene, the electronic device can use the scene modeling layer according to the geographic location information and the relationship The type, the preference degree, and the behavior habit information establish a behavior prediction model of the user.
  • the intelligent service layer can predict the user's behavior in the future through the behavior prediction model, and provide the user with personalized services based on the prediction result, such as automatically pushing relevant information for the user, and automatically opening related applications.
  • the electronic device constructs a user behavior prediction model.
  • the prediction model based on user behavior can predict the information that the user is interested in when he is in the current scene. Then the information is sent to the user, so that the user can receive the push information in real time, thereby improving the accuracy and efficiency of the electronic device pushing information.
  • FIG. 3 is a schematic diagram of the second flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
  • step 130 determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene includes the following steps:
  • the electronic device can obtain the length of time the user stays in the scene and the operation information in the scene.
  • the duration of stay in the scene is the duration between when the user enters the scene and leaves the scene. For example, if 2 hours have passed since the user entered the movie theater and left the movie theater, then the 2 hours is the length of time the user stays in the scene.
  • the scene operation information may include information that the user operates multiple application software of the electronic device. For example, open the XX game in a movie theater. Open the XX payment software in the restaurant.
  • the electronic device obtains the number of times the user has been operated on each of the application software. For example, users open payment software, game software, and camera software in a shopping mall. Among them, from the time the user enters the shopping mall to when he leaves the mall, the electronic device obtains that the user has opened the payment software 5 times, opened the game software 2 times, and opened the camera software 3 times.
  • the type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated. It is understandable that the electronic device can determine the type of relationship between the user and the scene according to the number of times each application software is operated during the time that the user stays in the scene. The application software that has been operated many times can be considered that the user frequently operates the application software that has been operated many times in the scene. Then, the type of relationship between the user and the scene is determined according to the application software that has been operated many times.
  • FIG. 4 is a schematic diagram of the third process of the method for constructing a user behavior prediction model provided by an embodiment of the application.
  • step 133 determining the type of relationship between the user and the scene according to the duration and the number of times each application software is operated, includes the following steps:
  • the electronic device determines the target application software with the most number of operations based on the acquired number of operations for each application software. Then, according to the duration, the target application software, and a first preset correspondence relationship, the relationship type between the user and the scene is acquired, where the first preset correspondence relationship includes duration, target application software, and relationship Correspondence between types. It is understandable that the target application software that has been operated most frequently is the target application software that the user frequently operates in the scene. The target application software that has been operated many times does not mean that one application software can be multiple application software.
  • the corresponding relationship between the duration, the target application software, and the relationship type may be as shown in Table 1.
  • the type of relationship between the user and the scene can be determined according to the duration and the target application software. For example, if the user is in the XX community and opened the most frequently operated video software and Taobao software within 3 hours, then according to the 3 hours, video software and Taobao software, the relationship type between the user and the XX community can be obtained as home.
  • the electronic device can set a preset threshold for the number of times of operation to accurately obtain target application operations that have been operated many times. That is, the application software that is greater than or equal to the preset threshold of the number of operations can be selected as the target application software. For example, the electronic device obtains that the number of operations of the payment software is 3 times, the number of operations of the photographing software is 5 times, and the number of operations of the video software is 1 time. The preset threshold for the number of operations is 2. Then select the application software corresponding to the number of operations greater than or equal to 2 as the target application software. That is, payment software and camera software are selected as the target application software.
  • FIG. 5 is a schematic flowchart of the fourth method for constructing a user behavior prediction model provided by an embodiment of the application.
  • step 133 determining the type of relationship between the user and the scene according to the duration and the number of times each application software is operated, includes the following steps:
  • the electronic device determines the target application software for the operating time according to the acquired operating time of each application software.
  • the number of operations includes the duration of operations.
  • the target application software that has been operated for the longest time is the target application software that the user frequently operates in the scene.
  • the target application software that has been operated for the longest time does not mean that one application software can be multiple application software.
  • the corresponding relationship between the duration, the target application software, and the relationship type may be as shown in Table 2.
  • the type of relationship between the user and the scene can be determined according to the duration and the target application software. For example, if the user is in the XX community and opened the video software and Taobao software that have been operated for the longest time within 3 hours, then according to the 3 hours, video software and Taobao software, it can be obtained that the type of relationship between the user and the XX community is home.
  • the electronic device may set a preset operating time threshold to accurately obtain the target application operation with the longest operating time. That is, the application software that is greater than or equal to the preset operating time threshold can be selected as the target application software. For example, the electronic device obtains that the payment software has been operated for 3 hours, the photographing software has been operated for 2 hours, and the video software has been operated for 40 minutes. The preset operating time threshold is 1 hour. Then, the application software corresponding to the operated time length greater than or equal to 1 is selected as the target application software. That is, payment software and camera software are selected as the target application software.
  • FIG. 6 is a schematic flowchart of the fifth method for constructing a user behavior prediction model provided by an embodiment of this application.
  • step 140 obtaining the user's preference for the scene according to the user's historical track information in the scene, includes the following steps:
  • the electronic device obtains the historical track information of the user in the scene.
  • the historical track information may be the cumulative number of times the user appears in the scene.
  • Electronic equipment can obtain the cumulative number of times by using common statistical methods.
  • the cumulative number of times may be the number of times the user appears in the scene within a preset time period.
  • the preset time period may be in units of years, months, weeks, hours, minutes, or seconds.
  • the electronic device may count the cumulative number of times the user appears in the movie theater within one year as five or the electronic device may count the cumulative number of times the user appears in the gym within three months as three.
  • the preset period of time may also be the period of use by the electronic device from the date when the user starts to use the electronic device to the date on the current calendar.
  • the date when the user starts to use the electronic device may be June 6, 2018.
  • the current or current calendar date is August 8, 2019.
  • the length of time the user uses the electronic device is one year, two months, and two days.
  • the electronic device counts that the cumulative number of times the user appeared in the supermarket in one year, two months, and two days is 30 times and the cumulative number of times in the movie theater is 3.
  • the user's preference for the scene is determined according to the cumulative number of times.
  • the electronic device may use a common statistical method to calculate the user's preference for the scene.
  • the preference includes like, generally like or dislike.
  • the preference is to measure the degree of user's preference for the scene. For example, the cumulative number of times a user appears in a movie theater in a day is 10 times. And the cumulative number of times the user appeared in the subway station in the same day is 3 times, so 10 times is greater than 3 times. Therefore, it can be concluded that users like to appear in movie theaters. I generally like to appear in subway stations.
  • FIG. 7 is a schematic flowchart of the sixth method for constructing a user behavior prediction model provided by an embodiment of the application.
  • step 142 determining the user's preference for the scene according to the cumulative number of times, includes the following steps:
  • the preset preference can be obtained.
  • the cumulative number of times is 10, and according to Table 3, it can be obtained that the user's preference for the scene is like.
  • the acquired preset preference degree can be determined as the user's preference degree for the scene.
  • the electronic device may store the corresponding relationship between the preset preference level and the preset preference degree. That is, the preset preference degree is obtained according to the corresponding relationship between the accumulated times, the preset preference level and the fourth preset.
  • the fourth preset correspondence relationship includes the correspondence relationship between the cumulative number of times, the preset preference level and the preset preference degree. Then, the corresponding relationship between the accumulated times, the preset preference level and the preset preference degree can be as shown in Table 4.
  • the electronic device obtains the preset preference degree from Table 4.
  • the preset preference level can also be in the form of a score or a percentage. That is, according to the accumulated number of times, not only the preference level can be obtained, but also the user's preference for the scene can be obtained. Then, the acquired preset preference is determined as the user's preference for the scene.
  • FIG. 8 is a schematic flowchart of the seventh method for constructing a user behavior prediction model provided by an embodiment of this application.
  • step 140 obtaining the user's preference for the scene according to the user's historical track information in the scene, includes the following steps:
  • the historical trajectory information may be the cumulative duration of the user's appearance in the scene. Electronic equipment can obtain the accumulated time by using common statistical methods.
  • the cumulative duration may be the cumulative duration of the user appearing in the scene within a preset time period.
  • the preset time period may be in units of years, months, weeks, hours, minutes, or seconds.
  • the cumulative duration may be in units of hours, minutes or seconds. For example, the user appeared in a movie theater on the first day and spent 3 hours in the movie theater. Then, the user appeared in the gym on the next day and stayed in the gym for 2 hours.
  • the user's electronic device counts the cumulative time that the user appears in the movie theater is 5 hours and the cumulative time that the user appears in the gym is 2 hours.
  • the electronic device can count the cumulative time that the user appears in the karaoke hall within one year as 5 hours. Or the electronic device counts the cumulative time that the user appears in the movie theater within one month to be 75 minutes.
  • the preset period of time may also be the period of use by the electronic device from the date when the user starts to use the electronic device to the date on the current calendar.
  • the date when the user starts to use the electronic device may be January 1, 2018.
  • the current or current calendar date is January 1, 2019.
  • the user has used the electronic device for one year.
  • the electronic device counts that the cumulative number of times the user appears in the gym in the one year is 20 times and the cumulative number of times the library is 2 times.
  • the cumulative time that the user appears in the movie theater in a day is 3 hours. And in the same day, the cumulative time that the user appears in the parking lot is 60 minutes. Then 3 hours is greater than 60 minutes, so it can be concluded that users like to appear in the cinema. And to appear in the parking lot is generally like.
  • the fifth preset correspondence relationship includes the correspondence relationship between the accumulated duration and the preset preference degree
  • the preset preference is determined as the user's preference for the scene.
  • Cumulative duration Default preference 1 hour like 5 minutes Generally like 4 seconds hate ... ...
  • the user's preset preference for the scene can be obtained.
  • the cumulative time that the user appears in the scene is 1 hour, and the user's preset preference for the scene is like. Then the preference is the user's preference for the scene. That is, the preset preference is determined as the user's preference for the scene.
  • the electronic device may store the corresponding relationship between the preset preference level and the preset preference degree. That is, according to the corresponding relationship between the accumulated time, the preset preference level and the sixth preset, the preset preference degree is obtained.
  • the sixth preset correspondence relationship includes the correspondence relationship between the accumulated duration, the preset preference level and the preset preference degree. Then, the corresponding relationship between the accumulated duration, the preset preference level and the preset preference degree can be as shown in Table 6.
  • Cumulative duration Default preference level Default preference 1 hour Level 5 like 5 minutes level 4 Generally like 4 seconds level 2 hate ... ... ...
  • the electronic device obtains the preset preference degree from Table 6.
  • the preset preference level can also be in the form of a score or a percentage. That is, according to the accumulated duration, not only the preference level can be obtained, but also the user's preference for the scene can be obtained. Then the preset preference is determined as the user's preference for the scene.
  • FIG. 9 is a schematic flowchart of the eighth method for constructing a user behavior prediction model provided by an embodiment of this application.
  • step 150 obtaining the user's behavior habit information in the scene according to the user's historical behavior information in the scene, includes the following steps:
  • the electronic device determines multiple historical behaviors of the user in the scene according to the historical behavior information.
  • the historical behaviors include working out in a gym, eating hot pot in a hot pot restaurant, or shopping in a supermarket.
  • the historical behavior information includes application type information, fitness information, game information, or food information of the application opened by the user.
  • the electronic device can use the k-nearest neighbor classification algorithm (k-nearest neighbor classification, KNN algorithm) to obtain user behavior information.
  • the multiple raw data are related information collected in the geographic location information.
  • the raw data may be related to food, games or fitness.
  • the electronic device does not know what is in the end of the original data d n Yes. It is necessary to more raw data d n classified by KNN algorithm, to determine whether each of the original data d n corresponding to the data type.
  • the data types include food, games, or fitness.
  • the principle of the KNN algorithm is to classify new data by calculating the distance between the new data and different types of data points in the historical sample data.
  • the electronic device stores multiple historical food data and multiple historical fitness data.
  • the type of the historical food data is a food type.
  • the type of the historical fitness data is a fitness type.
  • the electronic equipment collects the original data of A. Input the feature vector of A's original data into the KNN algorithm model. Then the distance between the original data of A and each historical food data can be calculated by Euclidean distance formula or Manhattan distance formula. And calculate the distance between A's original data and each historical fitness data.
  • K points with the smallest distance value where K points can be 10, 20, or 100.
  • the larger the value of K the more accurate the type obtained by the original data of A.
  • the type with the highest frequency among the K points is selected as the predicted classification of A's original data. For example, if K points have the highest frequency in the food type, then the original data of A is the food type. Or if K points have the highest frequency in the fitness type, then the original data of A is the fitness type.
  • the electronic device acquires multiple historical behaviors of historical behavior information. For example, if the historical behavior information is food type information, then the historical behavior can be eating food, eating hot pot, or eating green vegetables. Then, the electronic device obtains the number of occurrences of each historical behavior. The electronic device records the number of occurrences of each historical behavior of the user. In a preset time period, the user obtains the number of occurrences of each historical behavior in the scene. For example, in the first week, users eat hot pot and play games at a hot pot restaurant. Then the historical behavior of the electronic device in the hot pot restaurant is eating hot pot and playing games, and then the electronic device records the eating hot pot and playing games.
  • the historical behavior information is food type information
  • the historical behavior can be eating food, eating hot pot, or eating green vegetables.
  • the electronic device obtains the number of occurrences of each historical behavior.
  • the electronic device records the number of occurrences of each historical behavior of the user. In a preset time period, the user obtains the number of occurrences of each
  • the user In the second week, the user’s historical behavior at the same hot pot restaurant was to only eat hot pot.
  • the electronic device records that the user ate hot pot at the same hot pot restaurant in the second week.
  • summarizing the user's historical behavior in the hot pot restaurant we can get that the user has eaten hot pot twice and played a game once in the hot pot restaurant.
  • the user's behavior habit information in the scene is established according to the multiple historical behaviors and the corresponding times of each of the historical behaviors. Please refer to the above example, then the user's behavioral habit information in hot pot restaurants is that they often eat hot pot and rarely play games.
  • the establishment of the user's behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors may be as shown in Table 7.
  • the user's behavior habit information in the scene can be obtained according to the historical behavior and the number of times. For example, as shown in Table 7, if a user eats hot pot 8 times in a hot pot restaurant, it can be obtained that the user often eats hot pot in a hot pot restaurant. And the user eats dessert 5 times in the hot pot restaurant, you can get the user sometimes eat dessert in the hot pot restaurant.
  • the preset frequency interval can be matched according to the frequency.
  • the seventh preset correspondence relationship includes the correspondence relationship between historical behavior, frequency, preset frequency interval, and behavior habit information. Then, the correspondence between historical behavior, frequency, preset frequency interval, and behavior habit information can be as shown in Table 8.
  • Historical behavior frequency Preset frequency interval Behavior information eat hot pot 8 [5,9] Often eat hot pot Eat dessert 5 [4,6] Sometimes for dessert Fitness 2 [1,3] Little fitness ... ... ... ...
  • the electronic device can obtain the user's behavior habit information in the scene according to Table 8.
  • the frequency and the preset frequency interval can be stored in the electronic device in advance, and when the frequency is obtained, the preset frequency interval can be quickly matched.
  • this application is not limited by the order of execution of the various steps described, and certain steps may also be carried out in other order or carried out simultaneously without conflict.
  • the method for constructing a user behavior prediction model includes: acquiring the geographic location information of the electronic device currently located and the perception data of the scene where the electronic device is currently located; The current scene of the electronic device; the type of relationship between the user and the scene is determined according to the length of time the user stays in the scene and the operation information in the scene; the user pair is obtained according to the historical track information of the user in the scene.
  • the preference degree of the scene; the user's behavior habit information in the scene is obtained according to the user's historical behavior information in the scene; the preference degree and the behavior habit information are obtained according to the geographic location information, the relationship type, the preference Establish the user behavior prediction model.
  • the electronic device can push information of interest to the user according to the user's preference for the geographic location and behavior habit information, so as to improve the accuracy of the electronic device pushing information to the user. And it improves the speed and efficiency of the electronic device when pushing information.
  • An embodiment of the present application also provides a device for constructing a user behavior prediction model, including:
  • a user behavior prediction model construction device including:
  • the first acquisition module is used to acquire the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
  • An identification module configured to identify the current scene of the electronic device according to the perception data
  • a determining module configured to determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
  • the second acquiring module is configured to acquire the user's preference for the scene according to the historical track information of the user in the scene;
  • the third obtaining module is configured to obtain the user's behavior habit information in the scene according to the user's historical behavior information in the scene;
  • the establishment module is used to establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • the determining module is used to:
  • the operation information includes information about the user's operation of multiple application software of the electronic device
  • the type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
  • the determining module when determining the type of relationship between the user and the scene according to the duration and the number of times each application software is operated, is configured to:
  • the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
  • the number of times of operation includes the duration of operation.
  • the determining module is configured to :
  • the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
  • the second acquiring module when acquiring the user's preference for the scene according to the historical track information of the user in the scene, is configured to:
  • the user's preference for the scene is determined according to the cumulative number of times.
  • the second acquiring module when determining the user's preference for the scene according to the cumulative number of times, is configured to:
  • the preset preference is determined as the user's preference for the scene.
  • the second acquiring module when acquiring the user's preference for the scene according to the historical track information of the user in the scene, is configured to:
  • the third acquiring module when acquiring the user's behavior habit information in the scene according to the user's historical behavior information in the scene, is configured to:
  • the apparatus for constructing a user behavior prediction model provided in the embodiment of the present application may be integrated in an electronic device.
  • the electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as Electronic watches, electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment.
  • FIG. 10 is a schematic structural diagram of a user behavior prediction model construction apparatus provided by an embodiment of the application.
  • the user behavior prediction model construction device 200 includes: a first acquisition module 201, an identification module 202, a determination module 203, a second acquisition module 204, a third acquisition module 205, and an establishment module 206.
  • the first acquisition module 201 is configured to acquire the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located.
  • the first obtaining module 201 may obtain the longitude and latitude information or coordinate points of the user's arrival at the place through the Global Positioning System (GPS). Then, the first acquisition module 201 converts the latitude and longitude information or coordinate points into geographic location information according to the target software.
  • the geographic location information includes shopping malls, office buildings, bus stations, or communities.
  • the target software includes Baidu map, Tencent map or Gaode map, etc.
  • the first obtaining module 201 may also directly obtain the geographic location information of the electronic device through the target software.
  • the first acquisition module 201 can construct a database to store all the acquired data. Therefore, the geographic location information can be recorded as l n .
  • the first obtaining module 201 collects data related to the geographic location. Wherein the correlation data of at least one raw data d n, and the original data may be related to food, exercise or game.
  • the first obtaining module 201 may use a MySQL relational database to store the geographic location information and the original data related to the geographic location in the form of a table, without putting all the data together. Therefore, the speed at which the electronic device obtains geographic location information and raw data is improved, and the flexibility of using the electronic device is also improved.
  • the table may be (l n , d n ).
  • the first acquisition module 201 acquires the perception data of the current scene.
  • the electronic device may obtain the current ambient light intensity through the light sensor of the information perception layer, the current temperature of the electronic device through the temperature sensor, etc., or the current geographic location of the electronic device through the position sensor.
  • the first acquiring module 201 can also acquire the user's action track. For example, when the electronic device recognizes that the user moves from the current geographic location to another geographic location, the electronic device can track the user's movement track. When the user reaches the target geographic location, the geographic location information of the target geographic location is acquired.
  • the recognition module 202 is configured to recognize the current scene of the electronic device according to the perception data.
  • the recognition module 202 recognizes the current scene of the electronic device according to the acquired perception data.
  • the acquired sensing data such as temperature, ambient light intensity, and geographic location are used to identify the current scene of the electronic device to determine the current scene of the electronic device.
  • the scenes include: gas stations, gyms, food courts or scenes around movie theaters.
  • the determining module 203 is configured to determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene.
  • the determining module 203 obtains the length of time the user stays in the scene.
  • the duration can be in hours, minutes or seconds. For example, 1 hour, 40 minutes, or 2450 seconds.
  • the determining module 203 obtains the user's operation information in the scene.
  • the operation information includes the user's operation of multiple application software of the electronic device.
  • the operation information may include: opening Alipay, opening video, or opening navigation.
  • the type of relationship between the user and the scene is determined according to the length of time the user stays in the scene and the operation information in the scene.
  • the relationship type may include home, office, work place, or canteen.
  • the determining module 203 may store the relationship type and record it as c n .
  • the second obtaining module 204 obtains the user's preference for the scene according to the historical track information of the user in the scene.
  • the second acquiring module 204 acquires historical track information of the user in the scene.
  • the historical track information may be the cumulative number of times the user appears in the scene.
  • the second obtaining module 204 can obtain the cumulative number of times by using a common statistical method.
  • the cumulative number of times may be the number of times the user appears in the scene within a preset time period.
  • the preset time period may be in units of years, months, weeks, hours, minutes, or seconds.
  • the second acquisition module 204 can count the cumulative number of times the user appears in the movie theater within one year as five or the second acquisition module 204 can count the cumulative number of times the user appears in the gym within three months as three.
  • the preset time period may also be the second obtaining module 204 counts the use time period from the date when the user starts using the electronic device to the date on the current calendar.
  • the date when the user starts to use the electronic device may be June 6, 2018.
  • the current or current calendar date is August 8, 2019.
  • the length of time the user uses the electronic device is one year, two months, and two days.
  • the second acquisition module 204 counts that the cumulative number of times the user appeared in the supermarket in one year, two months, and two days is 30 times and the cumulative number of times in the movie theater is 3 times.
  • the user's preference for the scene is determined according to the cumulative number of times.
  • the second obtaining module 204 may use a common statistical method to calculate the user's preference for the scene.
  • the preference includes like, generally like or dislike.
  • the preference is to measure the degree of user's preference for the scene. For example, the cumulative number of times a user appears in a movie theater in a day is 10 times. And the cumulative number of times the user appeared in the subway station in the same day is 3 times, so 10 times is greater than 3 times. Therefore, it can be concluded that users like to appear in movie theaters. I generally like to appear in subway stations.
  • the historical track information may also be the cumulative duration of the user's appearance in the scene.
  • the second obtaining module 204 can obtain the accumulated time length by using a common statistical method.
  • the cumulative duration may be the cumulative duration of the user appearing in the scene within a preset time period.
  • the preset time period may be in units of years, months, weeks, hours, minutes, or seconds.
  • the cumulative duration may be in units of hours, minutes or seconds. For example, the user appeared in a movie theater on the first day and spent 3 hours in the movie theater. Then, the user appeared in the gym on the next day and stayed in the gym for 2 hours.
  • the second acquisition module 204 counts that the cumulative time that the user appears in the movie theater is 5 hours and the cumulative time that the user appears in the gym is 2 hours.
  • the second acquisition module 204 can count the cumulative time that the user appears in the karaoke hall within one year as 5 hours. Or, the second acquiring module 204 counts that the cumulative time that the user appears in the movie theater within one month is 75 minutes.
  • the preset time period may also be the second obtaining module 204 counts the use time period from the date when the user starts using the electronic device to the date on the current calendar.
  • the date when the user starts to use the electronic device may be January 1, 2018.
  • the current or current calendar date is January 1, 2019.
  • the user has used the electronic device for one year.
  • the second acquisition module 204 counts that the cumulative number of times that the user appears in the gym in the one year is 20 times and the cumulative number of times the library is 2 times.
  • the cumulative time that the user appears in the movie theater in a day is 3 hours. And in the same day, the cumulative time that the user appears in the parking lot is 60 minutes. Then 3 hours is greater than 60 minutes, so it can be concluded that users like to appear in the cinema. And to appear in the parking lot is generally like.
  • the second acquiring module 204 may record the user's preference for the scene, which is recorded as p n .
  • MySQL relational database is used to store it in the form of a table. That is, the table can be (l n , c n , p n ).
  • the third obtaining module 205 is configured to obtain the user's behavior habit information in the scene according to the user's historical behavior information in the scene.
  • the third acquiring module 205 determines multiple historical behaviors of the user in the scene according to the historical behavior information.
  • the historical behaviors include working out in a gym, eating hot pot in a hot pot restaurant, or shopping in a supermarket.
  • the historical behavior information includes application type information, fitness information, game information, or food information of the application opened by the user.
  • the third obtaining module 205 obtains the number of occurrences of each historical behavior.
  • the third obtaining module 205 has the number of occurrences of each historical behavior of the user.
  • the user obtains the number of occurrences of each historical behavior in the scene. For example, in the first week, users eat hot pot and play games at a hot pot restaurant. Then the historical behavior of electronic equipment in hot pot restaurants is eating hot pot and playing games. Then, the third acquiring module 205 records the user's historical behavior in the first week as the eating hot pot and playing games. In the second week, the user’s historical behavior at the same hot pot restaurant was to only eat hot pot.
  • the electronic device records the historical behavior of eating hot pot in the same hot pot restaurant in the second week.
  • the electronic device records the historical behavior of eating hot pot in the same hot pot restaurant in the second week.
  • the user's behavior habit information in the scene is established according to the multiple historical behaviors and the corresponding times of each of the historical behaviors. Please refer to the above example, then the user's behavioral habit information in hot pot restaurants is that they often eat hot pot and rarely play games.
  • the third acquiring module 205 can store the user's behavior habit information, and record it as b n .
  • the establishment module 206 is configured to establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • the establishment module 206 may establish a relationship table for the geographic location information, the relationship type, the preference degree, and the behavior habit information, namely (l n , c n , p n , b n ). Generate a user behavior prediction model according to the relationship table. Or the geographic location information, the relationship type, the preference degree, and the behavior habit information are stored in the form of a database. A user behavior prediction model is generated according to the database. Or the establishment module 206 may directly establish a user behavior prediction model based on the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • the electronic device can obtain social information corresponding to the current scene of the user.
  • the social information can include neighboring resources, laws and customs, customs, or social relations.
  • the electronic device can predict which social information users are interested in.
  • the information of interest is pushed to the user, so that the user can quickly and efficiently receive the information of interest, so that the electronic device improves the accuracy of pushing the information of interest to the user.
  • it can also enable electronic devices to provide users with relevant information efficiently and quickly. For example, the user is shopping in a shopping mall. Certain merchants in shopping malls are conducting discount promotions.
  • the establishment module 206 predicts that the user is interested in the information of discount promotion activities through the user behavior prediction model. Then the electronic device may send the information of the discount promotion activity to the user, so that the user can quickly understand which merchant is conducting the discount promotion activity and what the content of the discount promotion activity is.
  • the electronic device constructs a user behavior prediction model.
  • the prediction model based on user behavior can predict the information that the user is interested in when he is in the current scene. Then the information is sent to the user, so that the user can receive the push information in real time, thereby improving the accuracy and efficiency of the electronic device pushing information.
  • the determining module 203 is configured to perform the following steps:
  • the operation information includes information about the user's operation of multiple application software of the electronic device
  • the type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
  • the determining module 203 can obtain the length of time the user stays in the scene and the operation information in the scene.
  • the duration of stay in the scene is the duration between when the user enters the scene and leaves the scene. For example, if 2 hours have passed since the user entered the movie theater and left the movie theater, then the 2 hours is the length of time the user stays in the scene.
  • the scene operation information may include information that the user operates multiple application software of the electronic device. For example, open the XX game in a movie theater. Open the XX payment software in the restaurant.
  • the determining module 203 obtains the number of times the user has been operated on each of the application software. For example, users open payment software, game software, and camera software in a shopping mall. Among them, from the time the user enters the shopping mall to when he leaves the mall, the electronic device obtains that the user has opened the payment software 5 times, opened the game software 2 times, and opened the camera software 3 times.
  • the type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated. It is understandable that, within the length of time the user stays in the scene, the determining module 203 can determine the type of relationship between the user and the scene according to the number of times each application software is operated. The application software that has been operated many times can be considered that the user frequently operates the application software that has been operated many times in the scene. Then, the type of relationship between the user and the scene is determined according to the application software that has been operated many times.
  • the determining module 203 is configured to perform the following steps:
  • the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
  • the determining module 203 determines the target application software with the most number of operations based on the acquired number of operations for each application software. Then, according to the duration, the target application software, and a first preset correspondence relationship, the relationship type between the user and the scene is acquired, where the first preset correspondence relationship includes duration, target application software, and relationship Correspondence between types. It is understandable that the target application software that has been operated most frequently is the target application software that the user frequently operates in the scene. The target application software that has been operated many times does not mean that one application software can be multiple application software.
  • the corresponding relationship between the duration, the target application software and the relationship type may be as shown in Table 9.
  • the type of relationship between the user and the scene can be determined according to the duration and the target application software. For example, if the user is in the XX community and opened the most frequently operated video software and Taobao software within 3 hours, then according to the 3 hours, video software and Taobao software, the relationship type between the user and the XX community can be obtained as home.
  • the determining module 203 may set a preset threshold of the number of times of operations to accurately obtain target application operations that have been operated many times. That is, the application software that is greater than or equal to the preset threshold of the number of operations can be selected as the target application software.
  • the electronic device obtains that the number of operations of the payment software is 3 times, the number of operations of the photographing software is 5 times, and the number of operations of the video software is 1 time.
  • the preset threshold for the number of operations is 2. Then select the application software corresponding to the number of operations greater than or equal to 2 as the target application software. That is, payment software and camera software are selected as the target application software.
  • the determining module 203 is configured to perform the following steps:
  • the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
  • the determining module 203 determines the target application software for the duration of operation according to the acquired duration of operation of each application software.
  • the number of operations includes the duration of operations.
  • the determining module 203 obtains the type of relationship between the user and the scene according to the duration, the target application software, and a second preset correspondence relationship, where the second preset correspondence relationship includes duration, target application Correspondence between software and relationship types.
  • the target application software that has been operated for the longest time is the target application software that the user frequently operates in the scene.
  • the target application software that has been operated for the longest time does not mean that one application software can be multiple application software.
  • the corresponding relationship between the duration, the target application software, and the relationship type may be as shown in Table 10.
  • the type of relationship between the user and the scene can be determined according to the duration and the target application software. For example, if the user is in the XX community and opened the video software and Taobao software that have been operated for the longest time within 3 hours, then according to the 3 hours, video software and Taobao software, it can be obtained that the type of relationship between the user and the XX community is home.
  • the electronic device may set a preset operating time threshold to accurately obtain the target application operation with the longest operating time. That is, the application software that is greater than or equal to the preset operating time threshold can be selected as the target application software. For example, the electronic device obtains that the payment software has been operated for 3 hours, the photographing software has been operated for 2 hours, and the video software has been operated for 40 minutes. The preset operating time threshold is 1 hour. Then, the application software corresponding to the operated time length greater than or equal to 1 is selected as the target application software. That is, payment software and camera software are selected as the target application software.
  • the second acquisition module 204 is configured to perform the following steps:
  • the user's preference for the scene is determined according to the cumulative number of times.
  • the second acquiring module 204 acquires historical track information of the user in the scene.
  • the historical track information may be the cumulative number of times the user appears in the scene.
  • Electronic equipment can obtain the cumulative number of times by using common statistical methods.
  • the cumulative number of times may be the number of times the user appears in the scene within a preset time period.
  • the preset time period may be in units of years, months, weeks, hours, minutes, or seconds.
  • the second acquisition module 204 may count the cumulative number of times the user appears in the movie theater within one year as five or the second acquisition module 204 may count the cumulative number of times the user appears in the gym within three months as three.
  • the preset time period may also be the second obtaining module 204 counts the use time period from the date when the user starts using the electronic device to the date on the current calendar.
  • the date when the user starts to use the electronic device may be June 6, 2018.
  • the current or current calendar date is August 8, 2019.
  • the length of time the user uses the electronic device is one year, two months, and two days.
  • the second acquisition module 204 counts that the cumulative number of times the user appeared in the supermarket in one year, two months, and two days is 30 times and the cumulative number of times in the movie theater is 3 times.
  • the user's preference for the scene is determined according to the cumulative number of times.
  • the second obtaining module 204 may use a common statistical method to calculate the user's preference for the scene.
  • the preference includes like, generally like or dislike.
  • the preference is to measure the degree of user's preference for the scene. For example, the cumulative number of times a user appears in a movie theater in a day is 10 times. And the cumulative number of times the user appeared in the subway station in the same day is 3 times, so 10 times is greater than 3 times. Therefore, it can be concluded that users like to appear in movie theaters. I generally like to appear in subway stations.
  • the second acquisition module 204 is configured to perform the following steps:
  • the preset preference is determined as the user's preference for the scene.
  • the preset preference can be obtained.
  • the cumulative number of times is 10, and according to Table 10, it can be obtained that the user's preference for the scene is like.
  • the acquired preset preference degree can be determined as the user's preference degree for the scene.
  • the second acquisition module 204 may store the corresponding relationship between the preset preference level and the preset preference degree. That is, the preset preference degree is obtained according to the corresponding relationship between the accumulated times, the preset preference level and the fourth preset.
  • the corresponding relationship between the cumulative number of times, the preset preference level and the preset preference degree can be shown in Table 12.
  • the second obtaining module 204 obtains the preset preference degree from the table 12.
  • the preset preference level can also be in the form of a score or a percentage. That is, according to the accumulated number of times, not only the preference level can be obtained, but also the user's preference for the scene can be obtained. Then, the acquired preset preference is determined as the user's preference for the scene.
  • the second acquisition module 204 is configured to perform the following steps:
  • the historical trajectory information may be the cumulative duration of the user's appearance in the scene.
  • the second obtaining module 204 can obtain the accumulated time length by using a common statistical method.
  • the cumulative duration may be the cumulative duration of the user appearing in the scene within a preset time period.
  • the preset time period may be in units of years, months, weeks, hours, minutes, or seconds.
  • the cumulative duration may be in units of hours, minutes or seconds. For example, the user appeared in a movie theater on the first day and spent 3 hours in the movie theater. Then, the user appeared in the gym on the next day and stayed in the gym for 2 hours.
  • the second acquisition module 204 counts that the cumulative time that the user appears in the movie theater is 5 hours and the cumulative time that the user appears in the gym is 2 hours.
  • the second acquisition module 204 can count the cumulative time that the user appears in the karaoke hall within one year as 5 hours. Or, the second obtaining module 204 counts that the cumulative time that the user appears in the movie theater within one month is 75 minutes.
  • the preset time period may also be the second obtaining module 204 counts the use time period from the date when the user starts using the electronic device to the date on the current calendar.
  • the date when the user starts to use the electronic device may be January 1, 2018.
  • the current or current calendar date is January 1, 2019.
  • the user has used the electronic device for one year.
  • the second acquisition module 204 counts that the cumulative number of times that the user appears in the gym in the one year is 20 times and the cumulative number of times the library is 2 times.
  • the cumulative time that the user appears in the movie theater in a day is 3 hours. And in the same day, the cumulative time that the user appears in the parking lot is 60 minutes. Then 3 hours is greater than 60 minutes, so it can be concluded that users like to appear in the cinema. And to appear in the parking lot is generally like.
  • the fifth preset correspondence relationship includes the correspondence relationship between the accumulated duration and the preset preference degree
  • the preset preference is determined as the user's preference for the scene. Therefore, the corresponding relationship between the accumulated duration and the preset preference is shown in Table 13.
  • Cumulative duration Default preference 1 hour like 5 minutes Generally like 4 seconds hate ... ...
  • the second obtaining module 204 can obtain the user's preset preference for the scene according to Table 13. For example, the cumulative time that the user appears in the scene is 1 hour, and the user's preset preference for the scene is like. Then the preference is the user's preference for the scene. That is, the preset preference is determined as the user's preference for the scene.
  • the second acquisition module 204 may store the corresponding relationship between the preset preference level and the preset preference degree. That is, according to the corresponding relationship between the accumulated time, the preset preference level and the sixth preset, the preset preference degree is obtained.
  • the corresponding relationship between the accumulated duration, the preset preference level and the preset preference degree can be shown in Table 14.
  • Cumulative duration Default preference level Default preference 1 hour Level 5 like 5 minutes level 4 Generally like 4 seconds level 2 hate ... ... ...
  • the second obtaining module 204 obtains the preset preference degree from the table 14.
  • the preset preference level can also be in the form of a score or a percentage. That is, according to the accumulated duration, not only the preference level can be obtained, but also the user's preference for the scene can be obtained. Then the preset preference is determined as the user's preference for the scene.
  • the third obtaining module 205 is configured to perform the following steps:
  • the third acquiring module 205 determines multiple historical behaviors of the user in the scene according to the historical behavior information.
  • the historical behaviors include working out in a gym, eating hot pot in a hot pot restaurant, or shopping in a supermarket.
  • the historical behavior information includes application type information, fitness information, game information, or food information of the application opened by the user.
  • the electronic device can use the k-nearest neighbor classification algorithm (k-nearest neighbor classification, KNN algorithm) to obtain user behavior information.
  • the multiple raw data are related information collected in the geographic location information.
  • the raw data may be related to food, games or fitness.
  • a third acquisition module 205 does not know what is in the end of the original data d n Yes. It is necessary to more raw data d n classified by KNN algorithm, to determine whether each of the original data d n corresponding to the data type.
  • the data types include food, games, or fitness.
  • the principle of the KNN algorithm is to classify new data by calculating the distance between the new data and different types of data points in the historical sample data.
  • the third acquisition module 205 stores multiple pieces of historical food data and multiple pieces of historical fitness data.
  • the type of the historical food data is a food type.
  • the type of the historical fitness data is a fitness type.
  • the third acquisition module 205 acquires A raw data. Input the feature vector of A's original data into the KNN algorithm model. Then the distance between the original data of A and each historical food data can be calculated by Euclidean distance formula or Manhattan distance formula. And calculate the distance between A's original data and each historical fitness data.
  • K points with the smallest distance value where K points can be 10, 20, or 100.
  • the larger the value of K the more accurate the type obtained by the original data of A.
  • the type with the highest frequency among the K points is selected as the predicted classification of A's original data. For example, if K points have the highest frequency in the food type, then the original data of A is the food type. Or if K points have the highest frequency in the fitness type, then the original data of A is the fitness type.
  • the third acquiring module 205 acquires multiple historical behaviors of historical behavior information. For example, if the historical behavior information is food type information, then the historical behavior can be eating food, eating hot pot, or eating green vegetables. Then, the third obtaining module 205 obtains the number of occurrences of each historical behavior. The third obtaining module 205 records the number of occurrences of each historical behavior of the user. In a preset time period, the user obtains the number of occurrences of each historical behavior in the scene. For example, in the first week, users eat hot pot and play games at a hot pot restaurant. Then the historical behavior of the electronic device in the hot pot restaurant is eating hot pot and playing games, and then the electronic device records the eating hot pot and playing games.
  • the historical behavior information is food type information
  • the historical behavior can be eating food, eating hot pot, or eating green vegetables. Then, the third obtaining module 205 obtains the number of occurrences of each historical behavior. The third obtaining module 205 records the number of occurrences of each historical behavior of the user. In
  • the user In the second week, the user’s historical behavior at the same hot pot restaurant was to only eat hot pot.
  • the electronic device records that the user ate hot pot at the same hot pot restaurant in the second week.
  • summarizing the user's historical behavior in the hot pot restaurant we can get that the user has eaten hot pot twice and played a game once in the hot pot restaurant.
  • the user's behavior habit information in the scene is established according to the multiple historical behaviors and the corresponding times of each of the historical behaviors. Please refer to the above example, then the user's behavioral habit information in hot pot restaurants is that they often eat hot pot and rarely play games.
  • the user's behavior habit information in the scene can be obtained according to the historical behavior and the number of times. For example, as shown in Table 15, a user eats hot pot 8 times in a hot pot restaurant, and it can be obtained that the user often eats hot pot in a hot pot restaurant. And the user eats dessert 5 times in the hot pot restaurant, you can get the user sometimes eat dessert in the hot pot restaurant.
  • this application is not limited by the order of execution of the various steps described, and certain steps may also be carried out in other order or carried out simultaneously without conflict.
  • the preset frequency interval can be matched according to the frequency.
  • the seventh preset correspondence relationship includes the correspondence relationship between historical behavior, frequency, preset frequency interval, and behavior habit information. Then, the correspondence between historical behavior, frequency, preset frequency interval, and behavior habit information can be shown in Table 16.
  • Historical behavior frequency Preset frequency interval Behavior information eat hot pot 8 [5,9] Often eat hot pot Eat dessert 5 [4,6] Sometimes for dessert Fitness 2 [1,3] Little fitness ... ... ... ...
  • the electronic device can obtain the user's behavior habit information in the scene according to Table 16.
  • the frequency and the preset frequency interval can be stored in the electronic device in advance, and when the frequency is obtained, the preset frequency interval can be quickly matched.
  • the user behavior prediction model construction apparatus 200 includes: a first obtaining module 201, configured to obtain the geographic location information of the electronic device currently located and the perception data of the current scene of the electronic device
  • the identification module 202 is used to identify the current scene of the electronic device according to the perception data
  • the determination module 203 is used to determine the user and the scene according to the length of time the user stays in the scene and the operating information in the scene
  • the type of relationship between the scenes is used to acquire the user’s preference for the scene according to the user’s historical track information in the scene
  • the third acquisition module 205 is used to acquire the user’s preference for the scene according to the user’s presence in the scene
  • the historical behavior information of the user obtains the user’s behavior habit information in the scene
  • the establishment module 206 is used to establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information .
  • the electronic device can push information of interest to the user according to the user's preference for the geographic location and behavior habit information, so as to improve the accuracy of the electronic device's pushing information to the user. And it improves the speed and efficiency of the electronic device when pushing information.
  • the embodiment of the application also provides an electronic device.
  • the electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as Electronic watches, electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment.
  • the electronic device can send information to the user.
  • FIG. 11 is a schematic diagram of a first structure of an electronic device provided by an embodiment of the application.
  • the electronic device 300 includes a processor 301 and a memory 302. Wherein, the processor 301 is electrically connected to the memory 302.
  • the processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes the electronic device by running or calling the computer program stored in the memory 302 and calling the data stored in the memory 302. Various functions and processing data of the equipment, so as to monitor the electronic equipment as a whole.
  • the processor 301 in the electronic device 300 will load the instructions corresponding to the process of one or more computer programs into the memory 302 according to the following steps, and the processor 301 will run the instructions stored in the memory 302
  • the computer program in:
  • the user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • the processor 301 when determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information of the scene, the processor 301 is configured to:
  • the operation information includes information about the user's operation of multiple application software of the electronic device
  • the type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
  • the processor 301 when determining the type of relationship between the user and the scene according to the duration and the number of times each application software has been operated, the processor 301 is configured to:
  • the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
  • the processor 301 when determining the type of relationship between the user and the scene according to the duration and the number of times each application software has been operated, the processor 301 is configured to:
  • the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
  • the processor 301 when acquiring the user's preference for the scene according to the historical track information of the user in the scene, is configured to:
  • the user's preference for the scene is determined according to the cumulative number of times.
  • the user’s preference for the scene is determined according to the cumulative number of times, and the processor 301 is configured to:
  • the preset preference is determined as the user's preference for the scene.
  • the processor 301 is configured to:
  • the processor 301 is configured to:
  • the memory 302 can be used to store computer programs and data.
  • the computer program stored in the memory 302 contains instructions that can be executed in the processor.
  • Computer programs can be composed of various functional modules.
  • the processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 302.
  • FIG. 12 is a schematic diagram of a second structure of an electronic device provided in an embodiment of this application.
  • the electronic device 300 further includes: a display screen 303, a control circuit 304, an input unit 305, a sensor 306, and a power supply 307.
  • the processor 301 is electrically connected to the display screen 303, the control circuit 304, the input unit 305, the sensor 306, and the power source 307, respectively.
  • the display screen 303 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of images, text, icons, videos, and any combination thereof.
  • the control circuit 304 is electrically connected to the display screen 303 for controlling the display screen 303 to display information.
  • the input unit 305 may be used to receive inputted numbers, character information, or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the input unit 305 may include a fingerprint recognition module.
  • the sensor 306 is used to collect the information of the electronic device itself or the information of the user or the external environment information.
  • the sensor 306 may include multiple sensors such as a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a Hall sensor, a position sensor, a gyroscope, an inertial sensor, an attitude sensor, a barometer, and a heart rate sensor.
  • the power supply 307 is used to supply power to various components of the electronic device 300.
  • the power supply 307 may be logically connected to the processor 301 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
  • the electronic device 300 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
  • an embodiment of the present application provides an electronic device, which performs the following steps: obtains the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located; The data identifies the scene where the electronic device is currently located; determines the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene; according to the historical track of the user in the scene. The information obtains the user’s preference for the scene; obtains the user’s behavior habit information in the scene according to the user’s historical behavior information in the scene; according to the geographic location information, the relationship type, the preference and the The behavior habit information establishes the user behavior prediction model.
  • the electronic device can push information of interest to the user according to the user's preference for the geographic location and behavior habit information, so as to improve the accuracy of the electronic device pushing information to the user. And it improves the speed and efficiency of the electronic device when pushing information.
  • the embodiment of the present application also provides a storage medium in which a computer program is stored, and the computer program is applied to an electronic device.
  • the electronic device can push information and display the pushed information on the display screen of the electronic device.
  • the computer program runs on the computer, the computer executes the user behavior prediction model construction method described in any of the above embodiments.
  • the computer program runs on a computer
  • the computer is caused to execute:
  • the user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  • the storage medium may include, but is not limited to: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method and an apparatus for constructing a user behavior prediction model, a storage medium and an electronic device. Said method comprises: acquiring current geographical location information and current sensing data; identifying a current scene according to the sensing data; determining the type of relationship between a user and a scene; acquiring the degree of preference of the user for the scene; acquiring behavior habit information of the user in the scene; and establishing a user behavior prediction model according to the geographical location information, the relationship type, the preference degree and the behavior habit information.

Description

用户行为预测模型构建方法、装置、存储介质及电子设备Method, device, storage medium and electronic equipment for constructing user behavior prediction model
本申请要求于2019年04月09日提交中国专利局、申请号为201910282466.8、发明名称为“用户行为预测模型构建方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910282466.8, and the invention title is "User Behavior Prediction Model Construction Method, Device, Storage Medium, and Electronic Equipment" on April 9, 2019, and its entire content Incorporated in this application by reference.
技术领域Technical field
本申请涉及电子技术领域,特别涉及一种用户行为预测模型构建方法、装置、存储介质及电子设备。This application relates to the field of electronic technology, and in particular to a method, device, storage medium and electronic equipment for constructing a user behavior prediction model.
背景技术Background technique
随着电子技术的发展,诸如智能手机等电子设备的功能越来越丰富。电子设备不但可以识别用户的移动轨迹,也可以识别用户所处的地理位置。电子设备可以为用户推送有关于该地理位置周边的各种信息,以方便用户了解自己感兴趣的信息。With the development of electronic technology, electronic devices such as smart phones have become more and more abundant. The electronic device can not only identify the user's movement track, but also identify the geographic location of the user. The electronic device can push various information about the geographic location to the user, so as to facilitate the user to understand the information that he is interested in.
发明内容Summary of the invention
本申请实施例提供一种用户行为预测模型构建方法、装置、存储介质及电子设备,可以提高电子设备推送信息的准确性。The embodiments of the present application provide a method, device, storage medium, and electronic equipment for constructing a user behavior prediction model, which can improve the accuracy of the information pushed by the electronic equipment.
第一方面,本申请实施例提供一种用户行为预测模型构建方法,包括:In the first aspect, an embodiment of the present application provides a method for constructing a user behavior prediction model, including:
获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;Acquiring the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
根据所述感知数据识别所述电子设备当前所处的场景;Identifying the current scene of the electronic device according to the perception data;
根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;Determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;Acquiring the user's preference for the scene according to the historical track information of the user in the scene;
根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;Acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene;
根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
第二方面,本申请实施例提供一种用户行为预测模型构建装置,包括:In a second aspect, an embodiment of the present application provides an apparatus for constructing a user behavior prediction model, including:
第一获取模块,用于获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;The first acquisition module is used to acquire the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
识别模块,用于根据所述感知数据识别所述电子设备当前所处的场景;An identification module, configured to identify the current scene of the electronic device according to the perception data;
确定模块,用于根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;A determining module, configured to determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
第二获取模块,用于根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;The second acquiring module is configured to acquire the user's preference for the scene according to the historical track information of the user in the scene;
第三获取模块,用于根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;The third obtaining module is configured to obtain the user's behavior habit information in the scene according to the user's historical behavior information in the scene;
建立模块,用于根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The establishment module is used to establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
第三方面,本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行:In a third aspect, the embodiments of the present application also provide a storage medium in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute:
获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;Acquiring the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
根据所述感知数据识别所述电子设备当前所处的场景;Identifying the current scene of the electronic device according to the perception data;
根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;Determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;Acquiring the user's preference for the scene according to the historical track information of the user in the scene;
根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;Acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene;
根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
第四方面,本申请实施例还提供一种电子设备,所述电子设备包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于:In a fourth aspect, an embodiment of the present application further provides an electronic device. The electronic device includes a processor and a memory. The memory stores a computer program. The processor calls the computer program stored in the memory. For:
获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;Acquiring the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
根据所述感知数据识别所述电子设备当前所处的场景;Identifying the current scene of the electronic device according to the perception data;
根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;Determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;Acquiring the user's preference for the scene according to the historical track information of the user in the scene;
根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;Acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene;
根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1为本申请实施例提供的用户行为预测模型构建方法的应用场景示意图。FIG. 1 is a schematic diagram of an application scenario of a method for constructing a user behavior prediction model provided by an embodiment of the application.
图2为本申请实施例提供的用户行为预测模型构建方法的第一种流程示意图。FIG. 2 is a schematic diagram of the first flow of a method for constructing a user behavior prediction model provided by an embodiment of the application.
图3为本申请实施例提供的用户行为预测模型构建方法的第二种流程示意图。FIG. 3 is a schematic diagram of the second flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
图4为本申请实施例提供的用户行为预测模型构建方法的第三种流程示意图。FIG. 4 is a schematic diagram of the third process of the method for constructing a user behavior prediction model provided by an embodiment of the application.
图5为本申请实施例提供的用户行为预测模型构建方法的第四种流程示意图。FIG. 5 is a schematic diagram of the fourth flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
图6为本申请实施例提供的用户行为预测模型构建方法的第五种流程示意图。FIG. 6 is a schematic diagram of the fifth flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
图7为本申请实施例提供的用户行为预测模型构建方法的第六种流程示意图。FIG. 7 is a schematic diagram of the sixth flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
图8为本申请实施例提供的用户行为预测模型构建方法的第七种流程示意图。FIG. 8 is a schematic diagram of the seventh process of the method for constructing a user behavior prediction model provided by an embodiment of the application.
图9为本申请实施例提供的用户行为预测模型构建方法的第八种流程示意图。FIG. 9 is a schematic diagram of the eighth process of the method for constructing a user behavior prediction model provided by an embodiment of the application.
图10为本申请实施例提供的用户行为预测模型构建装置的结构示意图。FIG. 10 is a schematic structural diagram of an apparatus for constructing a user behavior prediction model provided by an embodiment of the application.
图11为本申请实施例提供的电子设备的第一种结构示意图。FIG. 11 is a schematic diagram of the first structure of an electronic device provided by an embodiment of this application.
图12为本申请实施例提供的电子设备的第二种结构示意图。FIG. 12 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of this application.
参考图1,图1为本申请实施例提供的用户行为预测模型构建方法的应用场景示意图。所述用户行为预测模型构建方法应用于电子设备。所述电子设备中设置有全景感知架构。所述全景感知架构为电子设备中用于实现所述用户行为预测模型构建方法的硬件和软件的集成。Referring to FIG. 1, FIG. 1 is a schematic diagram of an application scenario of a method for constructing a user behavior prediction model provided by an embodiment of the application. The user behavior prediction model construction method is applied to electronic equipment. The electronic device is provided with a panoramic sensing architecture. The panoramic perception architecture is the integration of hardware and software used to implement the method for constructing the user behavior prediction model in an electronic device.
其中,全景感知架构包括信息感知层、数据处理层、特征抽取层、情景建模层以及智能服务层。Among them, the panoramic perception architecture includes an information perception layer, a data processing layer, a feature extraction layer, a scenario modeling layer, and an intelligent service layer.
信息感知层用于获取电子设备自身的信息或者外部环境中的信息。所述信息感知层可以包括多个传感器。例如,所述信息感知层包括距离传感器、磁场传感器、光线传感器、加速度传感器、指纹传感器、霍尔传感器、位置传感器、陀螺仪、惯性传感器、姿态感应器、气压计、心率传感器等多个传感器。The information perception layer is used to obtain the information of the electronic device itself or the information in the external environment. The information perception layer may include multiple sensors. For example, the information sensing layer includes multiple sensors such as a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a Hall sensor, a position sensor, a gyroscope, an inertial sensor, a posture sensor, a barometer, and a heart rate sensor.
其中,距离传感器可以用于检测电子设备与外部物体之间的距离。磁场传感器可以用于检测电子设备所处环境的磁场信息。光线传感器可以用于检测电子设备所处环境的光线信息。加速度传感器可以用于检测电子设备的加速度数据。指纹传感器可以用于采集用户的指纹信息。霍尔传感器是根据霍尔效应制作的一种磁场传感器,可以用于实现电子设备的自动控制。位置传感器可以用于检测电子设备当前所处的地理位置。陀螺仪可以用于检测电子设备在各个方向上的角速度。惯性传感器可以用于检测电子设备的运动数据。姿态感应器可以用于感应电子设备的姿态信息。气压计可以用于检测电子设备所处环境的气压。心率传感器可以用于检测用户的心率信息。Among them, the distance sensor can be used to detect the distance between the electronic device and an external object. The magnetic field sensor can be used to detect the magnetic field information of the environment in which the electronic device is located. The light sensor can be used to detect the light information of the environment in which the electronic device is located. The acceleration sensor can be used to detect the acceleration data of the electronic device. The fingerprint sensor can be used to collect the user's fingerprint information. Hall sensor is a kind of magnetic field sensor made according to Hall effect, which can be used to realize automatic control of electronic equipment. The location sensor can be used to detect the current geographic location of the electronic device. Gyroscopes can be used to detect the angular velocity of electronic devices in various directions. Inertial sensors can be used to detect movement data of electronic devices. The attitude sensor can be used to sense the attitude information of the electronic device. The barometer can be used to detect the air pressure of the environment where the electronic device is located. The heart rate sensor can be used to detect the user's heart rate information.
数据处理层用于对信息感知层获取到的数据进行处理。例如,数据处理层可以对信息感知层获取到的数据进行数据清理、数据集成、数据变换、数据归约等处理。The data processing layer is used to process the data obtained by the information perception layer. For example, the data processing layer can perform data cleaning, data integration, data transformation, and data reduction on the data acquired by the information perception layer.
其中,数据清理是指对信息感知层获取到的大量数据进行清理,以剔除无效数据和重复数据。数据集成是指将信息感知层获取到的多个单维度数据集成到一个更高或者更抽象的维度,以对多个单维度的数据进行综合处理。数据变换是指对信息感知层获取到的数据进行数据类型的转换或者格式的转换等,以使变换后的数据满足处理的需求。数据归约是指在尽可能保持数据原貌的前提下,最大限度的精简数据量。Among them, data cleaning refers to cleaning up a large amount of data obtained by the information perception layer to eliminate invalid data and duplicate data. Data integration refers to the integration of multiple single-dimensional data acquired by the information perception layer into a higher or more abstract dimension to comprehensively process multiple single-dimensional data. Data transformation refers to the data type conversion or format conversion of the data acquired by the information perception layer, so that the transformed data meets the processing requirements. Data reduction means to minimize the amount of data while maintaining the original appearance of the data as much as possible.
特征抽取层用于对数据处理层处理后的数据进行特征抽取,以提取所述数据中包括的特征。提取到的特征可以反映出电子设备自身的状态或者用户的状态或者电子设备所处环境的环境状态等。The feature extraction layer is used to perform feature extraction on data processed by the data processing layer to extract features included in the data. The extracted features can reflect the state of the electronic device itself or the state of the user or the environmental state of the environment in which the electronic device is located.
其中,特征抽取层可以通过过滤法、包装法、集成法等方法来提取特征或者对提取到的特征进行处理。Among them, the feature extraction layer can extract features or process the extracted features through methods such as filtering, packaging, and integration.
过滤法是指对提取到的特征进行过滤,以删除冗余的特征数据。包装法用于对提取到的特征进行筛选。集成法是指将多种特征提取方法集成到一起,以构建一种更加高效、更加准确的特征提取方法,用于提取特征。The filtering method refers to filtering the extracted features to delete redundant feature data. The packaging method is used to screen the extracted features. The integration method refers to the integration of multiple feature extraction methods to construct a more efficient and accurate feature extraction method for feature extraction.
情景建模层用于根据特征抽取层提取到的特征来构建模型,所得到的模型可以用于表示电子设备的状态或者用户的状态或者环境状态等。例如,情景建模层可以根据特征抽取层提取到的特征来构建关键值模型、模式标识模型、图模型、实体联系模型、面向对象模型等。The scenario modeling layer is used to construct a model based on the features extracted by the feature extraction layer, and the obtained model can be used to represent the state of the electronic device or the state of the user or the environment. For example, the scenario modeling layer can construct key value models, pattern identification models, graph models, entity connection models, object-oriented models, etc. based on the features extracted by the feature extraction layer.
智能服务层用于根据情景建模层所构建的模型为用户提供智能化的服务。例如,智能服务层可以为用户提供基础应用服务,可以为电子设备进行系统智能优化,还可以为用户提供个性化智能服务。The intelligent service layer is used to provide users with intelligent services based on the model constructed by the scenario modeling layer. For example, the intelligent service layer can provide users with basic application services, can perform system intelligent optimization for electronic devices, and can also provide users with personalized intelligent services.
此外,全景感知架构中还可以包括多种算法,每一种算法都可以用于对数据进行分析处理,所述多种算法可以构成算法库。例如,所述算法库中可以包括马尔科夫算法、隐含狄里克雷分布算法、贝叶斯分类算法、支持向量机、K均值聚类算法、K近邻算法、条件随机场、残差网络、长短期记忆网络、卷积神经网络、循环神经网络等算法。In addition, the panoramic perception architecture may also include multiple algorithms, each of which can be used to analyze and process data, and the multiple algorithms can form an algorithm library. For example, the algorithm library may include Markov algorithm, implicit Dirichlet distribution algorithm, Bayesian classification algorithm, support vector machine, K-means clustering algorithm, K-nearest neighbor algorithm, conditional random field, residual network , Long and short-term memory networks, convolutional neural networks, recurrent neural networks and other algorithms.
本申请实施例提供一种用户行为预测模型构建方法,包括:The embodiment of the present application provides a method for constructing a user behavior prediction model, including:
获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;Acquiring the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
根据所述感知数据识别所述电子设备当前所处的场景;Identifying the current scene of the electronic device according to the perception data;
根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;Determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;Acquiring the user's preference for the scene according to the historical track information of the user in the scene;
根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;Acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene;
根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
在一些实施例中,所述根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型,包括:In some embodiments, the determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene includes:
获取用户在所述场景停留的时长以及在所述场景的操作信息,其中,所述操作信息包括用户对所述电子设备的多个应用软件进行操作的信息;Acquiring the length of time the user stays in the scene and the operation information in the scene, where the operation information includes information about the user's operation of multiple application software of the electronic device;
根据所述操作信息获取用户对每一所述应用软件的被操作次数;Acquiring, according to the operation information, the number of times the user has been operated on each of the application software;
根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。The type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
在一些实施例中,所述根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型,包括:In some embodiments, the determining the type of relationship between the user and the scene according to the duration and the number of times each application software has been operated includes:
从所述多个应用软件中确定出被操作次数最多的目标应用软件;Determine the target application software that has been operated most frequently from the multiple application software;
根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a first preset correspondence, the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
在一些实施例中,所述被操作次数包括被操作时长,所述根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型,包括:In some embodiments, the number of times of being operated includes the duration of being operated, and the determining the type of relationship between the user and the scene according to the duration and the number of times of being operated for each application software includes:
从所述多个应用软件中确定出被操作时长最长的目标应用软件;Determine the target application software that has been operated for the longest time from the multiple application software;
根据所述时长、所述目标应用软件以及第二预设对应关系,获取用户与所述场景之间的关系类型,其中所述第二预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a second preset correspondence relationship, the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
在一些实施例中,所述根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度,包括:In some embodiments, the acquiring the user's preference for the scene according to the historical track information of the user in the scene includes:
根据所述历史轨迹信息获取用户出现在所述场景的累计次数;Acquiring the cumulative number of times the user appears in the scene according to the historical track information;
根据所述累计次数确定用户对所述场景的偏好度。The user's preference for the scene is determined according to the cumulative number of times.
在一些实施例中,所述根据所述累计次数确定用户对所述场景的偏好度,包括:In some embodiments, the determining the user's preference for the scene according to the accumulated number of times includes:
根据所述累计次数以及第三预设对应关系,获取预设偏好度,其中,所述第三预设对应关系包括累计次数与预设偏好度之间的对应关系;Obtaining a preset preference degree according to the cumulative number of times and a third preset correspondence relationship, where the third preset correspondence relationship includes a correspondence relationship between the cumulative number of times and the preset preference degree;
将所述预设偏好度确定为用户对所述场景的偏好度。The preset preference is determined as the user's preference for the scene.
在一些实施例中,所述根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度,包括:In some embodiments, the acquiring the user's preference for the scene according to the historical track information of the user in the scene includes:
根据所述历史轨迹信息获取用户出现在所述场景的累计时长;Acquiring, according to the historical track information, the accumulated time that the user appears in the scene;
根据所述累计时长确定用户对所述场景的偏好度。Determine the user's preference for the scene according to the accumulated time.
在一些实施例中,所述根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息,包括:In some embodiments, the acquiring behavior information of the user in the scene according to the historical behavior information of the user in the scene includes:
根据所述历史行为信息确定用户在所述场景的多个历史行为;Determine multiple historical behaviors of the user in the scene according to the historical behavior information;
获取每一所述历史行为发生的次数;Get the number of occurrences of each historical behavior;
根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。Establish user behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors.
本申请实施例提供的用户行为预测模型构建方法可以应用于电子设备中。根据所述用户行为预测模型,电子设备可以推送用户感兴趣的信息,从而提高了推送信息的准确性。并且使电子设备实现了智能优化的效果,从而提升了电子设备的运行效率和运行速度。The method for constructing a user behavior prediction model provided in the embodiments of the present application can be applied to electronic devices. According to the user behavior prediction model, the electronic device can push information that the user is interested in, thereby improving the accuracy of pushing information. And the electronic equipment realizes the effect of intelligent optimization, thereby improving the operating efficiency and operating speed of the electronic equipment.
所述电子设备可以为智能手机、平板电脑、游戏设备、AR(Augmented Reality,增强现实)设备、汽车、数据存储装置、音频播放装置、视频播放装置、笔记本电脑、桌面计算设备、可穿戴设备诸如电子手表、电子眼镜、电子头盔、电子手链、电子项链、电子衣物等设备。所述电子设备可以推送信息,并将所述推送信息在电子设备的显示屏上进行显示。The electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as Electronic watches, electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment. The electronic device can push information and display the pushed information on the display screen of the electronic device.
参考图2,图2为本申请实施例提供的用户行为预测模型构建方法的第一种流程示意图。Referring to FIG. 2, FIG. 2 is a schematic diagram of the first flow of a method for constructing a user behavior prediction model provided by an embodiment of the application.
110,获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据。110. Acquire the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located.
当用户到达一地点时,电子设备可以通过全球定位系统(Global Positioning System,GPS)获取用户到达该地点的经纬度信息或者坐标点。然后,电子设备根据目标软件将经纬度信息或者坐标点转换为地理位置信息。所述地理位置信息包括商场、办公楼、公交站或者小区等。其中目标软件包括百度地图、腾讯地图或者高德地图等。另外,当用户到达一地点时,电子设备也可以直接通过目标软件获取电子设备所处的地理位置信息。When the user arrives at a place, the electronic device can obtain the longitude and latitude information or coordinate points of the user's arrival at the place through the Global Positioning System (GPS). Then, the electronic device converts the latitude and longitude information or coordinate points into geographic location information according to the target software. The geographic location information includes shopping malls, office buildings, bus stations, or communities. The target software includes Baidu map, Tencent map or Gaode map, etc. In addition, when the user arrives at a place, the electronic device can also directly obtain the geographic location information of the electronic device through the target software.
此外,电子设备可以构建数据库以将获取到的所有数据存储起来。因此可以将所述地理位置信息记为l n。电子设备采集所述地理位置的相关数据。其中该相关数据为至少一个原始数据d n,并且所述原始数据可能与美食、健身或者游戏有关。电子设备可以采用MySQL关系数据库将地理位置信息以及与所述地理位置相关的原始数据以表的形式存储,不需要将所有数据放在一起。因此提高了电子设备获取地理位置信息和原始数据的速度,以及也了提高电子设备使用的灵活性。例如,所述表可以为(l n,d n)。 In addition, the electronic device can construct a database to store all the acquired data. Therefore, the geographic location information can be recorded as l n . The electronic device collects data related to the geographic location. Wherein the correlation data of at least one raw data d n, and the original data may be related to food, exercise or game. The electronic device can use the MySQL relational database to store the geographic location information and the original data related to the geographic location in the form of a table, without putting all the data together. Therefore, the speed at which the electronic device obtains geographic location information and raw data is improved, and the flexibility of using the electronic device is also improved. For example, the table may be (l n , d n ).
相应的,电子设备获取当前所处场景的感知数据。例如电子设备可以通过所述信息感知层的光线传感器来获取当前的环境光强度,通过温度传感器来获取电子设备当前的温度等,也可以通过位置传感器来获取电子设备当前的地理位置。Correspondingly, the electronic device obtains the perception data of the current scene. For example, the electronic device may obtain the current ambient light intensity through the light sensor of the information perception layer, the current temperature of the electronic device through the temperature sensor, etc., or the current geographic location of the electronic device through the position sensor.
除此之外,电子设备还可以获取用户的行动轨迹。例如,电子设备识别用户从当前的地理位置移动到另一个地理位置时,电子设备可以追踪用户的移动轨迹。当用户到达目标地理位置时,获取所述目标地理位置的地理位置信息。In addition, the electronic device can also obtain the user's action track. For example, when the electronic device recognizes that the user moves from the current geographic location to another geographic location, the electronic device can track the user's movement track. When the user reaches the target geographic location, the geographic location information of the target geographic location is acquired.
120,根据所述感知数据识别所述电子设备当前所处的场景。120. Identify the current scene of the electronic device according to the perception data.
电子设备根据获取的感知数据识别电子设备当前所处的场景。例如,将获取到的温度、环境光强度以及地理位置等感知数据对所述电子设备当前所处的场景识别,以确定所述电子设备当前所处的场景。其中所述场景包括:加油站、健身房、美食街或者电影院等。The electronic device recognizes the current scene of the electronic device according to the acquired perception data. For example, the acquired sensing data such as temperature, ambient light intensity, and geographic location are used to identify the current scene of the electronic device to determine the current scene of the electronic device. The scene includes: a gas station, a gym, a food court, or a movie theater.
130,根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关 系类型。130. Determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene.
当用户处于所述场景时,电子设备获取用户在所述场景停留的时长。其中时长可以以小时、分钟或者秒为单位。例如1小时、40分钟或者2450秒。电子设备获取在所述场景的操作信息。其中所述操作信息包括用户对电子设备的多个应用软件进行操作。所述操作信息可以包括:打开支付宝、打开视频或者打开导航等。根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型。所述关系类型可以包括家、办公室、上班地点或者食堂等。When the user is in the scene, the electronic device obtains the length of time the user stays in the scene. The duration can be in hours, minutes or seconds. For example, 1 hour, 40 minutes, or 2450 seconds. The electronic device obtains operation information in the scene. The operation information includes the user's operation of multiple application software of the electronic device. The operation information may include: opening Alipay, opening video, or opening navigation. The type of relationship between the user and the scene is determined according to the length of time the user stays in the scene and the operation information in the scene. The relationship type may include home, office, work place, or canteen.
另外,电子设备可以将关系类型存储下来,并记为c nIn addition, the electronic device can store the relationship type and record it as c n .
140,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度。140. Acquire the user's preference for the scene according to the historical track information of the user in the scene.
电子设备获取用户在所述场景的历史轨迹信息。其中所述历史轨迹信息可以为用户出现在所述场景的累计次数。电子设备可以通过采用常用的统计方法获取累计次数。其中累计次数可以是在预设时间段内用户出现在所述场景的次数。所述预设时间段可以以年、月、周、小时、分钟或者秒为单位。例如,电子设备可以统计用户在一年内出现在电影院的累计次数为五次或者电子设备可以统计用户在三个月内出现在健身房的累计次数为三次。The electronic device obtains the historical track information of the user in the scene. The historical track information may be the cumulative number of times the user appears in the scene. Electronic equipment can obtain the cumulative number of times by using common statistical methods. The cumulative number of times may be the number of times the user appears in the scene within a preset time period. The preset time period may be in units of years, months, weeks, hours, minutes, or seconds. For example, the electronic device may count the cumulative number of times the user appears in the movie theater within one year as five or the electronic device may count the cumulative number of times the user appears in the gym within three months as three.
另外,所述预设时间段也可以是电子设备统计用户自开始使用电子设备的日期到当前日历上的日期这之间的使用时间段。例如,用户开始使用电子设备的日期可以是2018年6月6日。现在或者当前的日历上的日期是2019年8月8日。那么用户使用了电子设备的时长是一年又两个月又两个日。那么电子设备统计用户在所述一年又两个月又两个日内出现在超市的累计次数为30次和电影院的累计次数为3次。In addition, the preset period of time may also be the period of use by the electronic device from the date when the user starts to use the electronic device to the date on the current calendar. For example, the date when the user starts to use the electronic device may be June 6, 2018. The current or current calendar date is August 8, 2019. Then the length of time the user uses the electronic device is one year, two months, and two days. Then, the electronic device counts that the cumulative number of times the user appeared in the supermarket in one year, two months, and two days is 30 times and the cumulative number of times in the movie theater is 3.
根据所述累计次数确定用户对所述场景的偏好度。电子设备可以采用常用的统计方法计算用户对所述场景的偏好度。其中所述偏好度包括喜欢、一般喜欢或者讨厌。其中偏好度是衡量用户对所述场景的喜爱程度。例如用户在一天内出现在电影院的累计次数为10次。并且在同一天内用户出现在地铁站的累计次数为3次,那么10次大于3次。因此可以得出用户喜欢出现在电影院。而对出现在地铁站是一般喜欢。The user's preference for the scene is determined according to the cumulative number of times. The electronic device may use a common statistical method to calculate the user's preference for the scene. The preference includes like, generally like or dislike. The preference is to measure the degree of user's preference for the scene. For example, the cumulative number of times a user appears in a movie theater in a day is 10 times. And the cumulative number of times the user appeared in the subway station in the same day is 3 times, so 10 times is greater than 3 times. Therefore, it can be concluded that users like to appear in movie theaters. I generally like to appear in subway stations.
此外,所述历史轨迹信息也可以是用户出现在所述场景的累计时长。电子设备可以通过采用常用的统计方法获取累计时长。其中所述累计时长可以是在预设时间段内用户出现在所述场景的累计时长。所述预设时间段可以以年、月、周、小时、分钟或者秒为单位。所述累计时长可以以小时、分钟或者秒为单位。例如,用户在第一天时出现在电影院并且在所述电影院待了3个小时。紧接着,用户在第二天时出现在健身房并且在所述健身房待了2个小时。紧接着,在第三天时用户又出现在电影院并且在所述电影院待了2个小时,其中用户在第三天时出现在的电影院与在第一天时出现的电影院为同一家电影院。综上,用户在这三天内,电子设备统计用户出现在电影院的累计时长为5个小时以及出现在健身房的累计时长为2个小时。In addition, the historical track information may also be the cumulative duration of the user's appearance in the scene. Electronic equipment can obtain the accumulated time by using common statistical methods. The cumulative duration may be the cumulative duration of the user appearing in the scene within a preset time period. The preset time period may be in units of years, months, weeks, hours, minutes, or seconds. The cumulative duration may be in units of hours, minutes or seconds. For example, the user appeared in a movie theater on the first day and spent 3 hours in the movie theater. Then, the user appeared in the gym on the next day and stayed in the gym for 2 hours. Then, on the third day, the user appeared in the movie theater again and spent 2 hours in the movie theater, wherein the movie theater where the user appeared on the third day and the movie theater where the user appeared on the first day were the same theater. To sum up, in the three days, the user's electronic device counts the cumulative time that the user appears in the movie theater is 5 hours and the cumulative time that the user appears in the gym is 2 hours.
还例如,电子设备可以统计用户在一年内出现在歌厅的累计时长为5个小时。或者电子设备统计用户在一个月内出现在电影院的累计时长为75分钟。For another example, the electronic device can count the cumulative time that the user appears in the karaoke hall within one year as 5 hours. Or the electronic device counts the cumulative time that the user appears in the movie theater within one month to be 75 minutes.
另外,所述预设时间段也可以是电子设备统计用户自开始使用电子设备的日期到当前日历上的日期这之间的使用时间段。例如,用户开始使用电子设备的日期可以是2018年1月1日。现在或者当前的日历上的日期是2019年1月1日。那么用户使用了电子设备的时长是一年。那么电子设备统计用户在所述一年内出现在健身房的累计次数为20次和图书馆的累计次数为2次。In addition, the preset period of time may also be the period of use by the electronic device from the date when the user starts to use the electronic device to the date on the current calendar. For example, the date when the user starts to use the electronic device may be January 1, 2018. The current or current calendar date is January 1, 2019. Then the user has used the electronic device for one year. Then, the electronic device counts that the cumulative number of times the user appears in the gym in the one year is 20 times and the cumulative number of times the library is 2 times.
根据所述累计时长确定用户对所述场景的偏好度。例如用户在一天内出现在电影院的累计时长为3个小时。并且在同一天内用户出现在停车场的累计时长为60分钟。那么3个小时大于60分钟,因此可以得出用户喜欢出现在电影院。而对出现在停车场是一般喜欢。Determine the user's preference for the scene according to the accumulated time. For example, the cumulative time that the user appears in the movie theater in a day is 3 hours. And in the same day, the cumulative time that the user appears in the parking lot is 60 minutes. Then 3 hours is greater than 60 minutes, so it can be concluded that users like to appear in the cinema. And to appear in the parking lot is generally like.
此外,电子设备可以将用户对所述场景的偏好度记录下来,记为p n。根据地理位置信息、关系类型以及偏好度采用MySQL关系数据库以表的形式存储下来。即所述表可以为(l n,c n,p n)。 In addition, the electronic device may record the user's preference for the scene as p n . According to geographic location information, relationship type and preference degree, MySQL relational database is used to store it in the form of a table. That is, the table can be (l n , c n , p n ).
150,根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息。150. Acquire behavior habit information of the user in the scene according to the historical behavior information of the user in the scene.
可以理解的是,电子设备根据所述历史行为信息确定用户在所述场景的多个历史行为。其中所述历史行为包括在健身房健身、在火锅店吃火锅或者在超市购物。历史行为信息包括用户打开应用的应用类型信息、健身信息、游戏信息或者美食信息。It is understandable that the electronic device determines multiple historical behaviors of the user in the scene according to the historical behavior information. The historical behaviors include working out in a gym, eating hot pot in a hot pot restaurant, or shopping in a supermarket. The historical behavior information includes application type information, fitness information, game information, or food information of the application opened by the user.
然后,电子设备获取每一所述历史行为发生的次数。其中电子设备记录用户每一所述历史行为发生的次数。在预设时间段内,用户在所述场景获取每一历史行为发生的次数。比如,第一周用户在火锅店吃火锅和打游戏。那么电子设备在火锅店发生的历史行为为吃火锅和打游戏。然后,电子设备记录在第一周时用户的历史行为为所述吃火锅和打游戏。第二周用户在同一家火锅店的历史行为为仅吃火锅。那么电子设备记录在第二周时在同一家火锅店的历史行为为吃火锅。综上,将在火锅店发生的历史行为进行汇总,可以得到用户在火锅店并且在所述两周内的历史行为为吃火锅两次和打游戏一次。Then, the electronic device obtains the number of occurrences of each historical behavior. The electronic device records the number of occurrences of each historical behavior of the user. In a preset time period, the user obtains the number of occurrences of each historical behavior in the scene. For example, in the first week, users eat hot pot and play games at a hot pot restaurant. Then the historical behavior of electronic equipment in hot pot restaurants is eating hot pot and playing games. Then, the electronic device records the user's historical behavior in the first week as the eating hot pot and playing games. In the second week, the user’s historical behavior at the same hot pot restaurant was to only eat hot pot. Then the electronic device records the historical behavior of eating hot pot in the same hot pot restaurant in the second week. In summary, by summarizing the historical behaviors that occurred in the hot pot restaurant, it can be obtained that the user's historical behavior in the hot pot restaurant and within the two weeks is eating hot pot twice and playing a game once.
最后,根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。请参考上例,那么用户在火锅店的行为习惯信息为经常吃火锅,很少打游戏。Finally, the user's behavior habit information in the scene is established according to the multiple historical behaviors and the corresponding times of each of the historical behaviors. Please refer to the above example, then the user's behavioral habit information in hot pot restaurants is that they often eat hot pot and rarely play games.
相应的,电子设备可以存储用户的行为习惯信息,并记为b nCorrespondingly, the electronic device can store the user's behavior habit information, which is recorded as b n .
160,根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。160. Establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
首先,电子设备可以将所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立一个关系表,即(l n,c n,p n,b n)。根据所述关系表生成用户行为预测模型。或者将所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息以数据库的形式存储。根据所述数据库生成用户行为预测模型。或者电子设备可以直接根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立用户行为预测模型。 First, the electronic device can establish a relationship table for the geographic location information, the relationship type, the preference degree, and the behavior habit information, namely (l n , c n , p n , b n ). A user behavior prediction model is generated according to the relationship table. Or the geographic location information, the relationship type, the preference degree, and the behavior habit information are stored in the form of a database. A user behavior prediction model is generated according to the database. Or the electronic device may directly establish a user behavior prediction model based on the geographic location information, the relationship type, the preference degree, and the behavior habit information.
其次,当所述用户行为预测模型建立完成后,电子设备可以获取用户处于当前场景对应的社会信息。其中社会信息可以包括近邻资源、法律习俗、风土人情或者社会关系等。根据用户行为预测模型,电子设备可以预测用户对哪些社会信息感兴趣。将所述感兴趣的信息推送给用户,以使用户可以快速并且高效的接收自己感兴趣的信息,从而使电子设备提高了推送给用户感兴趣的信息的准确性。并且也可以使电子设备高效并且快速的提供给用户相关信息。例如,用户在购物商场进行购物。购物商场中的特定商家在进行打折促销活动。电子设备通过用户行为预测模型,预测到用户对打折促销活动的信息感兴趣。那么电子设备可以将所述打折促销活动的信息发送给用户,以使用户快速了解哪个商家在进行打折促销活动以及打折促销活动的内容是什么。Secondly, after the user behavior prediction model is established, the electronic device can obtain social information corresponding to the current scene of the user. The social information can include neighboring resources, laws and customs, customs, or social relations. According to the user behavior prediction model, the electronic device can predict which social information users are interested in. The information of interest is pushed to the user, so that the user can quickly and efficiently receive the information of interest, so that the electronic device improves the accuracy of pushing the information of interest to the user. And it can also enable electronic devices to provide users with relevant information efficiently and quickly. For example, the user is shopping in a shopping mall. Certain merchants in shopping malls are conducting discount promotions. The electronic device predicts that the user is interested in the information of discount promotion activities through the user behavior prediction model. Then the electronic device may send the information of the discount promotion activity to the user, so that the user can quickly understand which merchant is conducting the discount promotion activity and what the content of the discount promotion activity is.
例如,在一些实施例中,电子设备可以通过信息感知层获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据,并通过智能服务层根据所述感知数据识别所述电子设备当前所处的场景。可以理解的,智能服务层识别电子设备当前所处的场景之前,电子设备还可以通过数据处理层对信息感知层获取到的地理位置数据以及当前场景的感知数据进行处理,例如进行数据清理、数据变换等处理。For example, in some embodiments, the electronic device can obtain the geographic location information of the electronic device and the perception data of the scene where the electronic device is currently located through the information perception layer, and the intelligent service layer can identify the location information according to the perception data. Describe the current scene of the electronic device. It is understandable that before the intelligent service layer recognizes the current scene of the electronic device, the electronic device can also process the geographic location data obtained by the information perception layer and the perception data of the current scene through the data processing layer, such as data cleaning and data processing. Transformation and other processing.
随后,电子设备可以通过智能服务层根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型,并根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度,以及根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息。Subsequently, the electronic device can determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene through the intelligent service layer, and obtain the historical track information of the user in the scene The user's preference for the scene, and the user's behavior habit information in the scene is obtained according to the user's historical behavior information in the scene.
得到用户与所述场景之间的关系类型、用户对所述场景的偏好度、用户在所述场景的行为习惯信息之后,电子设备可以通过情景建模层根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户的行为预测模型。After obtaining the type of relationship between the user and the scene, the user’s preference for the scene, and the user’s behavior habit information in the scene, the electronic device can use the scene modeling layer according to the geographic location information and the relationship The type, the preference degree, and the behavior habit information establish a behavior prediction model of the user.
随后,智能服务层即可通过所述行为预测模型对用户未来时刻的行为进行预测,并根据预测结果为用户提供个性化的服务,例如自动为用户推送相关信息、自动开启相关应用等。Subsequently, the intelligent service layer can predict the user's behavior in the future through the behavior prediction model, and provide the user with personalized services based on the prediction result, such as automatically pushing relevant information for the user, and automatically opening related applications.
本申请实施例中,电子设备构建用户行为预测模型。根据用户行为预测模型可以预测用户处于当前场景时自己感兴趣的信息。然后将所述信息发送给用户,以使用户实时接收到推送信息,从而提高了电子设备推送信息的准确性和高效性。In the embodiment of the present application, the electronic device constructs a user behavior prediction model. The prediction model based on user behavior can predict the information that the user is interested in when he is in the current scene. Then the information is sent to the user, so that the user can receive the push information in real time, thereby improving the accuracy and efficiency of the electronic device pushing information.
在一些实施例中,参考图3,图3为本申请实施例提供的用户行为预测模型构建方法的第二种流程示意图。In some embodiments, referring to FIG. 3, FIG. 3 is a schematic diagram of the second flow of the method for constructing a user behavior prediction model provided by an embodiment of the application.
其中,步骤130,根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型,包括以下步骤:Wherein, step 130, determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene includes the following steps:
131,获取用户在所述场景停留的时长以及在所述场景的操作信息,其中,所述操作信息包括用户对所述电子设备的多个应用软件进行操作的信息;131. Acquire the length of time the user stays in the scene and the operation information in the scene, where the operation information includes information about the user's operation of multiple application software of the electronic device;
132,根据所述操作信息获取用户对每一所述应用软件的被操作次数;132. Acquire the number of times the user has been operated on each of the application software according to the operation information;
133,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。133. Determine the type of relationship between the user and the scene according to the duration and the number of times each application software has been operated.
电子设备可以获取用户在所述场景停留的时长以及在所述场景操作信息。例如所述场景停留的时长为用户从进入所述场景到离开所述场景之间的时长。例如,用户进入电影院到离开电影院经过了2个小时,那么所述2个小时为用户在所述场景停留的时长。其中所述场景操作信息可以包括用户对所述电子设备的多个应用软件进行操作的信息。例如,在电影院打开XX游戏。在饭店打开XX支付软件。The electronic device can obtain the length of time the user stays in the scene and the operation information in the scene. For example, the duration of stay in the scene is the duration between when the user enters the scene and leaves the scene. For example, if 2 hours have passed since the user entered the movie theater and left the movie theater, then the 2 hours is the length of time the user stays in the scene. Wherein, the scene operation information may include information that the user operates multiple application software of the electronic device. For example, open the XX game in a movie theater. Open the XX payment software in the restaurant.
然后,电子设备获取用户对每一所述应用软件的被操作次数。例如,用户在购物商场打开支付软件、游戏软件和拍照软件。其中从用户进入购物商场到离开商场这一时长内,电子设备获取到用户打开支付软件5次、打开游戏软件2次和打开拍照软件3次。Then, the electronic device obtains the number of times the user has been operated on each of the application software. For example, users open payment software, game software, and camera software in a shopping mall. Among them, from the time the user enters the shopping mall to when he leaves the mall, the electronic device obtains that the user has opened the payment software 5 times, opened the game software 2 times, and opened the camera software 3 times.
最后,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。可以理解的是,用户在所述场景停留的时长内,电子设备可以根据每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。其中被操作次数多的应用软件可以认为用户在所述场景经常进行对所述被操作次数多的应用软件进行操作。那么根据所述被操作次数多的应用软件确定用户与所述场景之间的关系类型。Finally, the type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated. It is understandable that the electronic device can determine the type of relationship between the user and the scene according to the number of times each application software is operated during the time that the user stays in the scene. The application software that has been operated many times can be considered that the user frequently operates the application software that has been operated many times in the scene. Then, the type of relationship between the user and the scene is determined according to the application software that has been operated many times.
在一些实施例中,参考图4,图4为本申请实施例提供的用户行为预测模型构建方法的第三种流程示意图。In some embodiments, referring to FIG. 4, FIG. 4 is a schematic diagram of the third process of the method for constructing a user behavior prediction model provided by an embodiment of the application.
其中,步骤133,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型,包括以下步骤:Wherein, step 133, determining the type of relationship between the user and the scene according to the duration and the number of times each application software is operated, includes the following steps:
1331,从所述多个应用软件中确定出被操作次数最多的目标应用软件;1331. Determine the target application software that has been operated most frequently from the multiple application software;
1332,根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。1332. Acquire the type of relationship between the user and the scene according to the duration, the target application software, and a first preset correspondence, where the first preset correspondence includes duration, target application software, and relationship Correspondence between types.
电子设备根据获取到的每个应用软件的被操作次数,确定出被操作次数最多的目标应用软件。然后,根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。可以理解的是,被操作次数最多的目标应用软件为用户在所述场景经常操作的目标应用软件。其中被操作次数多的目标应用软件并不指代一个应用软件可以是多个应用软件。The electronic device determines the target application software with the most number of operations based on the acquired number of operations for each application software. Then, according to the duration, the target application software, and a first preset correspondence relationship, the relationship type between the user and the scene is acquired, where the first preset correspondence relationship includes duration, target application software, and relationship Correspondence between types. It is understandable that the target application software that has been operated most frequently is the target application software that the user frequently operates in the scene. The target application software that has been operated many times does not mean that one application software can be multiple application software.
因此,所述时长、所述目标应用软件与关系类型之间的对应关系可以如表1所示。Therefore, the corresponding relationship between the duration, the target application software, and the relationship type may be as shown in Table 1.
表1Table 1
时长duration 目标应用软件Target application software 关系类型Relationship type
2304秒2304 seconds 支付软件Payment software 购物商场shopping mall
3个小时3 hours 视频软件和淘宝软件Video software and Taobao software Home
……... ……... ……...
根据表1可以根据时长以及目标应用软件确定用户与所述场景之间的关系类型。例如,用户在XX小区并且在3个小时内打开了被操作次数最多的视频软件和淘宝软件,那么根据3个小时、视频软件和淘宝软件,可以获取用户与XX小区的关系类型是家。According to Table 1, the type of relationship between the user and the scene can be determined according to the duration and the target application software. For example, if the user is in the XX community and opened the most frequently operated video software and Taobao software within 3 hours, then according to the 3 hours, video software and Taobao software, the relationship type between the user and the XX community can be obtained as home.
此外,电子设备可以设定预设被操作次数阈值以准确的获取被操作次数多的目标应用操作。即可以选取大于或者等于预设被操作次数阈值的应用软件作为目标应用软件。例如,电子设备获取到支付软件的被操作次数为3次、拍照软件的被操作次数为5次以及视频软件的被操作次数为1次。其中预设被操作次数阈值为2。那么选取大于等于2的被操作次数对应的应用软件作为目标应用软件。即选取支付软件和拍照软件作为目标应用软件。In addition, the electronic device can set a preset threshold for the number of times of operation to accurately obtain target application operations that have been operated many times. That is, the application software that is greater than or equal to the preset threshold of the number of operations can be selected as the target application software. For example, the electronic device obtains that the number of operations of the payment software is 3 times, the number of operations of the photographing software is 5 times, and the number of operations of the video software is 1 time. The preset threshold for the number of operations is 2. Then select the application software corresponding to the number of operations greater than or equal to 2 as the target application software. That is, payment software and camera software are selected as the target application software.
在一些实施例中,参考图5,图5为本申请实施例提供的用户行为预测模型构建方法的第四种流程示意图。In some embodiments, referring to FIG. 5, FIG. 5 is a schematic flowchart of the fourth method for constructing a user behavior prediction model provided by an embodiment of the application.
其中,步骤133,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型,包括以下步骤:Wherein, step 133, determining the type of relationship between the user and the scene according to the duration and the number of times each application software is operated, includes the following steps:
1333,从所述多个应用软件中确定出被操作时长最长的目标应用软件;1333. Determine the target application software that has been operated for the longest time from the multiple application software;
1334,根据所述时长、所述目标应用软件以及第二预设对应关系,获取用户与所述场景之间的关系类型,其中所述第二预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。1334. Obtain a relationship type between the user and the scene according to the duration, the target application software, and a second preset correspondence, where the second preset correspondence includes duration, target application software, and relationship type Correspondence between.
电子设备根据获取到的每个应用软件的被操作时长,确定出被操作时长的目标应用软件。其中被操作次数包括被操作时长。然后,根据所述时长、所述目标应用软件以及第二预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第二预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。可以理解的是,被操作时长最长的目标应用软件为用户在所述场景经常操作的目标应用软件。其中被操作时长最长的目标应用软件并不指代一个应用软件可以是多个应用软件。The electronic device determines the target application software for the operating time according to the acquired operating time of each application software. The number of operations includes the duration of operations. Then, obtain the type of relationship between the user and the scene according to the duration, the target application software, and a second preset correspondence relationship, where the second preset correspondence relationship includes duration, target application software, and relationship Correspondence between types. It can be understood that the target application software that has been operated for the longest time is the target application software that the user frequently operates in the scene. The target application software that has been operated for the longest time does not mean that one application software can be multiple application software.
因此,所述时长、所述目标应用软件与关系类型之间的对应关系可以如表2所示。Therefore, the corresponding relationship between the duration, the target application software, and the relationship type may be as shown in Table 2.
表2Table 2
时长duration 目标应用软件Target application software 关系类型Relationship type
2304秒2304 seconds 支付软件Payment software 购物商场shopping mall
3个小时3 hours 视频软件和淘宝软件Video software and Taobao software Home
……... ……... ……...
根据表2可以根据时长以及目标应用软件确定用户与所述场景之间的关系类型。例如,用户在XX小区并且在3个小时内打开了被操作时长最多的视频软件和淘宝软件,那么根据3个小时、视频软件和淘宝软件,可以获取用户与XX小区的关系类型是家。According to Table 2, the type of relationship between the user and the scene can be determined according to the duration and the target application software. For example, if the user is in the XX community and opened the video software and Taobao software that have been operated for the longest time within 3 hours, then according to the 3 hours, video software and Taobao software, it can be obtained that the type of relationship between the user and the XX community is home.
此外,电子设备可以设定预设被操作时长阈值以准确的获取被操作时长最长的目标应用操作。即可以选取大于或者等于预设被被操作时长阈值的应用软件作为目标应用软件。例如,电子设备获取到支付软件的被操作时长为3个小时、拍照软件的被操作次数为2个小时以及视频软件的被操作时长为40分钟。其中预设被操作时长阈值为1小时。那么选取大于等于1的被操作时长对应的应用软件作为目标应用软件。即选取支付软件和拍照软件作为目标应用软件。In addition, the electronic device may set a preset operating time threshold to accurately obtain the target application operation with the longest operating time. That is, the application software that is greater than or equal to the preset operating time threshold can be selected as the target application software. For example, the electronic device obtains that the payment software has been operated for 3 hours, the photographing software has been operated for 2 hours, and the video software has been operated for 40 minutes. The preset operating time threshold is 1 hour. Then, the application software corresponding to the operated time length greater than or equal to 1 is selected as the target application software. That is, payment software and camera software are selected as the target application software.
在一些实施例中,参考图6,图6为本申请实施例提供的用户行为预测模型构建方法的第五种流程示意图。In some embodiments, referring to FIG. 6, FIG. 6 is a schematic flowchart of the fifth method for constructing a user behavior prediction model provided by an embodiment of this application.
其中,步骤140,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度,包括以下步骤:Wherein, step 140, obtaining the user's preference for the scene according to the user's historical track information in the scene, includes the following steps:
141,根据所述历史轨迹信息获取用户出现在所述场景的累计次数;141. Acquire the cumulative number of times a user appears in the scene according to the historical track information;
142,根据所述累计次数确定用户对所述场景的偏好度。142. Determine a user's preference for the scene according to the cumulative number of times.
电子设备获取用户在所述场景的历史轨迹信息。其中所述历史轨迹信息可以为用户出现在所述场景的累计次数。电子设备可以通过采用常用的统计方法获取累计次数。其中累计次数可以是在预设时间段内用户出现在所述场景的次数。所述预设时间段可以以年、月、周、小时、分钟或者秒为单位。例如,电子设备可以统计用户在一年内出现在电影院的累计次数为五次或者电子设备可以统计用户在三个月内出现在健身房的累计次数为三次。The electronic device obtains the historical track information of the user in the scene. The historical track information may be the cumulative number of times the user appears in the scene. Electronic equipment can obtain the cumulative number of times by using common statistical methods. The cumulative number of times may be the number of times the user appears in the scene within a preset time period. The preset time period may be in units of years, months, weeks, hours, minutes, or seconds. For example, the electronic device may count the cumulative number of times the user appears in the movie theater within one year as five or the electronic device may count the cumulative number of times the user appears in the gym within three months as three.
另外,所述预设时间段也可以是电子设备统计用户自开始使用电子设备的日期到当前日历上的日期这之间的使用时间段。例如,用户开始使用电子设备的日期可以是2018年6月6日。现在或者当前的日历上的日期是2019年8月8日。那么用户使用了电子设备的时长是一年又两个月又两个日。那么电子设备统计用户在所述一年又两个月又两个日内出现在超市的累计次数为30次和电影院的累计次数为3次。In addition, the preset period of time may also be the period of use by the electronic device from the date when the user starts to use the electronic device to the date on the current calendar. For example, the date when the user starts to use the electronic device may be June 6, 2018. The current or current calendar date is August 8, 2019. Then the length of time the user uses the electronic device is one year, two months, and two days. Then, the electronic device counts that the cumulative number of times the user appeared in the supermarket in one year, two months, and two days is 30 times and the cumulative number of times in the movie theater is 3.
根据所述累计次数确定用户对所述场景的偏好度。电子设备可以采用常用的统计方法计算用户对所述场景的偏好度。其中所述偏好度包括喜欢、一般喜欢或者讨厌。其中偏好度是衡量用户对所述场景的喜爱程度。例如用户在一天内出现在电影院的累计次数为10次。并且在同一天内用户出现在地铁站的累计次数为3次,那么10次大于3次。因此可以得出用户喜欢出现在电影院。而对出现在地铁站是一般喜欢。The user's preference for the scene is determined according to the cumulative number of times. The electronic device may use a common statistical method to calculate the user's preference for the scene. The preference includes like, generally like or dislike. The preference is to measure the degree of user's preference for the scene. For example, the cumulative number of times a user appears in a movie theater in a day is 10 times. And the cumulative number of times the user appeared in the subway station in the same day is 3 times, so 10 times is greater than 3 times. Therefore, it can be concluded that users like to appear in movie theaters. I generally like to appear in subway stations.
在一些实施例中,参考图7,图7为本申请实施例提供的用户行为预测模型构建方法的第六种流程示意图。In some embodiments, referring to FIG. 7, FIG. 7 is a schematic flowchart of the sixth method for constructing a user behavior prediction model provided by an embodiment of the application.
其中,步骤142,根据所述累计次数确定用户对所述场景的偏好度,包括以下步骤:Wherein, step 142, determining the user's preference for the scene according to the cumulative number of times, includes the following steps:
1421,根据所述累计次数以及第三预设对应关系,获取预设偏好度,其中,所述第三预设对应关 系包括累计次数与预设偏好度之间的对应关系;1421. Obtain a preset preference degree according to the accumulated times and a third preset correspondence relationship, where the third preset correspondence relationship includes a correspondence relationship between the accumulated times and the preset preference degree;
1422,将所述预设偏好度确定为用户对所述场景的偏好度。1422. Determine the preset preference as the user's preference for the scene.
其中,累计次数与预设偏好度之间的对应关系如表3所示。Among them, the corresponding relationship between the cumulative number of times and the preset preference degree is shown in Table 3.
表3table 3
累计次数Cumulative times 预设偏好度Default preference
1010 喜欢like
88 一般喜欢Generally like
66 讨厌hate
……... ……...
根据表3中的用户出现在所述场景的累计次数就可以获取到预设偏好度。例如,累计次数为10,根据表3可以获取到用户对所述场景的偏好度为喜欢。那么可以将获取到的预设偏好度确定为用户对所述场景的偏好度。According to the cumulative number of times the user appears in the scene in Table 3, the preset preference can be obtained. For example, the cumulative number of times is 10, and according to Table 3, it can be obtained that the user's preference for the scene is like. Then the acquired preset preference degree can be determined as the user's preference degree for the scene.
除此之外,电子设备可以存储有预设偏好等级与预设偏好度之间的对应关系。即根据累计次数、预设偏好等级与第四预设对应关系,获取预设偏好度。其中第四预设对应关系包括累计次数、预设偏好等级与预设偏好度之间的对应关系。则累计次数、预设偏好等级与预设偏好度之间的对应关系可以如表4所示。In addition, the electronic device may store the corresponding relationship between the preset preference level and the preset preference degree. That is, the preset preference degree is obtained according to the corresponding relationship between the accumulated times, the preset preference level and the fourth preset. The fourth preset correspondence relationship includes the correspondence relationship between the cumulative number of times, the preset preference level and the preset preference degree. Then, the corresponding relationship between the accumulated times, the preset preference level and the preset preference degree can be as shown in Table 4.
表4Table 4
累计次数Cumulative times 预设偏好等级Default preference level 预设偏好度Default preference
1010 5级Level 5 喜欢like
88 4级level 4 一般喜欢Generally like
55 2级level 2 讨厌hate
……... ……... ……...
电子设备从表4中获取预设偏好度。其中预设偏好等级也可以是以分数、百分比的形式。即根据累计次数,不仅可以获取到偏好等级,也可以获取到用户对所述场景的偏好度。然后将获取到预设偏好度确定为用户对所述场景的偏好度。The electronic device obtains the preset preference degree from Table 4. The preset preference level can also be in the form of a score or a percentage. That is, according to the accumulated number of times, not only the preference level can be obtained, but also the user's preference for the scene can be obtained. Then, the acquired preset preference is determined as the user's preference for the scene.
在一些实施例中,参考图8,图8为本申请实施例提供的用户行为预测模型构建方法的第七种流程示意图。In some embodiments, referring to FIG. 8, FIG. 8 is a schematic flowchart of the seventh method for constructing a user behavior prediction model provided by an embodiment of this application.
其中,步骤140,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度,包括以下步骤:Wherein, step 140, obtaining the user's preference for the scene according to the user's historical track information in the scene, includes the following steps:
143,根据所述历史轨迹信息获取用户出现在所述场景的累计时长;143. Acquire the accumulated time that the user appears in the scene according to the historical track information;
144,根据所述累计时长确定用户对所述场景的偏好度。144. Determine the user's preference for the scene according to the accumulated duration.
所述历史轨迹信息可以是用户出现在所述场景的累计时长。电子设备可以通过采用常用的统计方法获取累计时长。其中所述累计时长可以是在预设时间段内用户出现在所述场景的累计时长。所述预设时间段可以以年、月、周、小时、分钟或者秒为单位。所述累计时长可以以小时、分钟或者秒为单位。例如,用户在第一天时出现在电影院并且在所述电影院待了3个小时。紧接着,用户在第二天时出现在健身房并且在所述健身房待了2个小时。紧接着,在第三天时用户又出现在电影院并且在所述电影院待了2个小时,其中用户在第三天时出现在的电影院与在第一天时出现的电影院为同一家电影院。综上,用户在这三天内,电子设备统计用户出现在电影院的累计时长为5个小时以及出现在健身房的累计时长为2个小时。The historical trajectory information may be the cumulative duration of the user's appearance in the scene. Electronic equipment can obtain the accumulated time by using common statistical methods. The cumulative duration may be the cumulative duration of the user appearing in the scene within a preset time period. The preset time period may be in units of years, months, weeks, hours, minutes, or seconds. The cumulative duration may be in units of hours, minutes or seconds. For example, the user appeared in a movie theater on the first day and spent 3 hours in the movie theater. Then, the user appeared in the gym on the next day and stayed in the gym for 2 hours. Then, on the third day, the user appeared in the movie theater again and spent 2 hours in the movie theater, wherein the movie theater where the user appeared on the third day and the movie theater where the user appeared on the first day were the same theater. To sum up, in the three days, the user's electronic device counts the cumulative time that the user appears in the movie theater is 5 hours and the cumulative time that the user appears in the gym is 2 hours.
还例如,电子设备可以统计用户在一年内出现在歌厅的累计时长为5个小时。或者电子设备统计用户在一个月内出现在电影院的累计时长为75分钟。For another example, the electronic device can count the cumulative time that the user appears in the karaoke hall within one year as 5 hours. Or the electronic device counts the cumulative time that the user appears in the movie theater within one month to be 75 minutes.
另外,所述预设时间段也可以是电子设备统计用户自开始使用电子设备的日期到当前日历上的日期这之间的使用时间段。例如,用户开始使用电子设备的日期可以是2018年1月1日。现在或者当前的日历上的日期是2019年1月1日。那么用户使用了电子设备的时长是一年。那么电子设备统计用户在所述一年内出现在健身房的累计次数为20次和图书馆的累计次数为2次。In addition, the preset period of time may also be the period of use by the electronic device from the date when the user starts to use the electronic device to the date on the current calendar. For example, the date when the user starts to use the electronic device may be January 1, 2018. The current or current calendar date is January 1, 2019. Then the user has used the electronic device for one year. Then, the electronic device counts that the cumulative number of times the user appears in the gym in the one year is 20 times and the cumulative number of times the library is 2 times.
根据所述累计时长确定用户对所述场景的偏好度。例如用户在一天内出现在电影院的累计时长为 3个小时。并且在同一天内用户出现在停车场的累计时长为60分钟。那么3个小时大于60分钟,因此可以得出用户喜欢出现在电影院。而对出现在停车场是一般喜欢。Determine the user's preference for the scene according to the accumulated time. For example, the cumulative time that the user appears in the movie theater in a day is 3 hours. And in the same day, the cumulative time that the user appears in the parking lot is 60 minutes. Then 3 hours is greater than 60 minutes, so it can be concluded that users like to appear in the cinema. And to appear in the parking lot is generally like.
此外,根据所述累计时长以及第五预设对应关系,获取预设偏好度,其中第五预设对应关系包括累计时长与预设偏好度之间的对应关系;In addition, obtaining the preset preference degree according to the accumulated duration and the fifth preset correspondence relationship, where the fifth preset correspondence relationship includes the correspondence relationship between the accumulated duration and the preset preference degree;
将所述预设偏好度确定为用户对所述场景的偏好度。The preset preference is determined as the user's preference for the scene.
因此,累计时长与预设偏好度之间的对应关系如表5所示。Therefore, the corresponding relationship between the accumulated duration and the preset preference is shown in Table 5.
表5table 5
累计时长Cumulative duration 预设偏好度Default preference
1小时1 hour 喜欢like
5分钟5 minutes 一般喜欢Generally like
4秒4 seconds 讨厌hate
……... ……...
根据表5便可以获取用户对场景的预设偏好度。例如用户出现在所述场景的累计时长为1小时,那么用户对场景的预设偏好度为喜欢。然后则喜欢为用户对场景的偏好度。即将预设偏好度确定为用户对所述场景的偏好度。According to Table 5, the user's preset preference for the scene can be obtained. For example, the cumulative time that the user appears in the scene is 1 hour, and the user's preset preference for the scene is like. Then the preference is the user's preference for the scene. That is, the preset preference is determined as the user's preference for the scene.
除此之外,电子设备可以存储有预设偏好等级与预设偏好度之间的对应关系。即根据累计时长、预设偏好等级与第六预设对应关系,获取预设偏好度。其中第六预设对应关系包括累计时长、预设偏好等级与预设偏好度之间的对应关系。则累计时长、预设偏好等级与预设偏好度之间的对应关系可以如表6所示。In addition, the electronic device may store the corresponding relationship between the preset preference level and the preset preference degree. That is, according to the corresponding relationship between the accumulated time, the preset preference level and the sixth preset, the preset preference degree is obtained. The sixth preset correspondence relationship includes the correspondence relationship between the accumulated duration, the preset preference level and the preset preference degree. Then, the corresponding relationship between the accumulated duration, the preset preference level and the preset preference degree can be as shown in Table 6.
表6Table 6
累计时长Cumulative duration 预设偏好等级Default preference level 预设偏好度Default preference
1小时1 hour 5级Level 5 喜欢like
5分钟5 minutes 4级level 4 一般喜欢Generally like
4秒4 seconds 2级level 2 讨厌hate
……... ……... ……...
电子设备从表6获取预设偏好度。其中预设偏好等级也可以是以分数、百分比的形式。即根据累计时长,不仅可以获取到偏好等级,也可以获取到用户对所述场景的偏好度。然后将所述预设偏好度确定为用户对所述场景的偏好度。The electronic device obtains the preset preference degree from Table 6. The preset preference level can also be in the form of a score or a percentage. That is, according to the accumulated duration, not only the preference level can be obtained, but also the user's preference for the scene can be obtained. Then the preset preference is determined as the user's preference for the scene.
在一些实施例中,参考图9,图9为本申请实施例提供的用户行为预测模型构建方法的第八种流程示意图。In some embodiments, referring to FIG. 9, FIG. 9 is a schematic flowchart of the eighth method for constructing a user behavior prediction model provided by an embodiment of this application.
其中,步骤150,根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息,包括以下步骤:Wherein, step 150, obtaining the user's behavior habit information in the scene according to the user's historical behavior information in the scene, includes the following steps:
151,根据所述历史行为信息确定用户在所述场景的多个历史行为;151. Determine multiple historical behaviors of the user in the scene according to the historical behavior information.
152,获取每一所述历史行为发生的次数;152. Acquire the number of occurrences of each historical behavior;
153,根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。153. Establish user behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors.
可以理解的是,电子设备根据所述历史行为信息确定用户在所述场景的多个历史行为。其中所述历史行为包括在健身房健身、在火锅店吃火锅或者在超市购物。历史行为信息包括用户打开应用的应用类型信息、健身信息、游戏信息或者美食信息。其中电子设备可以采用k近邻分类算法(k-nearest neighbor classification,KNN算法)获取用户行为信息。It is understandable that the electronic device determines multiple historical behaviors of the user in the scene according to the historical behavior information. The historical behaviors include working out in a gym, eating hot pot in a hot pot restaurant, or shopping in a supermarket. The historical behavior information includes application type information, fitness information, game information, or food information of the application opened by the user. The electronic device can use the k-nearest neighbor classification algorithm (k-nearest neighbor classification, KNN algorithm) to obtain user behavior information.
首先,通过MySQL关系数据库获取多个原始数据d n。其中所述多个原始数据为在所述地理位置信息采集到的相关信息。其中该原始数据可以与美食、游戏或者健身有关。但是在采集该原始数据d n时,电子设备并不知道该原始数据d n到底是什么。因此需要通过KNN算法将多个原始数据d n进行分类,以确定每个所述原始数据d n对应的数据类型。其中数据类型包括美食、游戏或者健身等。 First, obtain multiple raw data d n through the MySQL relational database. The multiple raw data are related information collected in the geographic location information. The raw data may be related to food, games or fitness. However, when the original data acquisition d n, the electronic device does not know what is in the end of the original data d n Yes. It is necessary to more raw data d n classified by KNN algorithm, to determine whether each of the original data d n corresponding to the data type. The data types include food, games, or fitness.
其中,KNN算法的原理是通过计算新数据与历史样本数据中不同类别数据点间的距离对新数据 进行分类。例如,电子设备存储有多个历史美食数据和多个历史健身数据。并且所述历史美食数据的类型为美食类型。所述历史健身数据的类型为健身类型。电子设备采集到A原始数据。将A原始数据的特征向量输入KNN算法模型中。然后可以通过欧式距离公式或者曼哈顿距离公式计算A原始数据与每个历史美食数据之间的距离。以及计算A原始数据与每个历史健身数据之间的距离。Among them, the principle of the KNN algorithm is to classify new data by calculating the distance between the new data and different types of data points in the historical sample data. For example, the electronic device stores multiple historical food data and multiple historical fitness data. And the type of the historical food data is a food type. The type of the historical fitness data is a fitness type. The electronic equipment collects the original data of A. Input the feature vector of A's original data into the KNN algorithm model. Then the distance between the original data of A and each historical food data can be calculated by Euclidean distance formula or Manhattan distance formula. And calculate the distance between A's original data and each historical fitness data.
然后,按照距离的递增进行排列。选取距离值最小的K个点,其中K个点可以为10、20或者100。K值越大说明A原始数据得到的类型越准确。确定K个点在美食类型的频率和在健身类型的频率。选取K个点中出现频率最高的类型作为A原始数据的预测分类。例如,若K个点在美食类型的频率最高,那么A原始数据为美食类型。或者若K个点在健身类型的频率最高,那么A原始数据为健身类型。Then, arrange them according to the increasing distance. Select K points with the smallest distance value, where K points can be 10, 20, or 100. The larger the value of K, the more accurate the type obtained by the original data of A. Determine the frequency of K points in the food type and the frequency in the fitness type. The type with the highest frequency among the K points is selected as the predicted classification of A's original data. For example, if K points have the highest frequency in the food type, then the original data of A is the food type. Or if K points have the highest frequency in the fitness type, then the original data of A is the fitness type.
紧接着,电子设备获取历史行为信息的多个历史行为,例如,历史行为信息为美食类型信息,那么历史行为可以为吃美食、吃火锅或者吃青菜等。然后,电子设备获取每一所述历史行为发生的次数。其中电子设备记录用户每一所述历史行为发生的次数。在预设时间段内,用户在所述场景获取每一历史行为发生的次数。比如,第一周用户在火锅店吃火锅和打游戏。那么电子设备在火锅店发生的历史行为为吃火锅和打游戏,然后电子设备记录所述吃火锅和打游戏。第二周用户在同一家火锅店的历史行为为仅吃火锅。电子设备记录在第二周时用户在同一家火锅店吃火锅。综上,将用户在火锅店发生的历史行为进行汇总,可以得到用户在火锅店吃火锅两次和打游戏一次。Then, the electronic device acquires multiple historical behaviors of historical behavior information. For example, if the historical behavior information is food type information, then the historical behavior can be eating food, eating hot pot, or eating green vegetables. Then, the electronic device obtains the number of occurrences of each historical behavior. The electronic device records the number of occurrences of each historical behavior of the user. In a preset time period, the user obtains the number of occurrences of each historical behavior in the scene. For example, in the first week, users eat hot pot and play games at a hot pot restaurant. Then the historical behavior of the electronic device in the hot pot restaurant is eating hot pot and playing games, and then the electronic device records the eating hot pot and playing games. In the second week, the user’s historical behavior at the same hot pot restaurant was to only eat hot pot. The electronic device records that the user ate hot pot at the same hot pot restaurant in the second week. In summary, summarizing the user's historical behavior in the hot pot restaurant, we can get that the user has eaten hot pot twice and played a game once in the hot pot restaurant.
最后,根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。请参考上例,那么用户在火锅店的行为习惯信息为经常吃火锅,很少打游戏。Finally, the user's behavior habit information in the scene is established according to the multiple historical behaviors and the corresponding times of each of the historical behaviors. Please refer to the above example, then the user's behavioral habit information in hot pot restaurants is that they often eat hot pot and rarely play games.
其中根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息可以如表7所示。The establishment of the user's behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors may be as shown in Table 7.
表7Table 7
历史行为Historical behavior 次数frequency 行为习惯信息Behavior information
吃火锅eat hot pot 88 经常吃火锅Often eat hot pot
吃甜点Eat dessert 55 有时吃甜点Sometimes for dessert
健身Fitness 22 很少健身Little fitness
……... ……... ……...
其中根据历史行为、次数可以获取用户在所述场景的行为习惯信息。例如表7所示,用户在火锅店吃火锅8次,可以获取用户在火锅店经常吃火锅。并且用户在火锅店吃甜点5次,可以获取用户在火锅店有时吃甜点。The user's behavior habit information in the scene can be obtained according to the historical behavior and the number of times. For example, as shown in Table 7, if a user eats hot pot 8 times in a hot pot restaurant, it can be obtained that the user often eats hot pot in a hot pot restaurant. And the user eats dessert 5 times in the hot pot restaurant, you can get the user sometimes eat dessert in the hot pot restaurant.
另外,根据次数可以匹配预设次数区间。根据历史行为、次数、预设次数区间与第七预设对应关系,获取用户在所述场景的行为习惯信息。其中第七预设对应关系包括历史行为、次数、预设次数区间与行为习惯信息之间的对应关系。则历史行为、次数、预设次数区间与行为习惯信息之间的对应关系可以如表8所示。In addition, the preset frequency interval can be matched according to the frequency. According to the correspondence between historical behavior, frequency, preset frequency interval and the seventh preset, the user's behavior habit information in the scene is acquired. The seventh preset correspondence relationship includes the correspondence relationship between historical behavior, frequency, preset frequency interval, and behavior habit information. Then, the correspondence between historical behavior, frequency, preset frequency interval, and behavior habit information can be as shown in Table 8.
表8Table 8
历史行为Historical behavior 次数frequency 预设次数区间Preset frequency interval 行为习惯信息Behavior information
吃火锅eat hot pot 88 [5,9][5,9] 经常吃火锅Often eat hot pot
吃甜点Eat dessert 55 [4,6][4,6] 有时吃甜点Sometimes for dessert
健身Fitness 22 [1,3][1,3] 很少健身Little fitness
……... ……... ……... ……...
电子设备根据表8可以获取到用户在所述场景的行为习惯信息。其中次数与预设次数区间可以在提前在电子设备内部存储,当获取到次数时,可以快速的匹配预设次数区间。The electronic device can obtain the user's behavior habit information in the scene according to Table 8. The frequency and the preset frequency interval can be stored in the electronic device in advance, and when the frequency is obtained, the preset frequency interval can be quickly matched.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, this application is not limited by the order of execution of the various steps described, and certain steps may also be carried out in other order or carried out simultaneously without conflict.
由上可知,本申请实施例提供的用户行为预测模型构建方法,包括:获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;根据所述感知数据识别所述电子设备当前所处的场景;根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关 系类型;根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。所述用户行为预测模型构建方法中,电子设备可以根据用户对所述地理位置的偏好度和行为习惯信息,为用户推送自身感兴趣的信息,以提高电子设备对用户推送信息的准确性。以及提高了电子设备推送信息时的速度和效率。It can be seen from the above that the method for constructing a user behavior prediction model provided by the embodiment of the present application includes: acquiring the geographic location information of the electronic device currently located and the perception data of the scene where the electronic device is currently located; The current scene of the electronic device; the type of relationship between the user and the scene is determined according to the length of time the user stays in the scene and the operation information in the scene; the user pair is obtained according to the historical track information of the user in the scene The preference degree of the scene; the user's behavior habit information in the scene is obtained according to the user's historical behavior information in the scene; the preference degree and the behavior habit information are obtained according to the geographic location information, the relationship type, the preference Establish the user behavior prediction model. In the method for constructing a user behavior prediction model, the electronic device can push information of interest to the user according to the user's preference for the geographic location and behavior habit information, so as to improve the accuracy of the electronic device pushing information to the user. And it improves the speed and efficiency of the electronic device when pushing information.
本申请实施例还提供一种用户行为预测模型构建装置,包括:An embodiment of the present application also provides a device for constructing a user behavior prediction model, including:
一种用户行为预测模型构建装置,包括:A user behavior prediction model construction device, including:
第一获取模块,用于获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;The first acquisition module is used to acquire the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
识别模块,用于根据所述感知数据识别所述电子设备当前所处的场景;An identification module, configured to identify the current scene of the electronic device according to the perception data;
确定模块,用于根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;A determining module, configured to determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
第二获取模块,用于根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;The second acquiring module is configured to acquire the user's preference for the scene according to the historical track information of the user in the scene;
第三获取模块,用于根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;The third obtaining module is configured to obtain the user's behavior habit information in the scene according to the user's historical behavior information in the scene;
建立模块,用于根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The establishment module is used to establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
在一些实施例中,所述确定模块用于:In some embodiments, the determining module is used to:
获取用户在所述场景停留的时长以及在所述场景的操作信息,其中,所述操作信息包括用户对所述电子设备的多个应用软件进行操作的信息;Acquiring the length of time the user stays in the scene and the operation information in the scene, where the operation information includes information about the user's operation of multiple application software of the electronic device;
根据所述操作信息获取用户对每一所述应用软件的被操作次数;Acquiring, according to the operation information, the number of times the user has been operated on each of the application software;
根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。The type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
在一些实施例中,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型时,所述确定模块用于:In some embodiments, when determining the type of relationship between the user and the scene according to the duration and the number of times each application software is operated, the determining module is configured to:
从所述多个应用软件中确定出被操作次数最多的目标应用软件;Determine the target application software that has been operated most frequently from the multiple application software;
根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a first preset correspondence, the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
在一些实施例中,所述被操作次数包括被操作时长,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型时,所述确定模块用于:In some embodiments, the number of times of operation includes the duration of operation. When determining the type of relationship between the user and the scene according to the duration and the number of times each application software is operated, the determining module is configured to :
从所述多个应用软件中确定出被操作时长最长的目标应用软件;Determine the target application software that has been operated for the longest time from the multiple application software;
根据所述时长、所述目标应用软件以及第二预设对应关系,获取用户与所述场景之间的关系类型,其中所述第二预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a second preset correspondence relationship, the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
在一些实施例中,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度时,所述第二获取模块用于:In some embodiments, when acquiring the user's preference for the scene according to the historical track information of the user in the scene, the second acquiring module is configured to:
根据所述历史轨迹信息获取用户出现在所述场景的累计次数;Acquiring the cumulative number of times the user appears in the scene according to the historical track information;
根据所述累计次数确定用户对所述场景的偏好度。The user's preference for the scene is determined according to the cumulative number of times.
在一些实施例中,根据所述累计次数确定用户对所述场景的偏好度时,所述第二获取模块用于:In some embodiments, when determining the user's preference for the scene according to the cumulative number of times, the second acquiring module is configured to:
根据所述累计次数以及第三预设对应关系,获取预设偏好度,其中,所述第三预设对应关系包括累计次数与预设偏好度之间的对应关系;Obtaining a preset preference degree according to the cumulative number of times and a third preset correspondence relationship, where the third preset correspondence relationship includes a correspondence relationship between the cumulative number of times and the preset preference degree;
将所述预设偏好度确定为用户对所述场景的偏好度。The preset preference is determined as the user's preference for the scene.
在一些实施例中,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度时,所述第二获取模块用于:In some embodiments, when acquiring the user's preference for the scene according to the historical track information of the user in the scene, the second acquiring module is configured to:
根据所述历史轨迹信息获取用户出现在所述场景的累计时长;Acquiring, according to the historical track information, the accumulated time that the user appears in the scene;
根据所述累计时长确定用户对所述场景的偏好度。Determine the user's preference for the scene according to the accumulated time.
在一些实施例中,根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息时,所述第三获取模块用于:In some embodiments, when acquiring the user's behavior habit information in the scene according to the user's historical behavior information in the scene, the third acquiring module is configured to:
根据所述历史行为信息确定用户在所述场景的多个历史行为;Determine multiple historical behaviors of the user in the scene according to the historical behavior information;
获取每一所述历史行为发生的次数;Get the number of occurrences of each historical behavior;
根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。Establish user behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors.
本申请实施例提供的用户行为预测模型构建装置可以集成在电子设备中。所述电子设备可以为智能手机、平板电脑、游戏设备、AR(Augmented Reality,增强现实)设备、汽车、数据存储装置、音频播放装置、视频播放装置、笔记本电脑、桌面计算设备、可穿戴设备诸如电子手表、电子眼镜、电子头盔、电子手链、电子项链、电子衣物等设备。The apparatus for constructing a user behavior prediction model provided in the embodiment of the present application may be integrated in an electronic device. The electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as Electronic watches, electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment.
参考图10,图10为本申请实施例提供的用户行为预测模型构建装置的结构示意图。其中,所述用户行为预测模型构建装置200包括:第一获取模块201、识别模块202、确定模块203、第二获取模块204、第三获取模块205、建立模块206。Referring to FIG. 10, FIG. 10 is a schematic structural diagram of a user behavior prediction model construction apparatus provided by an embodiment of the application. Wherein, the user behavior prediction model construction device 200 includes: a first acquisition module 201, an identification module 202, a determination module 203, a second acquisition module 204, a third acquisition module 205, and an establishment module 206.
第一获取模块201,用于获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据。The first acquisition module 201 is configured to acquire the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located.
当用户到达一地点时,第一获取模块201可以通过全球定位系统(Global Positioning System,GPS)获取用户到达该地点的经纬度信息或者坐标点。然后,第一获取模块201根据目标软件将经纬度信息或者坐标点转换为地理位置信息。所述地理位置信息包括商场、办公楼、公交站或者小区等。其中目标软件包括百度地图、腾讯地图或者高德地图等。另外,当用户到达一地点时,第一获取模块201也可以直接通过目标软件获取电子设备所处的地理位置信息。When the user arrives at a place, the first obtaining module 201 may obtain the longitude and latitude information or coordinate points of the user's arrival at the place through the Global Positioning System (GPS). Then, the first acquisition module 201 converts the latitude and longitude information or coordinate points into geographic location information according to the target software. The geographic location information includes shopping malls, office buildings, bus stations, or communities. The target software includes Baidu map, Tencent map or Gaode map, etc. In addition, when the user arrives at a place, the first obtaining module 201 may also directly obtain the geographic location information of the electronic device through the target software.
此外,第一获取模块201可以构建数据库以将获取到的所有数据存储起来。因此可以将所述地理位置信息记为l n。第一获取模块201采集所述地理位置的相关数据。其中该相关数据为至少一个原始数据d n,并且所述原始数据可能与美食、健身或者游戏有关。第一获取模块201可以采用MySQL关系数据库将地理位置信息以及与所述地理位置相关的原始数据以表的形式存储,不需要将所有数据放在一起。因此提高了电子设备获取地理位置信息和原始数据的速度,以及也了提高电子设备使用的灵活性。例如,所述表可以为(l n,d n)。 In addition, the first acquisition module 201 can construct a database to store all the acquired data. Therefore, the geographic location information can be recorded as l n . The first obtaining module 201 collects data related to the geographic location. Wherein the correlation data of at least one raw data d n, and the original data may be related to food, exercise or game. The first obtaining module 201 may use a MySQL relational database to store the geographic location information and the original data related to the geographic location in the form of a table, without putting all the data together. Therefore, the speed at which the electronic device obtains geographic location information and raw data is improved, and the flexibility of using the electronic device is also improved. For example, the table may be (l n , d n ).
相应的,第一获取模块201获取当前所处场景的感知数据。例如电子设备可以通过所述信息感知层的光线传感器来获取当前的环境光强度,通过温度传感器来获取电子设备当前的温度等,也可以通过位置传感器来获取电子设备当前的地理位置。Correspondingly, the first acquisition module 201 acquires the perception data of the current scene. For example, the electronic device may obtain the current ambient light intensity through the light sensor of the information perception layer, the current temperature of the electronic device through the temperature sensor, etc., or the current geographic location of the electronic device through the position sensor.
除此之外,第一获取模块201还可以获取用户的行动轨迹。例如,电子设备识别用户从当前的地理位置移动到另一个地理位置时,电子设备可以追踪用户的移动轨迹。当用户到达目标地理位置时,获取所述目标地理位置的地理位置信息。In addition, the first acquiring module 201 can also acquire the user's action track. For example, when the electronic device recognizes that the user moves from the current geographic location to another geographic location, the electronic device can track the user's movement track. When the user reaches the target geographic location, the geographic location information of the target geographic location is acquired.
识别模块202,用于根据所述感知数据识别所述电子设备当前所处的场景。The recognition module 202 is configured to recognize the current scene of the electronic device according to the perception data.
识别模块202根据获取的感知数据识别电子设备当前所处的场景。例如,将获取到的温度、环境光强度以及地理位置等感知数据对所述电子设备当前所处的场景识别,以确定所述电子设备当前所处的场景。其中所述场景包括:加油站、健身房、美食街或者电影院周边的场景等。The recognition module 202 recognizes the current scene of the electronic device according to the acquired perception data. For example, the acquired sensing data such as temperature, ambient light intensity, and geographic location are used to identify the current scene of the electronic device to determine the current scene of the electronic device. The scenes include: gas stations, gyms, food courts or scenes around movie theaters.
确定模块203,用于根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型。The determining module 203 is configured to determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene.
当用户处于所述场景时,确定模块203获取用户在所述场景停留的时长。其中时长可以以小时、分钟或者秒为单位。例如1小时、40分钟或者2450秒。确定模块203获取用户在所述场景的操作信息。其中所述操作信息包括用户对电子设备的多个应用软件进行操作。所述操作信息可以包括:打开支付宝、打开视频或者打开导航等。根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型。所述关系类型可以包括家、办公室、上班地点或者食堂等。When the user is in the scene, the determining module 203 obtains the length of time the user stays in the scene. The duration can be in hours, minutes or seconds. For example, 1 hour, 40 minutes, or 2450 seconds. The determining module 203 obtains the user's operation information in the scene. The operation information includes the user's operation of multiple application software of the electronic device. The operation information may include: opening Alipay, opening video, or opening navigation. The type of relationship between the user and the scene is determined according to the length of time the user stays in the scene and the operation information in the scene. The relationship type may include home, office, work place, or canteen.
另外,确定模块203可以将关系类型存储下来,并记为c nIn addition, the determining module 203 may store the relationship type and record it as c n .
第二获取模块204,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度。The second obtaining module 204 obtains the user's preference for the scene according to the historical track information of the user in the scene.
第二获取模块204获取用户在所述场景的历史轨迹信息。其中所述历史轨迹信息可以为用户出现在所述场景的累计次数。第二获取模块204可以通过采用常用的统计方法获取累计次数。其中累计次数可以是在预设时间段内用户出现在所述场景的次数。所述预设时间段可以以年、月、周、小时、分钟或者秒为单位。例如,第二获取模块204可以统计用户在一年内出现在电影院的累计次数为五次或 者第二获取模块204可以统计用户在三个月内出现在健身房的累计次数为三次。The second acquiring module 204 acquires historical track information of the user in the scene. The historical track information may be the cumulative number of times the user appears in the scene. The second obtaining module 204 can obtain the cumulative number of times by using a common statistical method. The cumulative number of times may be the number of times the user appears in the scene within a preset time period. The preset time period may be in units of years, months, weeks, hours, minutes, or seconds. For example, the second acquisition module 204 can count the cumulative number of times the user appears in the movie theater within one year as five or the second acquisition module 204 can count the cumulative number of times the user appears in the gym within three months as three.
另外,所述预设时间段也可以是第二获取模块204统计用户自开始使用电子设备的日期到当前日历上的日期这之间的使用时间段。例如,用户开始使用电子设备的日期可以是2018年6月6日。现在或者当前的日历上的日期是2019年8月8日。那么用户使用了电子设备的时长是一年又两个月又两个日。那么第二获取模块204统计用户在所述一年又两个月又两个日内出现在超市的累计次数为30次和电影院的累计次数为3次。In addition, the preset time period may also be the second obtaining module 204 counts the use time period from the date when the user starts using the electronic device to the date on the current calendar. For example, the date when the user starts to use the electronic device may be June 6, 2018. The current or current calendar date is August 8, 2019. Then the length of time the user uses the electronic device is one year, two months, and two days. Then, the second acquisition module 204 counts that the cumulative number of times the user appeared in the supermarket in one year, two months, and two days is 30 times and the cumulative number of times in the movie theater is 3 times.
根据所述累计次数确定用户对所述场景的偏好度。第二获取模块204可以采用常用的统计方法计算用户对所述场景的偏好度。其中所述偏好度包括喜欢、一般喜欢或者讨厌。其中偏好度是衡量用户对所述场景的喜爱程度。例如用户在一天内出现在电影院的累计次数为10次。并且在同一天内用户出现在地铁站的累计次数为3次,那么10次大于3次。因此可以得出用户喜欢出现在电影院。而对出现在地铁站是一般喜欢。The user's preference for the scene is determined according to the cumulative number of times. The second obtaining module 204 may use a common statistical method to calculate the user's preference for the scene. The preference includes like, generally like or dislike. The preference is to measure the degree of user's preference for the scene. For example, the cumulative number of times a user appears in a movie theater in a day is 10 times. And the cumulative number of times the user appeared in the subway station in the same day is 3 times, so 10 times is greater than 3 times. Therefore, it can be concluded that users like to appear in movie theaters. I generally like to appear in subway stations.
此外,所述历史轨迹信息也可以是用户出现在所述场景的累计时长。第二获取模块204可以通过采用常用的统计方法获取累计时长。其中所述累计时长可以是在预设时间段内用户出现在所述场景的累计时长。所述预设时间段可以以年、月、周、小时、分钟或者秒为单位。所述累计时长可以以小时、分钟或者秒为单位。例如,用户在第一天时出现在电影院并且在所述电影院待了3个小时。紧接着,用户在第二天时出现在健身房并且在所述健身房待了2个小时。紧接着,在第三天时用户又出现在电影院并且在所述电影院待了2个小时,其中用户在第三天时出现在的电影院与在第一天时出现的电影院为同一家电影院。综上,用户在这三天内,第二获取模块204统计用户出现在电影院的累计时长为5个小时以及出现在健身房的累计时长为2个小时。In addition, the historical track information may also be the cumulative duration of the user's appearance in the scene. The second obtaining module 204 can obtain the accumulated time length by using a common statistical method. The cumulative duration may be the cumulative duration of the user appearing in the scene within a preset time period. The preset time period may be in units of years, months, weeks, hours, minutes, or seconds. The cumulative duration may be in units of hours, minutes or seconds. For example, the user appeared in a movie theater on the first day and spent 3 hours in the movie theater. Then, the user appeared in the gym on the next day and stayed in the gym for 2 hours. Then, on the third day, the user appeared in the movie theater again and spent 2 hours in the movie theater, wherein the movie theater where the user appeared on the third day and the movie theater where the user appeared on the first day were the same theater. To sum up, in these three days, the second acquisition module 204 counts that the cumulative time that the user appears in the movie theater is 5 hours and the cumulative time that the user appears in the gym is 2 hours.
还例如,第二获取模块204可以统计用户在一年内出现在歌厅的累计时长为5个小时。或者第二获取模块204统计用户在一个月内出现在电影院的累计时长为75分钟。For another example, the second acquisition module 204 can count the cumulative time that the user appears in the karaoke hall within one year as 5 hours. Or, the second acquiring module 204 counts that the cumulative time that the user appears in the movie theater within one month is 75 minutes.
另外,所述预设时间段也可以是第二获取模块204统计用户自开始使用电子设备的日期到当前日历上的日期这之间的使用时间段。例如,用户开始使用电子设备的日期可以是2018年1月1日。现在或者当前的日历上的日期是2019年1月1日。那么用户使用了电子设备的时长是一年。那么第二获取模块204统计用户在所述一年内出现在健身房的累计次数为20次和图书馆的累计次数为2次。In addition, the preset time period may also be the second obtaining module 204 counts the use time period from the date when the user starts using the electronic device to the date on the current calendar. For example, the date when the user starts to use the electronic device may be January 1, 2018. The current or current calendar date is January 1, 2019. Then the user has used the electronic device for one year. Then the second acquisition module 204 counts that the cumulative number of times that the user appears in the gym in the one year is 20 times and the cumulative number of times the library is 2 times.
根据所述累计时长确定用户对所述场景的偏好度。例如用户在一天内出现在电影院的累计时长为3个小时。并且在同一天内用户出现在停车场的累计时长为60分钟。那么3个小时大于60分钟,因此可以得出用户喜欢出现在电影院。而对出现在停车场是一般喜欢。Determine the user's preference for the scene according to the accumulated time. For example, the cumulative time that the user appears in the movie theater in a day is 3 hours. And in the same day, the cumulative time that the user appears in the parking lot is 60 minutes. Then 3 hours is greater than 60 minutes, so it can be concluded that users like to appear in the cinema. And to appear in the parking lot is generally like.
此外,第二获取模块204可以将用户对所述场景的偏好度记录下来,记为p n。根据地理位置信息、关系类型以及偏好度采用MySQL关系数据库以表的形式存储下来。即所述表可以为(l n,c n,p n)。 In addition, the second acquiring module 204 may record the user's preference for the scene, which is recorded as p n . According to geographic location information, relationship type and preference degree, MySQL relational database is used to store it in the form of a table. That is, the table can be (l n , c n , p n ).
第三获取模块205,用于根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息。The third obtaining module 205 is configured to obtain the user's behavior habit information in the scene according to the user's historical behavior information in the scene.
可以理解的是,第三获取模块205根据所述历史行为信息确定用户在所述场景的多个历史行为。其中所述历史行为包括在健身房健身、在火锅店吃火锅或者在超市购物。历史行为信息包括用户打开应用的应用类型信息、健身信息、游戏信息或者美食信息。It is understandable that the third acquiring module 205 determines multiple historical behaviors of the user in the scene according to the historical behavior information. The historical behaviors include working out in a gym, eating hot pot in a hot pot restaurant, or shopping in a supermarket. The historical behavior information includes application type information, fitness information, game information, or food information of the application opened by the user.
然后,第三获取模块205获取每一所述历史行为发生的次数。其中第三获取模块205用户每一所述历史行为发生的次数。在预设时间段内,用户在所述场景获取每一历史行为发生的次数。比如,第一周用户在火锅店吃火锅和打游戏。那么电子设备在火锅店发生的历史行为为吃火锅和打游戏。然后,第三获取模块205记录在第一周时用户的历史行为为所述吃火锅和打游戏。第二周用户在同一家火锅店的历史行为为仅吃火锅。那么电子设备记录在第二周时在同一家火锅店的历史行为为吃火锅。综上,将在火锅店发生的历史行为进行汇总,可以得到用户在火锅店并且在所述两周内的历史行为为吃火锅两次和打游戏一次。Then, the third obtaining module 205 obtains the number of occurrences of each historical behavior. The third obtaining module 205 has the number of occurrences of each historical behavior of the user. In a preset time period, the user obtains the number of occurrences of each historical behavior in the scene. For example, in the first week, users eat hot pot and play games at a hot pot restaurant. Then the historical behavior of electronic equipment in hot pot restaurants is eating hot pot and playing games. Then, the third acquiring module 205 records the user's historical behavior in the first week as the eating hot pot and playing games. In the second week, the user’s historical behavior at the same hot pot restaurant was to only eat hot pot. Then the electronic device records the historical behavior of eating hot pot in the same hot pot restaurant in the second week. In summary, by summarizing the historical behaviors that occurred in the hot pot restaurant, it can be obtained that the user's historical behavior in the hot pot restaurant and within the two weeks is eating hot pot twice and playing a game once.
最后,根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。请参考上例,那么用户在火锅店的行为习惯信息为经常吃火锅,很少打游戏。Finally, the user's behavior habit information in the scene is established according to the multiple historical behaviors and the corresponding times of each of the historical behaviors. Please refer to the above example, then the user's behavioral habit information in hot pot restaurants is that they often eat hot pot and rarely play games.
相应的,第三获取模块205可以存储用户的行为习惯信息,并记为b nCorrespondingly, the third acquiring module 205 can store the user's behavior habit information, and record it as b n .
建立模块206,用于根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息 建立所述用户行为预测模型。The establishment module 206 is configured to establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
首先,建立模块206可以将所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立一个关系表,即(l n,c n,p n,b n)。根据所述关系表生成用户行为预测模型。或者将所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息以数据库的形式存储。根据所述数据库生成用户行为预测模型。或者建立模块206可以直接根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立用户行为预测模型。 First, the establishment module 206 may establish a relationship table for the geographic location information, the relationship type, the preference degree, and the behavior habit information, namely (l n , c n , p n , b n ). Generate a user behavior prediction model according to the relationship table. Or the geographic location information, the relationship type, the preference degree, and the behavior habit information are stored in the form of a database. A user behavior prediction model is generated according to the database. Or the establishment module 206 may directly establish a user behavior prediction model based on the geographic location information, the relationship type, the preference degree, and the behavior habit information.
其次,当所述用户行为预测模型建立完成后,电子设备可以获取用户处于当前场景对应的社会信息。其中社会信息可以包括近邻资源、法律习俗、风土人情或者社会关系等。根据用户行为预测模型,电子设备可以预测用户对哪些社会信息感兴趣。将所述感兴趣的信息推送给用户,以使用户可以快速并且高效的接收自己感兴趣的信息,从而使电子设备提高了推送给用户感兴趣的信息的准确性。并且也可以使电子设备高效并且快速的提供给用户相关信息。例如,用户在购物商场进行购物。购物商场中的特定商家在进行打折促销活动。建立模块206通过用户行为预测模型,预测到用户对打折促销活动的信息感兴趣。那么电子设备可以将所述打折促销活动的信息发送给用户,以使用户快速了解哪个商家在进行打折促销活动以及打折促销活动的内容是什么。Secondly, after the user behavior prediction model is established, the electronic device can obtain social information corresponding to the current scene of the user. The social information can include neighboring resources, laws and customs, customs, or social relations. According to the user behavior prediction model, the electronic device can predict which social information users are interested in. The information of interest is pushed to the user, so that the user can quickly and efficiently receive the information of interest, so that the electronic device improves the accuracy of pushing the information of interest to the user. And it can also enable electronic devices to provide users with relevant information efficiently and quickly. For example, the user is shopping in a shopping mall. Certain merchants in shopping malls are conducting discount promotions. The establishment module 206 predicts that the user is interested in the information of discount promotion activities through the user behavior prediction model. Then the electronic device may send the information of the discount promotion activity to the user, so that the user can quickly understand which merchant is conducting the discount promotion activity and what the content of the discount promotion activity is.
本申请实施例中,电子设备构建用户行为预测模型。根据用户行为预测模型可以预测用户处于当前场景时自己感兴趣的信息。然后将所述信息发送给用户,以使用户实时接收到推送信息,从而提高了电子设备推送信息的准确性和高效性。In the embodiment of the present application, the electronic device constructs a user behavior prediction model. The prediction model based on user behavior can predict the information that the user is interested in when he is in the current scene. Then the information is sent to the user, so that the user can receive the push information in real time, thereby improving the accuracy and efficiency of the electronic device pushing information.
在一些实施例中,所述确定模块203用于执行以下步骤:In some embodiments, the determining module 203 is configured to perform the following steps:
获取用户在所述场景停留的时长以及在所述场景的操作信息,其中,所述操作信息包括用户对所述电子设备的多个应用软件进行操作的信息;Acquiring the length of time the user stays in the scene and the operation information in the scene, where the operation information includes information about the user's operation of multiple application software of the electronic device;
根据所述操作信息获取用户对每一所述应用软件的被操作次数;Acquiring, according to the operation information, the number of times the user has been operated on each of the application software;
根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。The type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
确定模块203可以获取用户在所述场景停留的时长以及在所述场景操作信息。例如所述场景停留的时长为用户从进入所述场景到离开所述场景之间的时长。例如,用户进入电影院到离开电影院经过了2个小时,那么所述2个小时为用户在所述场景停留的时长。其中所述场景操作信息可以包括用户对所述电子设备的多个应用软件进行操作的信息。例如,在电影院打开XX游戏。在饭店打开XX支付软件。The determining module 203 can obtain the length of time the user stays in the scene and the operation information in the scene. For example, the duration of stay in the scene is the duration between when the user enters the scene and leaves the scene. For example, if 2 hours have passed since the user entered the movie theater and left the movie theater, then the 2 hours is the length of time the user stays in the scene. Wherein, the scene operation information may include information that the user operates multiple application software of the electronic device. For example, open the XX game in a movie theater. Open the XX payment software in the restaurant.
然后,确定模块203获取用户对每一所述应用软件的被操作次数。例如,用户在购物商场打开支付软件、游戏软件和拍照软件。其中从用户进入购物商场到离开商场这一时长内,电子设备获取到用户打开支付软件5次、打开游戏软件2次和打开拍照软件3次。Then, the determining module 203 obtains the number of times the user has been operated on each of the application software. For example, users open payment software, game software, and camera software in a shopping mall. Among them, from the time the user enters the shopping mall to when he leaves the mall, the electronic device obtains that the user has opened the payment software 5 times, opened the game software 2 times, and opened the camera software 3 times.
最后,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。可以理解的是,用户在所述场景停留的时长内,确定模块203可以根据每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。其中被操作次数多的应用软件可以认为用户在所述场景经常进行对所述被操作次数多的应用软件进行操作。那么根据所述被操作次数多的应用软件确定用户与所述场景之间的关系类型。Finally, the type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated. It is understandable that, within the length of time the user stays in the scene, the determining module 203 can determine the type of relationship between the user and the scene according to the number of times each application software is operated. The application software that has been operated many times can be considered that the user frequently operates the application software that has been operated many times in the scene. Then, the type of relationship between the user and the scene is determined according to the application software that has been operated many times.
在一些实施例中,所述确定模块203用于执行以下步骤:In some embodiments, the determining module 203 is configured to perform the following steps:
从所述多个应用软件中确定出被操作次数最多的目标应用软件;Determine the target application software that has been operated most frequently from the multiple application software;
根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a first preset correspondence, the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
确定模块203根据获取到的每个应用软件的被操作次数,确定出被操作次数最多的目标应用软件。然后,根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。可以理解的是,被操作次数最多的目标应用软件为用户在所述场景经常操作的目标应用软件。其中被操作次数多的目标应用软件并不指代一个应用软件可以是多个应用软件。The determining module 203 determines the target application software with the most number of operations based on the acquired number of operations for each application software. Then, according to the duration, the target application software, and a first preset correspondence relationship, the relationship type between the user and the scene is acquired, where the first preset correspondence relationship includes duration, target application software, and relationship Correspondence between types. It is understandable that the target application software that has been operated most frequently is the target application software that the user frequently operates in the scene. The target application software that has been operated many times does not mean that one application software can be multiple application software.
因此,所述时长、所述目标应用软件与关系类型之间的对应关系可以如表9所示。Therefore, the corresponding relationship between the duration, the target application software and the relationship type may be as shown in Table 9.
表9Table 9
时长duration 目标应用软件Target application software 关系类型Relationship type
2304秒2304 seconds 支付软件Payment software 购物商场shopping mall
3个小时3 hours 视频软件和淘宝软件Video software and Taobao software Home
……... ……... ……...
根据表9可以根据时长以及目标应用软件确定用户与所述场景之间的关系类型。例如,用户在XX小区并且在3个小时内打开了被操作次数最多的视频软件和淘宝软件,那么根据3个小时、视频软件和淘宝软件,可以获取用户与XX小区的关系类型是家。According to Table 9, the type of relationship between the user and the scene can be determined according to the duration and the target application software. For example, if the user is in the XX community and opened the most frequently operated video software and Taobao software within 3 hours, then according to the 3 hours, video software and Taobao software, the relationship type between the user and the XX community can be obtained as home.
此外,确定模块203可以设定预设被操作次数阈值以准确的获取被操作次数多的目标应用操作。即可以选取大于或者等于预设被操作次数阈值的应用软件作为目标应用软件。例如,电子设备获取到支付软件的被操作次数为3次、拍照软件的被操作次数为5次以及视频软件的被操作次数为1次。其中预设被操作次数阈值为2。那么选取大于等于2的被操作次数对应的应用软件作为目标应用软件。即选取支付软件和拍照软件作为目标应用软件。In addition, the determining module 203 may set a preset threshold of the number of times of operations to accurately obtain target application operations that have been operated many times. That is, the application software that is greater than or equal to the preset threshold of the number of operations can be selected as the target application software. For example, the electronic device obtains that the number of operations of the payment software is 3 times, the number of operations of the photographing software is 5 times, and the number of operations of the video software is 1 time. The preset threshold for the number of operations is 2. Then select the application software corresponding to the number of operations greater than or equal to 2 as the target application software. That is, payment software and camera software are selected as the target application software.
在一些实施例中,所述确定模块203用于执行以下步骤:In some embodiments, the determining module 203 is configured to perform the following steps:
从所述多个应用软件中确定出被操作时长最长的目标应用软件;Determine the target application software that has been operated for the longest time from the multiple application software;
根据所述时长、所述目标应用软件以及第二预设对应关系,获取用户与所述场景之间的关系类型,其中所述第二预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a second preset correspondence relationship, the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
确定模块203根据获取到的每个应用软件的被操作时长,确定出被操作时长的目标应用软件。其中被操作次数包括被操作时长。然后,确定模块203根据所述时长、所述目标应用软件以及第二预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第二预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。可以理解的是,被操作时长最长的目标应用软件为用户在所述场景经常操作的目标应用软件。其中被操作时长最长的目标应用软件并不指代一个应用软件可以是多个应用软件。The determining module 203 determines the target application software for the duration of operation according to the acquired duration of operation of each application software. The number of operations includes the duration of operations. Then, the determining module 203 obtains the type of relationship between the user and the scene according to the duration, the target application software, and a second preset correspondence relationship, where the second preset correspondence relationship includes duration, target application Correspondence between software and relationship types. It can be understood that the target application software that has been operated for the longest time is the target application software that the user frequently operates in the scene. The target application software that has been operated for the longest time does not mean that one application software can be multiple application software.
因此,所述时长、所述目标应用软件与关系类型之间的对应关系可以如表10所示。Therefore, the corresponding relationship between the duration, the target application software, and the relationship type may be as shown in Table 10.
表10Table 10
时长duration 目标应用软件Target application software 关系类型Relationship type
2304秒2304 seconds 支付软件Payment software 购物商场shopping mall
3个小时3 hours 视频软件和淘宝软件Video software and Taobao software Home
……... ……... ……...
根据表2可以根据时长以及目标应用软件确定用户与所述场景之间的关系类型。例如,用户在XX小区并且在3个小时内打开了被操作时长最多的视频软件和淘宝软件,那么根据3个小时、视频软件和淘宝软件,可以获取用户与XX小区的关系类型是家。According to Table 2, the type of relationship between the user and the scene can be determined according to the duration and the target application software. For example, if the user is in the XX community and opened the video software and Taobao software that have been operated for the longest time within 3 hours, then according to the 3 hours, video software and Taobao software, it can be obtained that the type of relationship between the user and the XX community is home.
此外,电子设备可以设定预设被操作时长阈值以准确的获取被操作时长最长的目标应用操作。即可以选取大于或者等于预设被被操作时长阈值的应用软件作为目标应用软件。例如,电子设备获取到支付软件的被操作时长为3个小时、拍照软件的被操作次数为2个小时以及视频软件的被操作时长为40分钟。其中预设被操作时长阈值为1小时。那么选取大于等于1的被操作时长对应的应用软件作为目标应用软件。即选取支付软件和拍照软件作为目标应用软件。In addition, the electronic device may set a preset operating time threshold to accurately obtain the target application operation with the longest operating time. That is, the application software that is greater than or equal to the preset operating time threshold can be selected as the target application software. For example, the electronic device obtains that the payment software has been operated for 3 hours, the photographing software has been operated for 2 hours, and the video software has been operated for 40 minutes. The preset operating time threshold is 1 hour. Then, the application software corresponding to the operated time length greater than or equal to 1 is selected as the target application software. That is, payment software and camera software are selected as the target application software.
在一些实施例中,所述第二获取模块204用于执行以下步骤:In some embodiments, the second acquisition module 204 is configured to perform the following steps:
根据所述历史轨迹信息获取用户出现在所述场景的累计次数;Acquiring the cumulative number of times the user appears in the scene according to the historical track information;
根据所述累计次数确定用户对所述场景的偏好度。The user's preference for the scene is determined according to the cumulative number of times.
第二获取模块204获取用户在所述场景的历史轨迹信息。其中所述历史轨迹信息可以为用户出现在所述场景的累计次数。电子设备可以通过采用常用的统计方法获取累计次数。其中累计次数可以是在预设时间段内用户出现在所述场景的次数。所述预设时间段可以以年、月、周、小时、分钟或者秒为单位。例如,第二获取模块204可以统计用户在一年内出现在电影院的累计次数为五次或者第二获取模块204可以统计用户在三个月内出现在健身房的累计次数为三次。The second acquiring module 204 acquires historical track information of the user in the scene. The historical track information may be the cumulative number of times the user appears in the scene. Electronic equipment can obtain the cumulative number of times by using common statistical methods. The cumulative number of times may be the number of times the user appears in the scene within a preset time period. The preset time period may be in units of years, months, weeks, hours, minutes, or seconds. For example, the second acquisition module 204 may count the cumulative number of times the user appears in the movie theater within one year as five or the second acquisition module 204 may count the cumulative number of times the user appears in the gym within three months as three.
另外,所述预设时间段也可以是第二获取模块204统计用户自开始使用电子设备的日期到当前日历上的日期这之间的使用时间段。例如,用户开始使用电子设备的日期可以是2018年6月6日。现 在或者当前的日历上的日期是2019年8月8日。那么用户使用了电子设备的时长是一年又两个月又两个日。那么第二获取模块204统计用户在所述一年又两个月又两个日内出现在超市的累计次数为30次和电影院的累计次数为3次。In addition, the preset time period may also be the second obtaining module 204 counts the use time period from the date when the user starts using the electronic device to the date on the current calendar. For example, the date when the user starts to use the electronic device may be June 6, 2018. The current or current calendar date is August 8, 2019. Then the length of time the user uses the electronic device is one year, two months, and two days. Then, the second acquisition module 204 counts that the cumulative number of times the user appeared in the supermarket in one year, two months, and two days is 30 times and the cumulative number of times in the movie theater is 3 times.
根据所述累计次数确定用户对所述场景的偏好度。第二获取模块204可以采用常用的统计方法计算用户对所述场景的偏好度。其中所述偏好度包括喜欢、一般喜欢或者讨厌。其中偏好度是衡量用户对所述场景的喜爱程度。例如用户在一天内出现在电影院的累计次数为10次。并且在同一天内用户出现在地铁站的累计次数为3次,那么10次大于3次。因此可以得出用户喜欢出现在电影院。而对出现在地铁站是一般喜欢。The user's preference for the scene is determined according to the cumulative number of times. The second obtaining module 204 may use a common statistical method to calculate the user's preference for the scene. The preference includes like, generally like or dislike. The preference is to measure the degree of user's preference for the scene. For example, the cumulative number of times a user appears in a movie theater in a day is 10 times. And the cumulative number of times the user appeared in the subway station in the same day is 3 times, so 10 times is greater than 3 times. Therefore, it can be concluded that users like to appear in movie theaters. I generally like to appear in subway stations.
在一些实施例中,所述第二获取模块204用于执行以下步骤:In some embodiments, the second acquisition module 204 is configured to perform the following steps:
根据所述累计次数以及第三预设对应关系,获取预设偏好度,其中,所述第三预设对应关系包括累计次数与预设偏好度之间的对应关系;Obtaining a preset preference degree according to the cumulative number of times and a third preset correspondence relationship, where the third preset correspondence relationship includes a correspondence relationship between the cumulative number of times and the preset preference degree;
将所述预设偏好度确定为用户对所述场景的偏好度。The preset preference is determined as the user's preference for the scene.
其中,累计次数与预设偏好度之间的对应关系如表11所示。Among them, the corresponding relationship between the cumulative number of times and the preset preference is shown in Table 11.
表11Table 11
累计次数Cumulative times 预设偏好度Default preference
1010 喜欢like
88 一般喜欢Generally like
66 讨厌hate
……... ……...
根据表11中的用户出现在所述场景的累计次数就可以获取到预设偏好度。例如,累计次数为10,根据表10可以获取到用户对所述场景的偏好度为喜欢。那么可以将获取到的预设偏好度确定为用户对所述场景的偏好度。According to the cumulative number of times the user appears in the scene in Table 11, the preset preference can be obtained. For example, the cumulative number of times is 10, and according to Table 10, it can be obtained that the user's preference for the scene is like. Then the acquired preset preference degree can be determined as the user's preference degree for the scene.
除此之外,第二获取模块204可以存储有预设偏好等级与预设偏好度之间的对应关系。即根据累计次数、预设偏好等级与第四预设对应关系,获取预设偏好度。其中累计次数、预设偏好等级与预设偏好度之间的对应关系,可以如表12所示。In addition, the second acquisition module 204 may store the corresponding relationship between the preset preference level and the preset preference degree. That is, the preset preference degree is obtained according to the corresponding relationship between the accumulated times, the preset preference level and the fourth preset. The corresponding relationship between the cumulative number of times, the preset preference level and the preset preference degree can be shown in Table 12.
表12Table 12
累计次数Cumulative times 预设偏好等级Default preference level 预设偏好度Default preference
1010 5级Level 5 喜欢like
88 4级level 4 一般喜欢Generally like
55 2级level 2 讨厌hate
……... ……... ……...
第二获取模块204从表12中获取预设偏好度。其中预设偏好等级也可以是以分数、百分比的形式。即根据累计次数,不仅可以获取到偏好等级,也可以获取到用户对所述场景的偏好度。然后将获取到预设偏好度确定为用户对所述场景的偏好度。The second obtaining module 204 obtains the preset preference degree from the table 12. The preset preference level can also be in the form of a score or a percentage. That is, according to the accumulated number of times, not only the preference level can be obtained, but also the user's preference for the scene can be obtained. Then, the acquired preset preference is determined as the user's preference for the scene.
在一些实施例中,所述第二获取模块204用于执行以下步骤:In some embodiments, the second acquisition module 204 is configured to perform the following steps:
根据所述历史轨迹信息获取用户出现在所述场景的累计时长;Acquiring, according to the historical track information, the accumulated time that the user appears in the scene;
根据所述累计时长确定用户对所述场景的偏好度。Determine the user's preference for the scene according to the accumulated time.
所述历史轨迹信息可以是用户出现在所述场景的累计时长。第二获取模块204可以通过采用常用的统计方法获取累计时长。其中所述累计时长可以是在预设时间段内用户出现在所述场景的累计时长。所述预设时间段可以以年、月、周、小时、分钟或者秒为单位。所述累计时长可以以小时、分钟或者秒为单位。例如,用户在第一天时出现在电影院并且在所述电影院待了3个小时。紧接着,用户在第二天时出现在健身房并且在所述健身房待了2个小时。紧接着,在第三天时用户又出现在电影院并且在所述电影院待了2个小时,其中用户在第三天时出现在的电影院与在第一天时出现的电影院为同一家电影院。综上,用户在这三天内,第二获取模块204统计用户出现在电影院的累计时长为5个小时以及出现在健身房的累计时长为2个小时。The historical trajectory information may be the cumulative duration of the user's appearance in the scene. The second obtaining module 204 can obtain the accumulated time length by using a common statistical method. The cumulative duration may be the cumulative duration of the user appearing in the scene within a preset time period. The preset time period may be in units of years, months, weeks, hours, minutes, or seconds. The cumulative duration may be in units of hours, minutes or seconds. For example, the user appeared in a movie theater on the first day and spent 3 hours in the movie theater. Then, the user appeared in the gym on the next day and stayed in the gym for 2 hours. Then, on the third day, the user appeared in the movie theater again and spent 2 hours in the movie theater, wherein the movie theater where the user appeared on the third day and the movie theater where the user appeared on the first day were the same theater. To sum up, in these three days, the second acquisition module 204 counts that the cumulative time that the user appears in the movie theater is 5 hours and the cumulative time that the user appears in the gym is 2 hours.
还例如,第二获取模块204可以统计用户在一年内出现在歌厅的累计时长为5个小时。或者第二 获取模块204统计用户在一个月内出现在电影院的累计时长为75分钟。For another example, the second acquisition module 204 can count the cumulative time that the user appears in the karaoke hall within one year as 5 hours. Or, the second obtaining module 204 counts that the cumulative time that the user appears in the movie theater within one month is 75 minutes.
另外,所述预设时间段也可以是第二获取模块204统计用户自开始使用电子设备的日期到当前日历上的日期这之间的使用时间段。例如,用户开始使用电子设备的日期可以是2018年1月1日。现在或者当前的日历上的日期是2019年1月1日。那么用户使用了电子设备的时长是一年。那么第二获取模块204统计用户在所述一年内出现在健身房的累计次数为20次和图书馆的累计次数为2次。In addition, the preset time period may also be the second obtaining module 204 counts the use time period from the date when the user starts using the electronic device to the date on the current calendar. For example, the date when the user starts to use the electronic device may be January 1, 2018. The current or current calendar date is January 1, 2019. Then the user has used the electronic device for one year. Then the second acquisition module 204 counts that the cumulative number of times that the user appears in the gym in the one year is 20 times and the cumulative number of times the library is 2 times.
根据所述累计时长确定用户对所述场景的偏好度。例如用户在一天内出现在电影院的累计时长为3个小时。并且在同一天内用户出现在停车场的累计时长为60分钟。那么3个小时大于60分钟,因此可以得出用户喜欢出现在电影院。而对出现在停车场是一般喜欢。Determine the user's preference for the scene according to the accumulated time. For example, the cumulative time that the user appears in the movie theater in a day is 3 hours. And in the same day, the cumulative time that the user appears in the parking lot is 60 minutes. Then 3 hours is greater than 60 minutes, so it can be concluded that users like to appear in the cinema. And to appear in the parking lot is generally like.
此外,根据所述累计时长以及第五预设对应关系,获取预设偏好度,其中第五预设对应关系包括累计时长与预设偏好度之间的对应关系;In addition, obtaining the preset preference degree according to the accumulated duration and the fifth preset correspondence relationship, where the fifth preset correspondence relationship includes the correspondence relationship between the accumulated duration and the preset preference degree;
将所述预设偏好度确定为用户对所述场景的偏好度。因此,累计时长与预设偏好度之间的对应关系如表13所示。The preset preference is determined as the user's preference for the scene. Therefore, the corresponding relationship between the accumulated duration and the preset preference is shown in Table 13.
表13Table 13
累计时长Cumulative duration 预设偏好度Default preference
1小时1 hour 喜欢like
5分钟5 minutes 一般喜欢Generally like
4秒4 seconds 讨厌hate
……... ……...
第二获取模块204根据表13便可以获取用户对场景的预设偏好度。例如用户出现在所述场景的累计时长为1小时,那么用户对场景的预设偏好度为喜欢。然后则喜欢为用户对场景的偏好度。即将预设偏好度确定为用户对所述场景的偏好度。The second obtaining module 204 can obtain the user's preset preference for the scene according to Table 13. For example, the cumulative time that the user appears in the scene is 1 hour, and the user's preset preference for the scene is like. Then the preference is the user's preference for the scene. That is, the preset preference is determined as the user's preference for the scene.
除此之外,第二获取模块204可以存储有预设偏好等级与预设偏好度之间的对应关系。即根据累计时长、预设偏好等级与第六预设对应关系,获取预设偏好度。其中累计时长、预设偏好等级与预设偏好度之间的对应关系,可以如表14所示。In addition, the second acquisition module 204 may store the corresponding relationship between the preset preference level and the preset preference degree. That is, according to the corresponding relationship between the accumulated time, the preset preference level and the sixth preset, the preset preference degree is obtained. The corresponding relationship between the accumulated duration, the preset preference level and the preset preference degree can be shown in Table 14.
表14Table 14
累计时长Cumulative duration 预设偏好等级Default preference level 预设偏好度Default preference
1小时1 hour 5级Level 5 喜欢like
5分钟5 minutes 4级level 4 一般喜欢Generally like
4秒4 seconds 2级level 2 讨厌hate
……... ……... ……...
第二获取模块204从表14获取预设偏好度。其中预设偏好等级也可以是以分数、百分比的形式。即根据累计时长,不仅可以获取到偏好等级,也可以获取到用户对所述场景的偏好度。然后将所述预设偏好度确定为用户对所述场景的偏好度。The second obtaining module 204 obtains the preset preference degree from the table 14. The preset preference level can also be in the form of a score or a percentage. That is, according to the accumulated duration, not only the preference level can be obtained, but also the user's preference for the scene can be obtained. Then the preset preference is determined as the user's preference for the scene.
在一些实施例中,所述第三获取模块205用于执行以下步骤:In some embodiments, the third obtaining module 205 is configured to perform the following steps:
根据所述历史行为信息确定用户在所述场景的多个历史行为;Determine multiple historical behaviors of the user in the scene according to the historical behavior information;
获取每一所述历史行为发生的次数;Get the number of occurrences of each historical behavior;
根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。Establish user behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors.
可以理解的是,第三获取模块205根据所述历史行为信息确定用户在所述场景的多个历史行为。其中所述历史行为包括在健身房健身、在火锅店吃火锅或者在超市购物。历史行为信息包括用户打开应用的应用类型信息、健身信息、游戏信息或者美食信息。其中电子设备可以采用k近邻分类算法(k-nearest neighbor classification,KNN算法)获取用户行为信息。It is understandable that the third acquiring module 205 determines multiple historical behaviors of the user in the scene according to the historical behavior information. The historical behaviors include working out in a gym, eating hot pot in a hot pot restaurant, or shopping in a supermarket. The historical behavior information includes application type information, fitness information, game information, or food information of the application opened by the user. The electronic device can use the k-nearest neighbor classification algorithm (k-nearest neighbor classification, KNN algorithm) to obtain user behavior information.
首先,通过MySQL关系数据库获取多个原始数据d n。其中所述多个原始数据为在所述地理位置信息采集到的相关信息。其中该原始数据可以与美食、游戏或者健身有关。但是在采集该原始数据d n时,第三获取模块205并不知道该原始数据d n到底是什么。因此需要通过KNN算法将多个原始数据d n进行分类,以确定每个所述原始数据d n对应的数据类型。其中数据类型包括美食、游戏或者健身 等。 First, obtain multiple raw data d n through the MySQL relational database. The multiple raw data are related information collected in the geographic location information. The raw data may be related to food, games or fitness. However, when the original data acquisition d n, a third acquisition module 205 does not know what is in the end of the original data d n Yes. It is necessary to more raw data d n classified by KNN algorithm, to determine whether each of the original data d n corresponding to the data type. The data types include food, games, or fitness.
其中,KNN算法的原理是通过计算新数据与历史样本数据中不同类别数据点间的距离对新数据进行分类。例如,第三获取模块205存储有多个历史美食数据和多个历史健身数据。并且所述历史美食数据的类型为美食类型。所述历史健身数据的类型为健身类型。第三获取模块205采集到A原始数据。将A原始数据的特征向量输入KNN算法模型中。然后可以通过欧式距离公式或者曼哈顿距离公式计算A原始数据与每个历史美食数据之间的距离。以及计算A原始数据与每个历史健身数据之间的距离。Among them, the principle of the KNN algorithm is to classify new data by calculating the distance between the new data and different types of data points in the historical sample data. For example, the third acquisition module 205 stores multiple pieces of historical food data and multiple pieces of historical fitness data. And the type of the historical food data is a food type. The type of the historical fitness data is a fitness type. The third acquisition module 205 acquires A raw data. Input the feature vector of A's original data into the KNN algorithm model. Then the distance between the original data of A and each historical food data can be calculated by Euclidean distance formula or Manhattan distance formula. And calculate the distance between A's original data and each historical fitness data.
然后,按照距离的递增进行排列。选取距离值最小的K个点,其中K个点可以为10、20或者100。K值越大说明A原始数据得到的类型越准确。确定K个点在美食类型的频率和在健身类型的频率。选取K个点中出现频率最高的类型作为A原始数据的预测分类。例如,若K个点在美食类型的频率最高,那么A原始数据为美食类型。或者若K个点在健身类型的频率最高,那么A原始数据为健身类型。Then, arrange them according to the increasing distance. Select K points with the smallest distance value, where K points can be 10, 20, or 100. The larger the value of K, the more accurate the type obtained by the original data of A. Determine the frequency of K points in the food type and the frequency in the fitness type. The type with the highest frequency among the K points is selected as the predicted classification of A's original data. For example, if K points have the highest frequency in the food type, then the original data of A is the food type. Or if K points have the highest frequency in the fitness type, then the original data of A is the fitness type.
紧接着,第三获取模块205获取历史行为信息的多个历史行为,例如,历史行为信息为美食类型信息,那么历史行为可以为吃美食、吃火锅或者吃青菜等。然后,第三获取模块205获取每一所述历史行为发生的次数。其中第三获取模块205记录用户每一所述历史行为发生的次数。在预设时间段内,用户在所述场景获取每一历史行为发生的次数。比如,第一周用户在火锅店吃火锅和打游戏。那么电子设备在火锅店发生的历史行为为吃火锅和打游戏,然后电子设备记录所述吃火锅和打游戏。第二周用户在同一家火锅店的历史行为为仅吃火锅。电子设备记录在第二周时用户在同一家火锅店吃火锅。综上,将用户在火锅店发生的历史行为进行汇总,可以得到用户在火锅店吃火锅两次和打游戏一次。Next, the third acquiring module 205 acquires multiple historical behaviors of historical behavior information. For example, if the historical behavior information is food type information, then the historical behavior can be eating food, eating hot pot, or eating green vegetables. Then, the third obtaining module 205 obtains the number of occurrences of each historical behavior. The third obtaining module 205 records the number of occurrences of each historical behavior of the user. In a preset time period, the user obtains the number of occurrences of each historical behavior in the scene. For example, in the first week, users eat hot pot and play games at a hot pot restaurant. Then the historical behavior of the electronic device in the hot pot restaurant is eating hot pot and playing games, and then the electronic device records the eating hot pot and playing games. In the second week, the user’s historical behavior at the same hot pot restaurant was to only eat hot pot. The electronic device records that the user ate hot pot at the same hot pot restaurant in the second week. In summary, summarizing the user's historical behavior in the hot pot restaurant, we can get that the user has eaten hot pot twice and played a game once in the hot pot restaurant.
最后,根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。请参考上例,那么用户在火锅店的行为习惯信息为经常吃火锅,很少打游戏。Finally, the user's behavior habit information in the scene is established according to the multiple historical behaviors and the corresponding times of each of the historical behaviors. Please refer to the above example, then the user's behavioral habit information in hot pot restaurants is that they often eat hot pot and rarely play games.
其中根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息可以如表15所示。The establishment of user behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors can be as shown in Table 15.
表15Table 15
历史行为Historical behavior 次数frequency 行为习惯信息Behavior information
吃火锅eat hot pot 88 经常吃火锅Often eat hot pot
吃甜点Eat dessert 55 有时吃甜点Sometimes for dessert
健身Fitness 22 很少健身Little fitness
……... ……... ……...
其中根据历史行为、次数可以获取用户在所述场景的行为习惯信息。例如表15所示,用户在火锅店吃火锅8次,可以获取用户在火锅店经常吃火锅。并且用户在火锅店吃甜点5次,可以获取用户在火锅店有时吃甜点。The user's behavior habit information in the scene can be obtained according to the historical behavior and the number of times. For example, as shown in Table 15, a user eats hot pot 8 times in a hot pot restaurant, and it can be obtained that the user often eats hot pot in a hot pot restaurant. And the user eats dessert 5 times in the hot pot restaurant, you can get the user sometimes eat dessert in the hot pot restaurant.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, this application is not limited by the order of execution of the various steps described, and certain steps may also be carried out in other order or carried out simultaneously without conflict.
另外,根据次数可以匹配预设次数区间。根据历史行为、次数、预设次数区间与第七预设对应关系,获取用户在所述场景的行为习惯信息。其中第七预设对应关系包括历史行为、次数、预设次数区间与行为习惯信息之间的对应关系。则历史行为、次数、预设次数区间与行为习惯信息之间的对应关系可以如表16所示。In addition, the preset frequency interval can be matched according to the frequency. According to the correspondence between historical behavior, frequency, preset frequency interval and the seventh preset, the user's behavior habit information in the scene is acquired. The seventh preset correspondence relationship includes the correspondence relationship between historical behavior, frequency, preset frequency interval, and behavior habit information. Then, the correspondence between historical behavior, frequency, preset frequency interval, and behavior habit information can be shown in Table 16.
表16Table 16
历史行为Historical behavior 次数frequency 预设次数区间Preset frequency interval 行为习惯信息Behavior information
吃火锅eat hot pot 88 [5,9][5,9] 经常吃火锅Often eat hot pot
吃甜点Eat dessert 55 [4,6][4,6] 有时吃甜点Sometimes for dessert
健身Fitness 22 [1,3][1,3] 很少健身Little fitness
……... ……... ……... ……...
电子设备根据表16可以获取到用户在所述场景的行为习惯信息。其中次数与预设次数区间可以在提前在电子设备内部存储,当获取到次数时,可以快速的匹配预设次数区间。The electronic device can obtain the user's behavior habit information in the scene according to Table 16. The frequency and the preset frequency interval can be stored in the electronic device in advance, and when the frequency is obtained, the preset frequency interval can be quickly matched.
由上可知,本申请实施例提供的用户行为预测模型构建装置200,包括:第一获取模块201,用于获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;识别模块202,用于根据所述感知数据识别所述电子设备当前所处的场景;确定模块203,用于根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;第二获取模块204,用于根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;第三获取模块205,用于根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;建立模块206,用于根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。所述用户行为预测模型构建装置中,电子设备可以根据用户对所述地理位置的偏好度和行为习惯信息,为用户推送自身感兴趣的信息,以提高电子设备对用户推送信息的准确性。以及提高了电子设备推送信息时的速度和效率。It can be seen from the above that the user behavior prediction model construction apparatus 200 provided by the embodiment of the present application includes: a first obtaining module 201, configured to obtain the geographic location information of the electronic device currently located and the perception data of the current scene of the electronic device The identification module 202 is used to identify the current scene of the electronic device according to the perception data; the determination module 203 is used to determine the user and the scene according to the length of time the user stays in the scene and the operating information in the scene The type of relationship between the scenes; the second acquisition module 204 is used to acquire the user’s preference for the scene according to the user’s historical track information in the scene; the third acquisition module 205 is used to acquire the user’s preference for the scene according to the user’s presence in the scene The historical behavior information of the user obtains the user’s behavior habit information in the scene; the establishment module 206 is used to establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information . In the device for constructing a user behavior prediction model, the electronic device can push information of interest to the user according to the user's preference for the geographic location and behavior habit information, so as to improve the accuracy of the electronic device's pushing information to the user. And it improves the speed and efficiency of the electronic device when pushing information.
本申请实施例还提供一种电子设备。所述电子设备可以为智能手机、平板电脑、游戏设备、AR(Augmented Reality,增强现实)设备、汽车、数据存储装置、音频播放装置、视频播放装置、笔记本电脑、桌面计算设备、可穿戴设备诸如电子手表、电子眼镜、电子头盔、电子手链、电子项链、电子衣物等设备。其中,电子设备可以为用户发送信息。The embodiment of the application also provides an electronic device. The electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as Electronic watches, electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment. Among them, the electronic device can send information to the user.
参考图11,图11为本申请实施例提供的电子设备的第一种结构示意图。Referring to FIG. 11, FIG. 11 is a schematic diagram of a first structure of an electronic device provided by an embodiment of the application.
其中,电子设备300包括处理器301和存储器302。其中,处理器301与存储器302电性连接。Among them, the electronic device 300 includes a processor 301 and a memory 302. Wherein, the processor 301 is electrically connected to the memory 302.
处理器301是电子设备300的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或调用存储在存储器302内的计算机程序,以及调用存储在存储器302内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes the electronic device by running or calling the computer program stored in the memory 302 and calling the data stored in the memory 302. Various functions and processing data of the equipment, so as to monitor the electronic equipment as a whole.
在本实施例中,电子设备300中的处理器301会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器302中,并由处理器301来运行存储在存储器302中的计算机程序,用于:In this embodiment, the processor 301 in the electronic device 300 will load the instructions corresponding to the process of one or more computer programs into the memory 302 according to the following steps, and the processor 301 will run the instructions stored in the memory 302 The computer program in:
获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;Acquiring the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
根据所述感知数据识别所述电子设备当前所处的场景;Identifying the current scene of the electronic device according to the perception data;
根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;Determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;Acquiring the user's preference for the scene according to the historical track information of the user in the scene;
根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;Acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene;
根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
在一些实施例中,根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型时,处理器301用于:In some embodiments, when determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information of the scene, the processor 301 is configured to:
获取用户在所述场景停留的时长以及在所述场景的操作信息,其中,所述操作信息包括用户对所述电子设备的多个应用软件进行操作的信息;Acquiring the length of time the user stays in the scene and the operation information in the scene, where the operation information includes information about the user's operation of multiple application software of the electronic device;
根据所述操作信息获取用户对每一所述应用软件的被操作次数;Acquiring, according to the operation information, the number of times the user has been operated on each of the application software;
根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。The type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
在一些实施例中,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型时,处理器301用于:In some embodiments, when determining the type of relationship between the user and the scene according to the duration and the number of times each application software has been operated, the processor 301 is configured to:
从所述多个应用软件中确定出被操作次数最多的目标应用软件;Determine the target application software that has been operated most frequently from the multiple application software;
根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a first preset correspondence, the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
在一些实施例中,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型时,处理器301用于:In some embodiments, when determining the type of relationship between the user and the scene according to the duration and the number of times each application software has been operated, the processor 301 is configured to:
从所述多个应用软件中确定出被操作时长最长的目标应用软件;Determine the target application software that has been operated for the longest time from the multiple application software;
根据所述时长、所述目标应用软件以及第二预设对应关系,获取用户与所述场景之间的关系类型,其中所述第二预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a second preset correspondence relationship, the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
在一些实施例中,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度时,处理器301用于:In some embodiments, when acquiring the user's preference for the scene according to the historical track information of the user in the scene, the processor 301 is configured to:
根据所述历史轨迹信息获取用户出现在所述场景的累计次数;Acquiring the cumulative number of times the user appears in the scene according to the historical track information;
根据所述累计次数确定用户对所述场景的偏好度。The user's preference for the scene is determined according to the cumulative number of times.
在一些实施例中,根据所述累计次数确定用户对所述场景的偏好度,处理器301用于:In some embodiments, the user’s preference for the scene is determined according to the cumulative number of times, and the processor 301 is configured to:
根据所述累计次数以及第三预设对应关系,获取预设偏好度,其中,所述第三预设对应关系包括累计次数与预设偏好度之间的对应关系;Obtaining a preset preference degree according to the cumulative number of times and a third preset correspondence relationship, where the third preset correspondence relationship includes a correspondence relationship between the cumulative number of times and the preset preference degree;
将所述预设偏好度确定为用户对所述场景的偏好度。The preset preference is determined as the user's preference for the scene.
在一些实施例中,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度,处理器301用于:In some embodiments, according to the historical track information of the user in the scene, the processor 301 is configured to:
根据所述历史轨迹信息获取用户出现在所述场景的累计时长;Acquiring, according to the historical track information, the accumulated time that the user appears in the scene;
根据所述累计时长确定用户对所述场景的偏好度。Determine the user's preference for the scene according to the accumulated time.
在一些实施例中,根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息,处理器301用于:In some embodiments, according to the user's historical behavior information in the scene to obtain the user's behavior habit information in the scene, the processor 301 is configured to:
根据所述历史行为信息确定用户在所述场景的多个历史行为;Determine multiple historical behaviors of the user in the scene according to the historical behavior information;
获取每一所述历史行为发生的次数;Get the number of occurrences of each historical behavior;
根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。Establish user behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors.
存储器302可用于存储计算机程序和数据。存储器302存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器301通过调用存储在存储器302的计算机程序,从而执行各种功能应用以及数据处理。The memory 302 can be used to store computer programs and data. The computer program stored in the memory 302 contains instructions that can be executed in the processor. Computer programs can be composed of various functional modules. The processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 302.
在一些实施例中,参考图12,图12为本申请实施例提供的电子设备的第二种结构示意图。In some embodiments, referring to FIG. 12, FIG. 12 is a schematic diagram of a second structure of an electronic device provided in an embodiment of this application.
其中,电子设备300还包括:显示屏303、控制电路304、输入单元305、传感器306以及电源307。其中,处理器301分别与显示屏303、控制电路304、输入单元305、传感器306以及电源307电性连接。Wherein, the electronic device 300 further includes: a display screen 303, a control circuit 304, an input unit 305, a sensor 306, and a power supply 307. The processor 301 is electrically connected to the display screen 303, the control circuit 304, the input unit 305, the sensor 306, and the power source 307, respectively.
显示屏303可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 303 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of images, text, icons, videos, and any combination thereof.
控制电路304与显示屏303电性连接,用于控制显示屏303显示信息。The control circuit 304 is electrically connected to the display screen 303 for controlling the display screen 303 to display information.
输入单元305可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元305可以包括指纹识别模组。The input unit 305 may be used to receive inputted numbers, character information, or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. The input unit 305 may include a fingerprint recognition module.
传感器306用于采集电子设备自身的信息或者用户的信息或者外部环境信息。例如,传感器306可以包括距离传感器、磁场传感器、光线传感器、加速度传感器、指纹传感器、霍尔传感器、位置传感器、陀螺仪、惯性传感器、姿态感应器、气压计、心率传感器等多个传感器。The sensor 306 is used to collect the information of the electronic device itself or the information of the user or the external environment information. For example, the sensor 306 may include multiple sensors such as a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a Hall sensor, a position sensor, a gyroscope, an inertial sensor, an attitude sensor, a barometer, and a heart rate sensor.
电源307用于给电子设备300的各个部件供电。在一些实施例中,电源307可以通过电源管理系统与处理器301逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 307 is used to supply power to various components of the electronic device 300. In some embodiments, the power supply 307 may be logically connected to the processor 301 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
尽管图12中未示出,电子设备300还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 12, the electronic device 300 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
由上可知,本申请实施例提供了一种电子设备,所述电子设备执行以下步骤:获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;根据所述感知数据识别所述电子设备当前所处的场景;根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。所述用户行为预测模型构建方法中,电子设备可以根据用户对所述地理位置的偏好度和行为习惯信息,为用户推送自身感兴趣的信息,以提高电子设备对用户推送信息的准确性。以及提高了电子设备推送信息时的速度和效率。It can be seen from the above that an embodiment of the present application provides an electronic device, which performs the following steps: obtains the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located; The data identifies the scene where the electronic device is currently located; determines the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene; according to the historical track of the user in the scene The information obtains the user’s preference for the scene; obtains the user’s behavior habit information in the scene according to the user’s historical behavior information in the scene; according to the geographic location information, the relationship type, the preference and the The behavior habit information establishes the user behavior prediction model. In the method for constructing a user behavior prediction model, the electronic device can push information of interest to the user according to the user's preference for the geographic location and behavior habit information, so as to improve the accuracy of the electronic device pushing information to the user. And it improves the speed and efficiency of the electronic device when pushing information.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序应用于电子设备,所述电子设备可以推送信息,并将所述推送信息在电子设备的显示屏上进行显示,当所述 计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的用户行为预测模型构建方法。The embodiment of the present application also provides a storage medium in which a computer program is stored, and the computer program is applied to an electronic device. The electronic device can push information and display the pushed information on the display screen of the electronic device. When the computer program runs on the computer, the computer executes the user behavior prediction model construction method described in any of the above embodiments.
例如,当所述计算机程序在计算机上运行时,使得所述计算机执行:For example, when the computer program runs on a computer, the computer is caused to execute:
获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;Acquiring the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
根据所述感知数据识别所述电子设备当前所处的场景;Identifying the current scene of the electronic device according to the perception data;
根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;Determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;Acquiring the user's preference for the scene according to the historical track information of the user in the scene;
根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;Acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene;
根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述存储介质可以包括但不限于:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing relevant hardware through a computer program, which can be stored in a computer-readable storage medium. Here, the storage medium may include, but is not limited to: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
以上对本申请实施例所提供的用户行为预测模型构建方法、装置、存储介质及电子设备进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method, device, storage medium, and electronic equipment for constructing a user behavior prediction model provided by the embodiments of the present application are described in detail above. Specific examples are used in this article to describe the principles and implementation of the application. The description of the above examples is only used to help understand the methods and core ideas of the application; at the same time, for those skilled in the art, according to the There will be changes in the thinking, specific implementation and application scope. In summary, the content of this specification should not be construed as a limitation to this application.

Claims (20)

  1. 一种用户行为预测模型构建方法,包括:A method for constructing a user behavior prediction model, including:
    获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;Acquiring the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
    根据所述感知数据识别所述电子设备当前所处的场景;Identifying the current scene of the electronic device according to the perception data;
    根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;Determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
    根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;Acquiring the user's preference for the scene according to the historical track information of the user in the scene;
    根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;Acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene;
    根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  2. 根据权利要求1所述的用户行为预测模型构建方法,其中,所述根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型,包括:The method for constructing a user behavior prediction model according to claim 1, wherein the determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information of the scene includes:
    获取用户在所述场景停留的时长以及在所述场景的操作信息,其中,所述操作信息包括用户对所述电子设备的多个应用软件进行操作的信息;Acquiring the length of time the user stays in the scene and the operation information in the scene, where the operation information includes information about the user's operation of multiple application software of the electronic device;
    根据所述操作信息获取用户对每一所述应用软件的被操作次数;Acquiring, according to the operation information, the number of times the user has been operated on each of the application software;
    根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。The type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
  3. 根据权利要求2所述的用户行为预测模型构建方法,其中,所述根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型,包括:The method for constructing a user behavior prediction model according to claim 2, wherein the determining the type of relationship between the user and the scene according to the duration and the number of times each application software is operated includes:
    从所述多个应用软件中确定出被操作次数最多的目标应用软件;Determine the target application software that has been operated most frequently from the multiple application software;
    根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a first preset correspondence, the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
  4. 根据权利要求2所述的用户行为预测模型构建方法,其中,所述被操作次数包括被操作时长,所述根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型,包括:The method for constructing a user behavior prediction model according to claim 2, wherein the number of times of operation includes the duration of operation, and the determination of the relationship between the user and the scene is based on the duration and the number of times each application software is operated. Types of relationships between, including:
    从所述多个应用软件中确定出被操作时长最长的目标应用软件;Determine the target application software that has been operated for the longest time from the multiple application software;
    根据所述时长、所述目标应用软件以及第二预设对应关系,获取用户与所述场景之间的关系类型,其中所述第二预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a second preset correspondence relationship, the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
  5. 根据权利要求1所述的用户行为预测模型构建方法,其中,所述根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度,包括:The method for constructing a user behavior prediction model according to claim 1, wherein the obtaining the user's preference for the scene according to the historical track information of the user in the scene comprises:
    根据所述历史轨迹信息获取用户出现在所述场景的累计次数;Acquiring the cumulative number of times the user appears in the scene according to the historical track information;
    根据所述累计次数确定用户对所述场景的偏好度。The user's preference for the scene is determined according to the cumulative number of times.
  6. 根据权利要求5所述的用户行为预测模型构建方法,其中,所述根据所述累计次数确定用户对所述场景的偏好度,包括:The method for constructing a user behavior prediction model according to claim 5, wherein the determining the user's preference for the scene according to the cumulative number of times comprises:
    根据所述累计次数以及第三预设对应关系,获取预设偏好度,其中,所述第三预设对应关系包括累计次数与预设偏好度之间的对应关系;Obtaining a preset preference degree according to the cumulative number of times and a third preset correspondence relationship, where the third preset correspondence relationship includes a correspondence relationship between the cumulative number of times and the preset preference degree;
    将所述预设偏好度确定为用户对所述场景的偏好度。The preset preference is determined as the user's preference for the scene.
  7. 根据权利要求1所述的用户行为预测模型构建方法,其中,所述根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度,包括:The method for constructing a user behavior prediction model according to claim 1, wherein the obtaining the user's preference for the scene according to the historical track information of the user in the scene comprises:
    根据所述历史轨迹信息获取用户出现在所述场景的累计时长;Acquiring, according to the historical track information, the accumulated time that the user appears in the scene;
    根据所述累计时长确定用户对所述场景的偏好度。Determine the user's preference for the scene according to the accumulated time.
  8. 根据权利要求1所述的用户行为预测模型构建方法,其中,所述根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息,包括:The method for constructing a user behavior prediction model according to claim 1, wherein the acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene comprises:
    根据所述历史行为信息确定用户在所述场景的多个历史行为;Determine multiple historical behaviors of the user in the scene according to the historical behavior information;
    获取每一所述历史行为发生的次数;Get the number of occurrences of each historical behavior;
    根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。Establish user behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors.
  9. 一种用户行为预测模型构建装置,包括:A user behavior prediction model construction device, including:
    第一获取模块,用于获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感 知数据;The first obtaining module is used to obtain the geographic location information where the electronic device is currently located and the sensory data of the scene where the electronic device is currently located;
    识别模块,用于根据所述感知数据识别所述电子设备当前所处的场景;An identification module, configured to identify the current scene of the electronic device according to the perception data;
    确定模块,用于根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;A determining module, configured to determine the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
    第二获取模块,用于根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;The second acquiring module is configured to acquire the user's preference for the scene according to the historical track information of the user in the scene;
    第三获取模块,用于根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;The third obtaining module is configured to obtain the user's behavior habit information in the scene according to the user's historical behavior information in the scene;
    建立模块,用于根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The establishment module is used to establish the user behavior prediction model according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  10. 根据权利要求9所述的用户行为预测模型构建装置,其中,所述确定模块用于:The device for constructing a user behavior prediction model according to claim 9, wherein the determining module is configured to:
    获取用户在所述场景停留的时长以及在所述场景的操作信息,其中,所述操作信息包括用户对所述电子设备的多个应用软件进行操作的信息;Acquiring the length of time the user stays in the scene and the operation information in the scene, where the operation information includes information about the user's operation of multiple application software of the electronic device;
    根据所述操作信息获取用户对每一所述应用软件的被操作次数;Acquiring, according to the operation information, the number of times the user has been operated on each of the application software;
    根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。The type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
  11. 根据权利要求10所述的用户行为预测模型构建装置,其中,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型时,所述确定模块用于:The device for constructing a user behavior prediction model according to claim 10, wherein when determining the type of relationship between the user and the scene according to the duration and the number of times each of the application software is operated, the determining module is configured to :
    从所述多个应用软件中确定出被操作次数最多的目标应用软件;Determine the target application software that has been operated most frequently from the multiple application software;
    根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a first preset correspondence, the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
  12. 一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行:A storage medium in which a computer program is stored, and when the computer program runs on a computer, the computer executes:
    获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;Acquiring the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
    根据所述感知数据识别所述电子设备当前所处的场景;Identifying the current scene of the electronic device according to the perception data;
    根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;Determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
    根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;Acquiring the user's preference for the scene according to the historical track information of the user in the scene;
    根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;Acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene;
    根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  13. 一种电子设备,所述电子设备包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于:An electronic device, the electronic device includes a processor and a memory, and a computer program is stored in the memory, and the processor is configured to: by calling the computer program stored in the memory:
    获取电子设备当前所处的地理位置信息以及所述电子设备当前所处场景的感知数据;Acquiring the geographic location information where the electronic device is currently located and the perception data of the scene where the electronic device is currently located;
    根据所述感知数据识别所述电子设备当前所处的场景;Identifying the current scene of the electronic device according to the perception data;
    根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型;Determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information in the scene;
    根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度;Acquiring the user's preference for the scene according to the historical track information of the user in the scene;
    根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息;Acquiring user behavior habit information in the scene according to the user's historical behavior information in the scene;
    根据所述地理位置信息、所述关系类型、所述偏好度以及所述行为习惯信息建立所述用户行为预测模型。The user behavior prediction model is established according to the geographic location information, the relationship type, the preference degree, and the behavior habit information.
  14. 根据权利要求13所述的电子设备,其中,根据用户在所述场景停留的时长以及在所述场景的操作信息确定用户与所述场景之间的关系类型时,所述处理器用于:The electronic device according to claim 13, wherein, when determining the type of relationship between the user and the scene according to the length of time the user stays in the scene and the operation information of the scene, the processor is configured to:
    获取用户在所述场景停留的时长以及在所述场景的操作信息,其中,所述操作信息包括用户对所述电子设备的多个应用软件进行操作的信息;Acquiring the length of time the user stays in the scene and the operation information in the scene, where the operation information includes information about the user's operation of multiple application software of the electronic device;
    根据所述操作信息获取用户对每一所述应用软件的被操作次数;Acquiring, according to the operation information, the number of times the user has been operated on each of the application software;
    根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型。The type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated.
  15. 根据权利要求14所述的电子设备,其中,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型时,所述处理器用于:The electronic device according to claim 14, wherein, when determining the type of relationship between the user and the scene according to the duration and the number of times each of the application software is operated, the processor is configured to:
    从所述多个应用软件中确定出被操作次数最多的目标应用软件;Determine the target application software that has been operated most frequently from the multiple application software;
    根据所述时长、所述目标应用软件以及第一预设对应关系,获取用户与所述场景之间的关系类型,其中,所述第一预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a first preset correspondence, the relationship type between the user and the scene is acquired, where the first preset correspondence includes the duration, the target application software, and the relationship type. Correspondence between.
  16. 根据权利要求14所述的电子设备,其中,所述被操作次数包括被操作时长,根据所述时长以及每一所述应用软件的被操作次数确定用户与所述场景之间的关系类型时,所述处理器用于:The electronic device according to claim 14, wherein the number of times of operation includes the duration of the operation, and when the type of relationship between the user and the scene is determined according to the duration and the number of times each application software is operated, The processor is used for:
    从所述多个应用软件中确定出被操作时长最长的目标应用软件;Determine the target application software that has been operated for the longest time from the multiple application software;
    根据所述时长、所述目标应用软件以及第二预设对应关系,获取用户与所述场景之间的关系类型,其中所述第二预设对应关系包括时长、目标应用软件与关系类型之间的对应关系。According to the duration, the target application software, and a second preset correspondence relationship, the relationship type between the user and the scene is acquired, wherein the second preset correspondence relationship includes the duration, the target application software and the relationship type The corresponding relationship.
  17. 根据权利要求13所述的电子设备,其中,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度时,所述处理器用于:The electronic device according to claim 13, wherein, when acquiring the user's preference for the scene according to the historical track information of the user in the scene, the processor is configured to:
    根据所述历史轨迹信息获取用户出现在所述场景的累计次数;Acquiring the cumulative number of times the user appears in the scene according to the historical track information;
    根据所述累计次数确定用户对所述场景的偏好度。The user's preference for the scene is determined according to the cumulative number of times.
  18. 根据权利要求17所述的电子设备,其中,根据所述累计次数确定用户对所述场景的偏好度时,所述处理器用于:The electronic device according to claim 17, wherein when determining the user's preference for the scene according to the cumulative number of times, the processor is configured to:
    根据所述累计次数以及第三预设对应关系,获取预设偏好度,其中,所述第三预设对应关系包括累计次数与预设偏好度之间的对应关系;Obtaining a preset preference degree according to the cumulative number of times and a third preset correspondence relationship, where the third preset correspondence relationship includes a correspondence relationship between the cumulative number of times and the preset preference degree;
    将所述预设偏好度确定为用户对所述场景的偏好度。The preset preference is determined as the user's preference for the scene.
  19. 根据权利要求13所述的电子设备,其中,根据用户在所述场景的历史轨迹信息获取用户对所述场景的偏好度时,所述处理器用于:The electronic device according to claim 13, wherein, when acquiring the user's preference for the scene according to the historical track information of the user in the scene, the processor is configured to:
    根据所述历史轨迹信息获取用户出现在所述场景的累计时长;Acquiring, according to the historical track information, the accumulated time that the user appears in the scene;
    根据所述累计时长确定用户对所述场景的偏好度。Determine the user's preference for the scene according to the accumulated time.
  20. 根据权利要求13所述的电子设备,其中,根据用户在所述场景的历史行为信息获取用户在所述场景的行为习惯信息时,所述处理器用于:The electronic device according to claim 13, wherein, when acquiring the behavior habit information of the user in the scene according to the historical behavior information of the user in the scene, the processor is configured to:
    根据所述历史行为信息确定用户在所述场景的多个历史行为;Determine multiple historical behaviors of the user in the scene according to the historical behavior information;
    获取每一所述历史行为发生的次数;Get the number of occurrences of each historical behavior;
    根据所述多个历史行为以及每一所述历史行为对应的次数建立用户在所述场景的行为习惯信息。Establish user behavior habit information in the scene according to the multiple historical behaviors and the corresponding times of each of the historical behaviors.
PCT/CN2020/079549 2019-04-09 2020-03-16 Method and apparatus for constructing user behavior prediction model, storage medium and electronic device WO2020207201A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910282466.8A CN111798260A (en) 2019-04-09 2019-04-09 User behavior prediction model construction method and device, storage medium and electronic equipment
CN201910282466.8 2019-04-09

Publications (1)

Publication Number Publication Date
WO2020207201A1 true WO2020207201A1 (en) 2020-10-15

Family

ID=72750616

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/079549 WO2020207201A1 (en) 2019-04-09 2020-03-16 Method and apparatus for constructing user behavior prediction model, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN111798260A (en)
WO (1) WO2020207201A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112594937B (en) * 2020-12-16 2022-03-18 珠海格力电器股份有限公司 Control method and device of water heater, electronic equipment and storage medium
CN112685641B (en) * 2020-12-31 2023-04-07 五八有限公司 Information processing method and device
CN113110089A (en) * 2021-04-29 2021-07-13 广东电网有限责任公司 Household electrical appliance optimized use management method, device, equipment and medium
CN113505310A (en) * 2021-07-07 2021-10-15 辽宁工程技术大学 Campus user next position recommendation method based on space-time attention network
CN113485146B (en) * 2021-07-30 2022-12-23 重庆海尔空调器有限公司 Control method and control device for household appliance and household appliance
CN113946222A (en) * 2021-11-17 2022-01-18 杭州逗酷软件科技有限公司 Control method, electronic device and computer storage medium
CN117042253A (en) * 2023-07-11 2023-11-10 昆山恩都照明有限公司 Intelligent LED lamp, control system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070060343A1 (en) * 2005-09-09 2007-03-15 Microsoft Corporation Role play system
CN104102719A (en) * 2014-07-18 2014-10-15 百度在线网络技术(北京)有限公司 Track information pushing method and device
CN105653134A (en) * 2015-05-02 2016-06-08 Tcl集团股份有限公司 An application switching method and a system thereof

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011065504A (en) * 2009-09-18 2011-03-31 Tokyo Univ Of Science Preference prediction server for generating prediction model concerning preference relation of user and method therefor
CN104331404B (en) * 2013-07-22 2018-05-01 中国科学院深圳先进技术研究院 A kind of user's behavior prediction method and apparatus based on user mobile phone Internet data
CN104268154A (en) * 2014-09-02 2015-01-07 百度在线网络技术(北京)有限公司 Recommended information providing method and device
CN105142104A (en) * 2015-06-19 2015-12-09 北京奇虎科技有限公司 Method, device and system for providing recommendation information
CN105631711A (en) * 2015-12-30 2016-06-01 合一网络技术(北京)有限公司 Advertisement putting method and apparatus
CN106709606B (en) * 2016-12-29 2020-10-30 平安科技(深圳)有限公司 Personalized scene prediction method and device
US20200012958A1 (en) * 2017-02-22 2020-01-09 Appnext Ltd. System and method for real-time generation of predictive models of mobile users' behavior
CN107665230B (en) * 2017-06-21 2021-06-01 海信集团有限公司 Training method and device of user behavior prediction model for intelligent home control
CN108303108B (en) * 2017-12-05 2020-05-22 华南理工大学 Personalized route recommendation method based on vehicle historical track
CN108416649A (en) * 2018-02-05 2018-08-17 北京三快在线科技有限公司 Search result ordering method, device, electronic equipment and storage medium
CN108460631B (en) * 2018-02-13 2021-03-09 口口相传(北京)网络技术有限公司 Hybrid pushing method and device for diversified information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070060343A1 (en) * 2005-09-09 2007-03-15 Microsoft Corporation Role play system
CN104102719A (en) * 2014-07-18 2014-10-15 百度在线网络技术(北京)有限公司 Track information pushing method and device
CN105653134A (en) * 2015-05-02 2016-06-08 Tcl集团股份有限公司 An application switching method and a system thereof

Also Published As

Publication number Publication date
CN111798260A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
WO2020207201A1 (en) Method and apparatus for constructing user behavior prediction model, storage medium and electronic device
US20200177686A1 (en) Ranking of Place-Entities on Online Social Networks
CN109800325A (en) Video recommendation method, device and computer readable storage medium
US9183497B2 (en) Performance-efficient system for predicting user activities based on time-related features
EP2915319B1 (en) Managing a context model in a mobile device by assigning context labels for data clusters
US11568660B1 (en) System and method for improving localization and object tracking
CN101960795B (en) System and method for delivery of augmented messages
CN105051719B (en) Apparatus and method for dynamically invalidating crowd-sourced content
US10699320B2 (en) Marketplace feed ranking on online social networks
CN104718765A (en) Method relating to presence granularity with augmented reality
WO2018227823A1 (en) Method for generating user portrait, and terminal
JP6911603B2 (en) How to generate predictive models for the categories of facilities visited by users, programs, server equipment, and processing equipment
CN109948611A (en) A kind of method and device that method, the information of information area determination are shown
CN113366489A (en) Detecting augmented reality targets
CN108734502A (en) A kind of data statistical approach and system based on user location
CN103106236A (en) Information registration device, information registration method, information registration system, information presentation device, informaton presentation method and informaton presentaton system
US20170270563A1 (en) Systems and Techniques for Targeting Electronic Communication Based On Frequency of Product Exposure
TW201510901A (en) Strength based modeling for recommendation system
WO2020221121A1 (en) Video query method, device, apparatus, and storage medium
US20220156769A1 (en) Data processing methods, apparatuses and devices, and storage media
CN112328911A (en) Site recommendation method, device, equipment and storage medium
CN108734501A (en) A kind of mobile position platform
CN117435819A (en) Method, system and storage medium for recommending interest points through space-time dynamic perception
CN111797867A (en) System resource optimization method and device, storage medium and electronic equipment
RU2658876C1 (en) Wireless device sensor data processing method and server for the object vector creating connected with the physical position

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20788142

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20788142

Country of ref document: EP

Kind code of ref document: A1