CN109445617B - Recommendation method and device and computer readable storage medium - Google Patents

Recommendation method and device and computer readable storage medium Download PDF

Info

Publication number
CN109445617B
CN109445617B CN201811125051.1A CN201811125051A CN109445617B CN 109445617 B CN109445617 B CN 109445617B CN 201811125051 A CN201811125051 A CN 201811125051A CN 109445617 B CN109445617 B CN 109445617B
Authority
CN
China
Prior art keywords
terminal
user
information
shaking
recommendation
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201811125051.1A
Other languages
Chinese (zh)
Other versions
CN109445617A (en
Inventor
丁荟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology Co Ltd
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 China Mobile Communications Group Co Ltd, MIGU Interactive Entertainment Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811125051.1A priority Critical patent/CN109445617B/en
Publication of CN109445617A publication Critical patent/CN109445617A/en
Application granted granted Critical
Publication of CN109445617B publication Critical patent/CN109445617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Abstract

The invention discloses a recommendation method, which comprises the following steps: when a second terminal is monitored within a preset position range of a moving first terminal, monitoring whether a user using the second terminal executes a specific shaking operation; when monitoring that a user using the second terminal executes a specific shaking operation, acquiring a shaking frequency corresponding to the specific shaking operation executed by the second terminal; matching the shaking frequency with the step frequency of a user using the first terminal to obtain a matching result; when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.

Description

Recommendation method and device and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a recommendation method and apparatus, and a computer-readable storage medium.
Background
Currently, in order to improve the sports interest of a user, a sports friend may be recommended to the user while the user is in motion, so that the user and the recommended sports friend move together.
When recommending sports friends to a user, the server generally recommends based on the social relationship of the user, where the social relationship may be a friend relationship established in WeChat, a friend relationship established in QQ, a friend relationship in a cell phone address book, and the like. However, the user is recommended with the sports friends based on the existing social relationship of the user, and the user can only move together with other users in the social circle, which is not beneficial to expanding the social circle.
Disclosure of Invention
In view of this, embodiments of the present invention desirably provide a recommendation method, apparatus, and computer-readable storage medium, which are capable of determining a sports friend from users other than the social circle of the user and recommending the sports friend to the user.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a recommendation method, which comprises the following steps:
when a second terminal is monitored within a preset position range of a moving first terminal, monitoring whether a user using the second terminal executes a specific shaking operation;
when monitoring that a user using the second terminal executes a specific shaking operation, acquiring a shaking frequency corresponding to the specific shaking operation executed by the second terminal;
matching the shaking frequency with the step frequency of a user using the first terminal to obtain a matching result;
when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
In the foregoing solution, the monitoring whether the user using the second terminal performs a specific shaking operation includes:
monitoring whether a user using the second terminal performs shaking operation;
when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation;
comparing the first image with a preset image to obtain a comparison result;
when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
In the foregoing solution, when the matching result indicates that the shake frequency matches the step frequency, sending the motion-related information of the user using the second terminal to the first terminal, includes:
acquiring the current position information of a user using the first terminal;
sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal;
receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal;
and sending the motion related information of the user using the second terminal to the first terminal.
In the foregoing solution, before the sending the motion-related information of the user using the second terminal to the first terminal, the method further includes:
acquiring relevant recommendation information of a user using the second terminal; the related recommendation information at least represents identity information of a user using the second terminal, evaluation information of the mobile friend on the user using the second terminal, and the number of times of adding the mobile friend to the first terminal user;
determining a recommendation score of a user using the second terminal by using the related recommendation information; the recommendation score represents whether a user using the second terminal is suitable for being used as a recommended motion friend or not;
judging whether the recommendation score is larger than a preset threshold value or not;
and when the recommendation score is determined to be larger than the preset threshold value, sending the motion related information of the user using the second terminal to the first terminal.
In the foregoing solution, the sending the motion-related information of the user using the second terminal to the first terminal includes:
calculating a first similarity based on the identification information of the user using the first terminal and the identification information of the user using the second terminal;
calculating a second similarity based on the historical movement record of the user using the first terminal and the historical movement record of the user using the second terminal;
judging whether the sum of the first similarity and the second similarity is greater than a preset similarity threshold value;
and when the sum of the first similarity and the second similarity is determined to be greater than a preset similarity threshold, sending the motion related information of the user using the second terminal to the first terminal.
An embodiment of the present invention provides a recommendation apparatus, where the apparatus includes:
the monitoring module is used for monitoring whether a user using a second terminal executes a specific shaking operation or not when the second terminal is monitored within a preset position range of a moving first terminal;
the acquisition module is used for acquiring the shaking frequency corresponding to the specific shaking operation executed by the second terminal when the specific shaking operation executed by the user using the second terminal is monitored;
the matching module is used for matching the shaking frequency with the step frequency of the user using the first terminal to obtain a matching result;
the recommending module is used for sending the motion related information of the user using the second terminal to the first terminal when the matching result represents that the shaking frequency is matched with the step frequency, so that the user using the second terminal is recommended to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
In the above scheme, the monitoring module is specifically configured to monitor whether a user using the second terminal performs a shaking operation; when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation; comparing the first image with a preset image to obtain a comparison result; when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
In the above scheme, the recommending module is specifically configured to obtain the current location information of the user using the first terminal; sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal; receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal; and sending the motion related information of the user using the second terminal to the first terminal.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the recommendation methods described above.
An embodiment of the present invention provides a recommendation apparatus, including: a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor is configured to execute the steps of any of the recommendation methods described above when running the computer program.
According to the recommendation method, the recommendation device and the computer-readable storage medium provided by the embodiment of the invention, when a second terminal is monitored in a preset position range of a moving first terminal, whether a user using the second terminal executes a specific shaking operation is monitored; when monitoring that a user using the second terminal executes a specific shaking operation, acquiring a shaking frequency corresponding to the specific shaking operation executed by the second terminal; matching the shaking frequency with the step frequency of a user using the first terminal to obtain a matching result; when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object. In the embodiment of the invention, based on the matching result of the shaking frequency of the second terminal for executing the shaking operation and the step frequency of the user using the first terminal, the motion friend is recommended to the user using the first terminal. Obviously, the motion friend is not recommended to the user using the first terminal based on the social relationship of the user using the first terminal, but the motion friend is determined from other users except the social circle of the user using the first terminal, so that the social circle of the user using the first terminal is favorably expanded.
Drawings
FIG. 1 is a schematic diagram of an implementation flow of a recommendation method according to an embodiment of the present invention;
FIG. 2 is a first schematic diagram illustrating a first exemplary embodiment of a recommendation device;
fig. 3 is a schematic diagram of a second exemplary embodiment of a recommendation device.
Detailed Description
In the embodiment of the invention, when a second terminal is monitored in a preset position range of a moving first terminal, whether a user using the second terminal executes a specific shaking operation is monitored; when monitoring that a user using the second terminal executes a specific shaking operation, acquiring a shaking frequency corresponding to the specific shaking operation executed by the second terminal; matching the shaking frequency with the step frequency of a user using the first terminal to obtain a matching result; when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
As shown in fig. 1, a recommendation method according to an embodiment of the present invention is described in detail, and the recommendation method according to the embodiment is applied to a server side, and includes the following steps:
step 101: when a second terminal is monitored within a preset position range of a moving first terminal, monitoring whether a user using the second terminal executes a specific shaking operation.
Here, the server monitors the process of the moving first terminal, including the following cases:
firstly, in the movement process of a user using the first terminal, the first terminal sends movement data acquired by a sensor to a server, and the server judges whether the user using the first terminal is moving or not according to the received movement data; when it is determined that a user using the first terminal is moving, it is determined that the moving first terminal is monitored.
The motion data may include a position of the user, a motion pattern of the user, a motion time, and the like. Modes of motion include, but are not limited to, running, walking, and the like.
Secondly, the server monitors the current positions of a plurality of users in a preset user list, and when the position of the user is monitored to be changed, the terminal used by the user with the changed position is used as the first terminal in motion.
The server may obtain the current location of the user through at least one of the beidou, the Global Positioning System (GPS), the glonass, and the galileo.
After monitoring the moving first terminal, the server may determine, based on the current positions of the other monitored terminals and the current position of the moving first terminal, a second terminal whose distance from the moving first terminal is smaller than a preset distance threshold. The preset distance threshold value can be adjusted according to actual conditions.
It should be noted that the current exercise status of the user using the second terminal is not limited, that is, the user using the second terminal may be in exercise, such as running or exercising or walking using fitness equipment, or not in exercise, such as resting on the spot, etc.
The server can send the monitored current positions of the first terminal and the second terminal to the second terminal; the second terminal can display the current position of the second terminal and the current position of the first terminal in a map interface, so that a user using the second terminal can view the current position of the second terminal and the current position of the user using the first terminal in the map interface. Wherein, the user using the second terminal and the user using the first terminal can use the same sports APPlication (APP ), for example, both the user using the second terminal and the user using the first terminal use a mini-tilt running APP; different types of sports APPs may also be used, for example, the user using the second terminal uses a mikuri-good running APP, and the user using the first terminal uses a gurdong APP, but the two different types of APPs have an association relationship, for example, data sharing may be implemented, which is not limited in this embodiment.
The server can also send a shaking monitoring starting message to the second terminal; after receiving the shaking monitoring start message, the second terminal may generate a prompt message, such as "try to shake the terminal"; the prompt message is used for prompting a user using the second terminal to shake the second terminal.
In one embodiment, the monitoring whether a user using the second terminal performs a specific shaking operation includes: monitoring whether a user using the second terminal performs shaking operation; when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation; comparing the first image with a preset image to obtain a comparison result; when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
When a user using the second terminal actively shakes the second terminal, the second terminal can send attitude information of the second terminal, which is acquired by using a gyroscope sensor, to the server; the server may determine whether a user using the second terminal performs a shaking operation based on the posture information. The attitude information may include, but is not limited to, rotational angular velocity during shaking.
For example, the server may compare the rotational angular velocity when shaking with the rotational angular velocity when not shaking, and determine that the monitored user using the second terminal performs the shaking operation when determining that the rotational angular velocity when shaking is different from the rotational angular velocity when not shaking.
Considering that the user may be prompted to shake the terminal by "shake-shake" in the WeChat, the server may further determine whether the shake operation is a specific shake operation after determining that the user using the second terminal has performed the shake operation.
When the server determines whether the shaking operation is a specific shaking operation, the following conditions may be included:
firstly, the server receives a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation; determining that a specific shaking operation is performed by a user using the second terminal when the first image is not a display image of a WeChat shake;
secondly, when monitoring that the user using the second terminal executes the shaking operation, the server may further send a prompt message to the second terminal, such as "whether the terminal has been shaken"; receiving a confirmation operation aiming at the prompt message sent by the second terminal; and determining that a specific shaking operation is performed by the user using the second terminal in response to the determination operation.
Step 102: when the fact that a user using the second terminal executes a specific shaking operation is monitored, a shaking frequency corresponding to the specific shaking operation executed by the second terminal is obtained.
When the second terminal acquires the shaking frequency, the shaking frequency can be determined based on the direction data of the second terminal in a static state and a shaking state.
Or, the second terminal may determine the shaking frequency based on acceleration data of the second terminal in a stationary state and a shaking state.
For example, the second terminal may obtain, through a direction sensor, direction data, such as an angle, an orientation, and the like, of the second terminal in a stationary state and a shaking state; taking an angle as an example, the server determines the number of times of changing the angle data based on the angle data of the second terminal in the stationary state and the shaking state, and assumes that when the frequency of changing the angle data is determined to be 1/1 second, the shaking frequency is determined to be 1/1 second.
The second terminal can acquire acceleration data of the second terminal in a static state and a shaking state through an acceleration sensor; and judging the number of times of changing the acceleration data based on the acceleration data of the second terminal in the static state and the shaking state, and assuming that when the frequency of changing the acceleration data is determined to be 1 time/1 second, the shaking frequency is determined to be 1 time/1 second.
Step 103: and matching the shaking frequency with the step frequency of the user using the first terminal to obtain a matching result.
The step frequency refers to the number of steps of the user using the first terminal in a unit time, in other words, the step frequency is the frequency of steps of the user using the first terminal during exercise.
When a user using the first terminal starts running, the first terminal can record the running step frequency of the user periodically; the first terminal may upload the recorded stride frequency to the server; after receiving the step frequency uploaded by the first terminal, the server may associate and store the identification information of the user using the first terminal with the received step frequency.
Considering that the step frequency of the user using the first terminal may change during the exercise process, the server may further obtain the current time after receiving the step frequency uploaded by the first terminal; and establishing the corresponding relation among the time, the step frequency and the user identification.
Considering that if the step frequency of the user using the first terminal changes too fast, the success rate of matching the shaking frequency with the step frequency is reduced, so that in order to ensure that the step frequency of the user using the first terminal does not change during the movement, the server may send a prompt message to the first terminal; the prompting message is used for prompting a user using the first terminal to keep a constant step frequency in the process of movement. In this way, the server can obtain a stable stride frequency of the user using the first terminal.
Matching the shaking frequency with the step frequency of the user using the first terminal, wherein the following conditions are included:
firstly, determining the current time for acquiring the shaking frequency; searching the step frequency corresponding to the current time of the user using the first terminal from the pre-stored corresponding relation among the current time, the step frequency and the user identification; comparing the searched step frequency with the obtained shaking frequency to obtain a comparison result; when the comparison result represents that the found step frequency is the same as the obtained shaking frequency, obtaining a matching result of the shaking frequency and the step frequency; or when the comparison result represents that the difference value between the searched step frequency and the obtained shaking frequency is within a preset numerical range, obtaining a matching result of the shaking frequency and the step frequency.
And secondly, searching for a step frequency which corresponds to a user using the first terminal and is the same as the shaking frequency from a pre-stored corresponding relation between the step frequency and a user identifier based on the obtained shaking frequency, and obtaining a matching result of the shaking frequency and the step frequency when the step frequency which is the same as the shaking frequency is searched.
In order to improve the matching success rate, when the shaking frequency is not matched with the step frequency of the user using the first terminal, for example, when the difference between the shaking frequency and the step frequency of the user using the first terminal is not within a preset value range, the server may send a prompt message to the first terminal based on the difference between the shaking frequency and the step frequency, where the prompt message is used to instruct the user using the first terminal to adjust the step frequency of the user. Therefore, the server can obtain a matching result of the shaking frequency and the step frequency according to the adjusted step frequency and the obtained shaking frequency.
Step 104: and when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal.
Wherein the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
When the matching result indicates that the shaking frequency is matched with the step frequency, whether the user using the second terminal wants to be a target recommendation friend of the user using the first terminal or not can be inquired.
In an embodiment, the sending, to the first terminal, motion-related information of a user using the second terminal when the matching result indicates that the shake frequency matches the step frequency includes: acquiring the current position information of a user using the first terminal; sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal; receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal; and sending the motion related information of the user using the second terminal to the first terminal.
The user using the second terminal may determine whether or not to wish to recommend a friend as a target of the user using the first terminal based on a distance between the user using the first terminal and the user using the second terminal.
For example, the locations of the user using the first terminal and the user using the second terminal are simultaneously displayed in the map interface of the second terminal, and the distance between the two is displayed, so that the user using the second terminal can determine whether to wish to recommend a friend as a target of the user using the first terminal based on the displayed distance.
In an embodiment, before the sending the motion-related information of the user using the second terminal to the first terminal, the method further includes: acquiring relevant recommendation information of a user using the second terminal; the related recommendation information at least represents identity information of a user using the second terminal, evaluation information of the mobile friend on the user using the second terminal, and the number of times of adding the mobile friend to the first terminal user; determining a recommendation score of a user using the second terminal by using the related recommendation information; the recommendation score represents whether a user using the second terminal is suitable for being used as a recommended motion friend or not; judging whether the recommendation score is larger than a preset threshold value or not; and when the recommendation score is determined to be larger than the preset threshold value, sending the motion related information of the user using the second terminal to the first terminal.
When the matching result shows that the shaking frequency is matched with the step frequency, the recommendation score of the user using the second terminal can be calculated through the server so as to determine whether the user using the second terminal meets the recommendation requirement.
For example, when the shaking frequencies of at least two terminals are matched with the step frequency, the recommendation scores of the at least two terminals can be respectively calculated, and the calculated recommendation scores are sorted to obtain a sorting result; and recommending the user corresponding to the ranking result with the recommendation score larger than the preset threshold value to the user using the first terminal.
In one embodiment, the motion-related information comprises at least: using current location information, identification information, and a historical movement record of a user of the second terminal; the sending the motion-related information of the user using the second terminal to the first terminal to recommend the user using the second terminal to the user using the first terminal includes: acquiring motion-related information of a user using the second terminal; and sending the motion related information to the first terminal so as to recommend the user using the second terminal to the user using the first terminal.
In order to enable the user using the first terminal to know more information of the target recommended friends so as to establish a social relationship between the user using the first terminal and the target recommended friends, when the target recommended friends are recommended to the user using the first terminal, the current position information, the identification information, the historical movement record, the good movement items and the like of the target recommended friends can be obtained.
For example, if the recommendation score corresponding to the user using the second terminal is higher than a recommendation score threshold preset by the user using the first terminal, the server may obtain current location information, user information, historical running records, and good sports items of the user using the second terminal; and sending the acquired current position information, user information and historical running records of the user using the second terminal to the user using the first terminal so as to recommend the runner to the user using the first terminal. The historical running records comprise historical running routes, historical running step frequency, historical running distance and the like, and the good sports item is running.
In one embodiment, the sending motion-related information of the user using the second terminal to the first terminal includes: calculating a first similarity based on the identification information of the user using the first terminal and the identification information of the user using the second terminal; calculating a second similarity based on the historical movement record of the user using the first terminal and the historical movement record of the user using the second terminal; judging whether the sum of the first similarity and the second similarity is greater than a preset similarity threshold value; and when the sum of the first similarity and the second similarity is determined to be greater than a preset similarity threshold, sending the motion related information of the user using the second terminal to the first terminal.
In order to improve the interest of the user using the first terminal in the target recommended friends, before the server recommends the target recommended friends to the user using the first terminal, similarity matching can be further performed between the target recommended friends and the user using the first terminal, so as to determine whether the sports interests of the two users are similar.
For example, after acquiring the user information and the historical running record of the user using the second terminal, the server may acquire the user information and the historical running record of the user using the first terminal. If the sum of the similarity is greater than a preset similarity threshold value, the server can send the current position information, the user information and the historical running record of the user using the second terminal to the user using the first terminal so as to recommend the runner to the user using the first terminal; if the sum of the similarity is less than or equal to a preset similarity threshold, the server may not send the current location information, the user information, and the historical running record of the user using the second terminal to the user using the first terminal, that is, the server does not recommend friends running to the user using the first terminal.
By adopting the technical scheme of the embodiment of the invention, the sports friend is recommended to the user using the first terminal based on the matching result of the shaking frequency of the second terminal for executing the shaking operation and the step frequency of the user using the first terminal. Obviously, the motion friend is not recommended to the user using the first terminal based on the social relationship of the user using the first terminal, but the motion friend is determined from other users except the social circle of the user using the first terminal, so that the social circle of the user using the first terminal is favorably expanded.
Based on the recommendation method provided by each embodiment of the present application, the present application further provides a recommendation apparatus, as shown in fig. 2, the apparatus includes:
the monitoring module 21 is configured to monitor whether a user using a second terminal performs a specific shaking operation when the second terminal is monitored within a preset position range of a moving first terminal;
an obtaining module 22, configured to obtain, when it is monitored that a user using the second terminal performs a specific shaking operation, a shaking frequency corresponding to the specific shaking operation performed by the second terminal;
the matching module 23 is configured to match the shaking frequency with a step frequency of a user using the first terminal to obtain a matching result;
and the recommending module 24 is configured to send the motion-related information of the user using the second terminal to the first terminal when the matching result indicates that the shaking frequency matches the step frequency, so as to recommend the user using the second terminal to the user using the first terminal.
Wherein the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
In an embodiment, the monitoring module 21 is specifically configured to monitor whether a user using the second terminal performs a shake operation; when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation; comparing the first image with a preset image to obtain a comparison result; when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
It should be noted that the current exercise status of the user using the second terminal is not limited, that is, the user using the second terminal may be in exercise, such as running or exercising or walking using fitness equipment, or not in exercise, such as resting on the spot, etc.
Wherein, the user using the second terminal and the user using the first terminal can use the same sports APPlication (APP ), for example, both the user using the second terminal and the user using the first terminal use a mini-tilt running APP; different types of sports APPs may also be used, for example, the user using the second terminal uses a mikuri-good running APP, and the user using the first terminal uses a gurdong APP, but the two different types of APPs have an association relationship, for example, data sharing may be implemented, which is not limited in this embodiment.
In an embodiment, the recommending module 24 is specifically configured to obtain information of a current location of a user using the first terminal; sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal; receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal; and sending the motion related information of the user using the second terminal to the first terminal.
In one embodiment, the apparatus further comprises:
the determining module is used for acquiring relevant recommendation information of a user using the second terminal; the related recommendation information at least represents identity information of a user using the second terminal, evaluation information of the mobile friend on the user using the second terminal, and the number of times of adding the mobile friend to the first terminal user; determining a recommendation score of a user using the second terminal by using the related recommendation information; the recommendation score represents whether a user using the second terminal is suitable for being used as a recommended motion friend or not; judging whether the recommendation score is larger than a preset threshold value or not; and when the recommendation score is determined to be larger than the preset threshold value, sending the motion related information of the user using the second terminal to the first terminal.
In an embodiment, the recommending module 24 is specifically configured to obtain motion-related information of a user using the second terminal; and sending the motion related information to the first terminal so as to recommend the user using the second terminal to the user using the first terminal.
The motion-related information comprises at least: using current location information, identification information, and a historical movement record of a user of the second terminal.
In one embodiment, the apparatus further comprises:
a calculation module configured to calculate a first similarity based on identification information of a user using the first terminal and identification information of a user using the second terminal; calculating a second similarity based on the historical movement record of the user using the first terminal and the historical movement record of the user using the second terminal; judging whether the sum of the first similarity and the second similarity is greater than a preset similarity threshold value; and when the sum of the first similarity and the second similarity is determined to be greater than a preset similarity threshold, sending the motion related information to the first terminal.
It should be noted that: in the recommendation device provided in the above embodiment, when recommending sports friends, only the division of the program modules is used as an example, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the recommendation device and the recommendation method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
In practical applications, the obtaining module 22 is implemented by a network interface located on the recommending device; the monitoring module 21, the matching module 23, the recommending module 24, the determining module, and the calculating module can be implemented by a Processor located on the recommending device, such as a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 3 is a schematic structural diagram of a recommendation device of the present invention, and the recommendation device 300 shown in fig. 3 is disposed on a server and includes: at least one processor 301, memory 302, user interface 303, at least one network interface 304. The various components in the recommendation device 300 are coupled together by a bus system 305. It will be appreciated that the bus system 305 is used to enable communications among the components connected. The bus system 305 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 305 in fig. 3.
The user interface 303 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
The memory 302 in embodiments of the present invention is used to store various types of data to support the operation of the recommendation device 300. Examples of such data include: any computer programs for operating on the recommendation device 300, such as an operating system 3021 and application programs 3022; operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and for processing hardware-based tasks. The application programs 3022 may include various application programs for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in the application program 3022.
The method disclosed in the above embodiments of the present invention may be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 301. The processor 301 described above may be a general purpose processor, a digital signal processor, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 301 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 302, and the processor 301 reads the information in the memory 302 and performs the steps of the aforementioned methods in conjunction with its hardware.
It will be appreciated that the memory 302 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 302 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
Based on the recommendation method provided in the embodiments of the present application, the present application further provides a computer-readable storage medium, which is shown in fig. 3 and may include: a memory 302 for storing a computer program executable by the processor 301 of the recommendation device 300 for performing the steps of the method as described above. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
It should be noted that: the technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A recommendation method, characterized in that the method comprises:
when a second terminal is monitored within a preset position range of a moving first terminal, monitoring whether a user using the second terminal executes a specific shaking operation;
when monitoring that a user using the second terminal executes a specific shaking operation, acquiring a shaking frequency corresponding to the specific shaking operation executed by the second terminal;
matching the shaking frequency with the step frequency of a user using the first terminal to obtain a matching result;
when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
2. The method of claim 1, wherein the monitoring whether the user using the second terminal performs a specific shaking operation comprises:
monitoring whether a user using the second terminal performs shaking operation;
when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation;
comparing the first image with a preset image to obtain a comparison result;
when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
3. The method of claim 1, wherein when the matching result indicates that the shaking frequency matches the step frequency, sending motion-related information of a user using the second terminal to the first terminal, comprises:
acquiring the current position information of a user using the first terminal;
sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal;
receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal;
and sending the motion related information of the user using the second terminal to the first terminal.
4. The method of claim 1, wherein before the sending the motion-related information of the user using the second terminal to the first terminal, the method further comprises:
acquiring relevant recommendation information of a user using the second terminal; the related recommendation information at least represents identity information of a user using the second terminal, evaluation information of the mobile friend on the user using the second terminal, and the number of times of adding the mobile friend to the first terminal user;
determining a recommendation score of a user using the second terminal by using the related recommendation information; the recommendation score represents whether a user using the second terminal is suitable for being used as a recommended motion friend or not;
judging whether the recommendation score is larger than a preset threshold value or not;
and when the recommendation score is determined to be larger than the preset threshold value, sending the motion related information of the user using the second terminal to the first terminal.
5. The method of claim 1, wherein sending the motion-related information of the user using the second terminal to the first terminal comprises:
calculating a first similarity based on the identification information of the user using the first terminal and the identification information of the user using the second terminal;
calculating a second similarity based on the historical movement record of the user using the first terminal and the historical movement record of the user using the second terminal;
judging whether the sum of the first similarity and the second similarity is greater than a preset similarity threshold value;
and when the sum of the first similarity and the second similarity is determined to be greater than a preset similarity threshold, sending the motion related information of the user using the second terminal to the first terminal.
6. A recommendation device, characterized in that the device comprises:
the monitoring module is used for monitoring whether a user using a second terminal executes a specific shaking operation or not when the second terminal is monitored within a preset position range of a moving first terminal;
the acquisition module is used for acquiring the shaking frequency corresponding to the specific shaking operation executed by the second terminal when the specific shaking operation executed by the user using the second terminal is monitored;
the matching module is used for matching the shaking frequency with the step frequency of the user using the first terminal to obtain a matching result;
the recommending module is used for sending the motion related information of the user using the second terminal to the first terminal when the matching result represents that the shaking frequency is matched with the step frequency, so that the user using the second terminal is recommended to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
7. The apparatus of claim 6,
the monitoring module is specifically used for monitoring whether a user using the second terminal executes shaking operation; when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation; comparing the first image with a preset image to obtain a comparison result; when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
8. The apparatus of claim 6,
the recommendation module is specifically used for acquiring the current position information of the user using the first terminal; sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal; receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal; and sending the motion related information of the user using the second terminal to the first terminal.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
10. A recommendation device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 5 when running the computer program.
CN201811125051.1A 2018-09-26 2018-09-26 Recommendation method and device and computer readable storage medium Active CN109445617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811125051.1A CN109445617B (en) 2018-09-26 2018-09-26 Recommendation method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811125051.1A CN109445617B (en) 2018-09-26 2018-09-26 Recommendation method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109445617A CN109445617A (en) 2019-03-08
CN109445617B true CN109445617B (en) 2022-03-25

Family

ID=65544361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811125051.1A Active CN109445617B (en) 2018-09-26 2018-09-26 Recommendation method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109445617B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110121146B (en) * 2019-05-06 2022-08-26 腾讯科技(深圳)有限公司 Information sharing method and device and related equipment
CN114924818B (en) * 2022-04-28 2023-11-28 阿里巴巴(中国)有限公司 Traffic diversion method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101363743A (en) * 2007-08-06 2009-02-11 索尼株式会社 Information processing apparatus, system, and method thereof
CN102902472A (en) * 2012-05-07 2013-01-30 腾讯科技(深圳)有限公司 Method and system for triggering commands and method and system for recommending users
CN104750716A (en) * 2013-12-27 2015-07-01 中国移动通信集团公司 Social network site friend recommendation method and social network site friend recommendation device
CN104780207A (en) * 2015-04-01 2015-07-15 小米科技有限责任公司 Information pushing method and device
CN105022814A (en) * 2015-07-08 2015-11-04 广东欧珀移动通信有限公司 Information recommendation method and user terminal
CN105573630A (en) * 2015-12-14 2016-05-11 北京奇虎科技有限公司 Method and device for detecting shaking event of terminal device and terminal device
CN107560619A (en) * 2017-08-22 2018-01-09 北京小米移动软件有限公司 Recommend method and apparatus in path
CN107645555A (en) * 2017-09-25 2018-01-30 咪咕互动娱乐有限公司 A kind of recommendation method, server and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744080B (en) * 2016-04-06 2019-05-21 Oppo广东移动通信有限公司 The backlight brightness regulation method and mobile terminal of display screen

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101363743A (en) * 2007-08-06 2009-02-11 索尼株式会社 Information processing apparatus, system, and method thereof
CN102902472A (en) * 2012-05-07 2013-01-30 腾讯科技(深圳)有限公司 Method and system for triggering commands and method and system for recommending users
CN104750716A (en) * 2013-12-27 2015-07-01 中国移动通信集团公司 Social network site friend recommendation method and social network site friend recommendation device
CN104780207A (en) * 2015-04-01 2015-07-15 小米科技有限责任公司 Information pushing method and device
CN105022814A (en) * 2015-07-08 2015-11-04 广东欧珀移动通信有限公司 Information recommendation method and user terminal
CN105573630A (en) * 2015-12-14 2016-05-11 北京奇虎科技有限公司 Method and device for detecting shaking event of terminal device and terminal device
CN107560619A (en) * 2017-08-22 2018-01-09 北京小米移动软件有限公司 Recommend method and apparatus in path
CN107645555A (en) * 2017-09-25 2018-01-30 咪咕互动娱乐有限公司 A kind of recommendation method, server and computer-readable recording medium

Also Published As

Publication number Publication date
CN109445617A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
US10506056B2 (en) Methods, apparatuses, and computer program products for providing filtered services and content based on user context
US9948734B2 (en) User activity tracking system
US10185973B2 (en) Inferring venue visits using semantic information
US9269011B1 (en) Graphical refinement for points of interest
US9984153B2 (en) Electronic device and music play system and method
CN111954175B (en) Method for judging visiting of interest point and related device
CN109445617B (en) Recommendation method and device and computer readable storage medium
US20170311129A1 (en) Map downloading based on user's future location
WO2011107655A1 (en) Methods and apparatuses for facilitating location selection
US10523771B2 (en) Data collection method, device, and system
CN107423358B (en) Data storage and calling method and device
CN110609966B (en) Page display method, device and equipment thereof
CN109446415A (en) A kind of application recommendation, acquisition methods and equipment
CN104008129A (en) Position information processing method, device and terminal
JP6744922B2 (en) Information processing apparatus, control method of information processing apparatus, and control program
WO2017024684A1 (en) User behavioral intent acquisition method, device and equipment, and computer storage medium
JP6262630B2 (en) Location information server
JP6216702B2 (en) Terminal device, position providing system, and position acquisition control program
CN109459770B (en) Method and device for generating motion trail and storage medium
JP6464278B1 (en) Terminal device, program and method
CN112911363B (en) Track video generation method, terminal device and computer readable storage medium
CN110784824B (en) Travel data sharing method and mobile terminal
JP2019040599A (en) Terminal device, program and method
JP2016066907A (en) Terminal device, position acquisition method and program for position acquisition control
JP6271386B2 (en) Information providing system and information providing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant