[go: up one dir, main page]

HK1221368B - Method and system for obtaining user activity range - Google Patents

Method and system for obtaining user activity range Download PDF

Info

Publication number
HK1221368B
HK1221368B HK16109398.1A HK16109398A HK1221368B HK 1221368 B HK1221368 B HK 1221368B HK 16109398 A HK16109398 A HK 16109398A HK 1221368 B HK1221368 B HK 1221368B
Authority
HK
Hong Kong
Prior art keywords
user
current
activity range
location information
geographical location
Prior art date
Application number
HK16109398.1A
Other languages
Chinese (zh)
Other versions
HK1221368A1 (en
Inventor
刘鏐
Original Assignee
创新先进技术有限公司
Filing date
Publication date
Priority claimed from CN201410493499.4A external-priority patent/CN105516915B/en
Application filed by 创新先进技术有限公司 filed Critical 创新先进技术有限公司
Publication of HK1221368A1 publication Critical patent/HK1221368A1/en
Publication of HK1221368B publication Critical patent/HK1221368B/en

Links

Description

获取用户活动范围的方法和装置Method and device for obtaining user activity range

技术领域Technical Field

本申请涉及通信技术领域,尤其涉及一种获取用户活动范围的方法和装置。The present application relates to the field of communication technology, and in particular to a method and device for obtaining a user activity range.

背景技术Background Art

为了更好为用户服务,电商网站在一些情况下需要确定出用户的活动范围,例如,根据用户的活动范围进行针对性的产品信息推送。In order to better serve users, e-commerce websites need to determine the user's activity range in some cases, for example, to push targeted product information based on the user's activity range.

为此,需要给出方便简洁的确定用户的活动范围的方案。Therefore, a convenient and concise solution for determining the user's activity range is needed.

发明内容Summary of the Invention

本申请旨在至少在一定程度上解决相关技术中的技术问题之一。The present application aims to solve one of the technical problems in the related art at least to a certain extent.

为此,本申请的一个目的在于提出一种获取用户活动范围的方法,该方法可以方便简洁的确定出用户的活动范围。To this end, one purpose of the present application is to propose a method for obtaining a user's activity range, which can conveniently and concisely determine the user's activity range.

本申请的另一个目的在于提出一种获取用户活动范围的装置。Another object of the present application is to provide a device for obtaining a user's activity range.

为达到上述目的,本申请第一方面实施例提出的获取用户活动范围的方法,包括:获取用户的当前地理位置信息,其中,所述当前地理位置信息是对所述用户使用的移动设备进行定位后得到的;根据所述当前地理位置信息确定当前活动范围;将所述当前活动范围添加到预先获取的历史活动范围中,得到更新后的所述用户的活动范围。To achieve the above-mentioned purpose, the method for obtaining the user activity range proposed in the first aspect embodiment of the present application includes: obtaining the user's current geographic location information, wherein the current geographic location information is obtained after positioning the mobile device used by the user; determining the current activity range based on the current geographic location information; adding the current activity range to the pre-acquired historical activity range to obtain the updated activity range of the user.

本申请第一方面实施例提出的获取用户活动范围的方法,通过对移动设备获取用户的当前地理位置信息,并根据用户的当前地理位置信息确定用户的活动范围,由于地理位置信息可以方便简洁确定,因此,可以简便的确定出当前活动范围。The method for obtaining the user's activity range proposed in the embodiment of the first aspect of the present application obtains the user's current geographic location information from the mobile device and determines the user's activity range based on the user's current geographic location information. Since the geographic location information can be determined conveniently and concisely, the current activity range can be easily determined.

为达到上述目的,本申请第二方面实施例提出的获取用户活动装置,包括:获取模块,用于获取用户的当前地理位置信息,其中,所述当前地理位置信息是对所述用户使用的移动设备进行定位后得到的;第一确定模块,用于根据所述当前地理位置信息确定当前活动范围;添加模块,用于将所述当前活动范围添加到预先获取的历史活动范围中,得到更新后的所述用户的活动范围。To achieve the above-mentioned purpose, the device for obtaining user activities proposed in the second aspect embodiment of the present application includes: an acquisition module for obtaining the user's current geographic location information, wherein the current geographic location information is obtained after positioning the mobile device used by the user; a first determination module for determining the current activity range based on the current geographic location information; and an adding module for adding the current activity range to the pre-acquired historical activity range to obtain the updated activity range of the user.

本申请第二方面实施例提出的获取用户活动装置,通过对移动设备获取用户的当前地理位置信息,并根据用户的当前地理位置信息确定用户的活动范围,由于地理位置信息可以方便简洁确定,因此,可以简便的确定出当前活动范围。The device for obtaining user activities proposed in the second embodiment of the present application obtains the user's current geographic location information from the mobile device and determines the user's activity range based on the user's current geographic location information. Since the geographic location information can be determined conveniently and concisely, the current activity range can be easily determined.

本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

图1是本申请一实施例提出的获取用户活动范围的方法的流程示意图;FIG1 is a flow chart of a method for obtaining a user activity range according to an embodiment of the present application;

图2是本申请另一实施例提出的获取用户活动范围的方法的流程示意图;FIG2 is a flow chart of a method for obtaining a user activity range according to another embodiment of the present application;

图3是本申请实施例中不同活动范围对应的概率的示意图;FIG3 is a schematic diagram of the probabilities corresponding to different activity ranges in an embodiment of the present application;

图4是本申请另一实施例提出的获取用户活动范围的装置的结构示意图;FIG4 is a schematic structural diagram of an apparatus for obtaining a user activity range according to another embodiment of the present application;

图5是本申请另一实施例提出的获取用户活动范围的装置的结构示意图。FIG5 is a schematic structural diagram of an apparatus for obtaining a user activity range proposed in another embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。相反,本申请的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended only to explain the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the present application include all variations, modifications, and equivalents that fall within the spirit and scope of the appended claims.

图1是本申请一实施例提出的获取用户活动范围的方法的流程示意图,该方法包括:FIG1 is a flow chart of a method for obtaining a user activity range according to an embodiment of the present application. The method includes:

S11:获取用户的当前地理位置信息,其中,所述当前地理位置信息是对所述用户使用的移动设备进行定位后得到的。S11: Acquire the user's current geographic location information, wherein the current geographic location information is obtained by positioning a mobile device used by the user.

其中,在用户登录后,可以对用户使用的移动设备进行地理定位,例如进行全球定位系统(Global Positioning System,GPS)定位,将定位得到的地理位置信息确定为所述用户的当前地理位置信息。After the user logs in, the mobile device used by the user may be geographically positioned, for example, using a Global Positioning System (GPS) to position the mobile device, and the geographical location information obtained by positioning may be determined as the current geographical location information of the user.

移动设备例如为用户使用的手机或者平板电脑等。A mobile device is, for example, a mobile phone or tablet computer used by a user.

以手机为例,由于手机是很普及的,用户可以采用手机进行上网,当用户使用手机登录网站后,网站的服务端可以触发该手机的GPS设备工作,GPS设备获取手机的地理位置信息后,将该地理位置信息上报给网站的服务端,使得服务端将该定位所得的地理位置信息确定为用户的当前地理位置信息。Taking mobile phones as an example, since mobile phones are very popular, users can use mobile phones to access the Internet. When a user logs in to a website using a mobile phone, the website's server can trigger the GPS device of the mobile phone to work. After the GPS device obtains the geographical location information of the mobile phone, it reports the geographical location information to the website's server, so that the server determines the geographical location information obtained by the positioning as the user's current geographical location information.

S12:根据所述当前地理位置信息确定当前活动范围。S12: Determine the current activity range according to the current geographical location information.

具体可以包括:Specifically, they may include:

获取预先确定的用于计算活动范围的参数;Obtaining predetermined parameters for calculating the activity range;

根据所述参数以及所述当前地理位置信息,确定当前活动范围。The current activity range is determined according to the parameters and the current geographical location information.

具体的,可以采用如下计算公式,确定当前活动范围:Specifically, the following calculation formula can be used to determine the current activity range:

其中,f(Pi)是当前活动范围,Pi是当前地理位置信息,d和s是预先确定的参数。Wherein, f( Pi ) is the current activity range, Pi is the current geographical location information, and d and s are predetermined parameters.

具体的,d可以根据该用户的历史地理位置信息确定,例如,上次登录时该用户的两个相距最远的点分别为A和B,则可以将A和B之间的空间距离确定为d。s可以预先设定。Specifically, d can be determined based on the user's historical geographic location information. For example, when the user last logged in, the two points that were farthest apart were A and B, and the spatial distance between A and B can be determined as d. s can be preset.

S13:将所述当前活动范围添加到预先获取的历史活动范围中,得到更新后的所述用户的活动范围。S13: Add the current activity range to the previously acquired historical activity range to obtain an updated activity range of the user.

假设历史活动范围包括:f(P1),f(P2)和f(P3),当前活动范围为f(Pi),则更新后的用户的活动范围是:F={f(P1),f(P2),f(P3),...,f(Pi)}。Assuming that the historical activity ranges include: f(P 1 ), f(P 2 ) and f(P 3 ), and the current activity range is f(P i ), then the updated activity range of the user is: F = {f(P 1 ), f(P 2 ), f(P 3 ), ..., f(P i )}.

本实施例通过对移动设备获取用户的当前地理位置信息,并根据用户的当前地理位置信息确定用户的活动范围,由于地理位置信息可以方便简洁确定,因此,可以简便的确定出当前活动范围。This embodiment obtains the user's current geographic location information from the mobile device and determines the user's activity range based on the user's current geographic location information. Since the geographic location information can be easily and concisely determined, the current activity range can be easily determined.

图2是本申请另一实施例提出的获取用户活动范围的方法的流程示意图,该方法包括:FIG2 is a flow chart of a method for obtaining a user activity range according to another embodiment of the present application, the method comprising:

S21:获取用户的当前地理位置信息。S21: Obtain the user's current geographic location information.

其中,以用户使用手机上网为例,可以利用手机的GPS设备获取手机的地理位置信息,将该地理位置信息确定为用户的当前地理位置信息。Taking a user using a mobile phone to access the Internet as an example, the mobile phone's GPS device can be used to obtain the mobile phone's geographical location information, and the geographical location information is determined as the user's current geographical location information.

地理位置信息具体可以是经纬度信息。The geographic location information may specifically be latitude and longitude information.

S22:根据当前的地理位置信息和当前的登录时间,以及该用户上一次登录时的地理位置信息和上一次的登录时间,计算该用户的移动速度。S22: Calculate the user's moving speed based on the current geographical location information and the current login time, as well as the geographical location information and the last login time of the user when the user last logged in.

假设当前的地理位置信息是Pi=(lati,Loni),当前的登录时间是Ti,上一次登录时的地理位置信息是Pi-1=(lati-1,Loni-1),上一次登录时的时间是Ti-1,则该用户的移动速度是:Assume that the current geographic location is Pi = ( lat , Lon ), the current login time is Ti , the geographic location at the last login is Pi -1 = ( lat , Lon ), and the last login time is Ti -1 . Then the user's moving speed is:

S23:判断该用户的移动速度是否小于或等于预设阈值,若是,执行S24,否则执行S28。S23: Determine whether the user's moving speed is less than or equal to a preset threshold. If so, execute S24; otherwise, execute S28.

假设预设阈值用Vm表示,则判断是否Vi≤VmAssuming that the preset threshold is denoted by V m , it is determined whether V iV m .

其中,可以对所有用户的移动速度进行统计,选择所有速度中排序在预设阈值时的速度确定为所述速度阈值。The moving speeds of all users may be counted, and a speed ranked within a preset threshold among all speeds may be selected as the speed threshold.

例如,对所有用户的移动速度进行统计,在统计后对移动速度按照从小到大的顺序进行排序,之后选择80%位置处的速度作为速度阈值。For example, statistics are collected on the moving speeds of all users, and after the statistics are collected, the moving speeds are sorted in ascending order, and then the speed at the 80% position is selected as the speed threshold.

S24:获取历史活动范围,并根据当前地理位置信息和历史活动范围,判断该用户是否是合法用户,若是,执行S25,否则,执行S28。S24: Obtain the historical activity range, and determine whether the user is a legitimate user based on the current geographic location information and the historical activity range. If so, execute S25; otherwise, execute S28.

其中,可以判断当前地理位置信息是否在历史活动范围内,如果在则为合法用户,否则不是合法用户。或者,Among them, it can be judged whether the current geographical location information is within the historical activity range. If it is, the user is a legitimate user, otherwise, he is not a legitimate user. Or,

可选的,可以确定每个历史活动范围的概率,并设置概率阈值,如果当前地理位置信息在大于概率阈值的历史活动范围内,则该用户是合法用户,否则不是合法用户。Optionally, the probability of each historical activity range may be determined, and a probability threshold may be set. If the current geographic location information is within a historical activity range greater than the probability threshold, the user is a legitimate user; otherwise, the user is not a legitimate user.

S25:根据所述当前地理位置信息确定当前活动范围。S25: Determine the current activity range according to the current geographical location information.

具体的,可以采用如下计算公式,确定当前活动范围:Specifically, the following calculation formula can be used to determine the current activity range:

其中,f(Pi)是当前活动范围,Pi是当前地理位置信息,d和s是预先确定的参数。Wherein, f( Pi ) is the current activity range, Pi is the current geographical location information, and d and s are predetermined parameters.

具体的,d可以根据该用户的历史地理位置信息确定,例如,上次登录时该用户的两个相距最远的点分别为A和B,则可以将A和B之间的空间距离确定为d。s可以预先设定。Specifically, d can be determined based on the user's historical geographic location information. For example, when the user last logged in, the two points that were farthest apart were A and B, and the spatial distance between A and B can be determined as d. s can be preset.

本实施例中可以设置多个s,并对应每个s设置相应的活动范围的概率。In this embodiment, multiple s may be set, and corresponding activity range probabilities may be set for each s.

在当前状态时,例如,参见图3,可以设置4个s,中间的活动范围的概率最大,第二圈的概率次之,依此类推,根据当前位置信息,可以确定出4个活动范围,并且确定每个活动范围的概率。In the current state, for example, referring to FIG3 , 4 s can be set, the probability of the middle activity range is the largest, the probability of the second circle is second, and so on. According to the current position information, 4 activity ranges can be determined, and the probability of each activity range can be determined.

S26:计算每个活动范围的概率。S26: Calculate the probability of each activity range.

其中,如果存在历史的活动范围并具有相应的概率,则可以对已有的概率和当前的概率进行相乘或相加计算,得到每个活动范围的概率。以相加为例,假设区域D在历史活动范围D1内,且在当前的活动范围D2内,D1对应的概率是P1,D2对应的概率是P2,则D的概率是P1+P2。If there are historical activity ranges with corresponding probabilities, the existing probabilities can be multiplied or added to the current probabilities to obtain the probability of each activity range. Taking addition as an example, suppose area D is within historical activity range D1 and within current activity range D2. The probability corresponding to D1 is P1, and the probability corresponding to D2 is P2. Then the probability of D is P1 + P2.

S27:将当前的活动范围和对应的概率,添加到历史活动范围内,得到更新后的用户的活动范围。S27: Add the current activity range and the corresponding probability to the historical activity range to obtain an updated activity range of the user.

假设历史活动范围包括:f(P1),f(P2)和f(P3),当前活动范围为f(Pi),则更新后的用户的活动范围是:F={f(P1),f(P2),f(P3),...,f(Pi)}。另外,可以对应保存每个活动范围的概率。Assuming that the historical activity ranges include: f(P 1 ), f(P 2 ), and f(P 3 ), and the current activity range is f(P i ), then the updated user activity range is: F = {f(P 1 ), f(P 2 ), f(P 3 ), ..., f(P i )}. In addition, the probability of each activity range can be saved.

通过确定每个活动范围的概率,可以根据用户登录时的地理位置信息所在的活动范围的概率,确定用户是否是合法用户。By determining the probability of each activity range, it is possible to determine whether the user is a legitimate user based on the probability of the activity range where the geographical location information of the user when logging in is located.

S28:结束。S28: End.

本实施例通过根据用户的当前地理位置信息确定当前活动范围,由于地理位置信息是基于对移动设备的定位得到的,可以方便简洁确定,因此,可以简便的确定出当前活动范围,并且,用户的活动范围是根据历史活动范围和当前活动范围确定的,因此,可以综合历史信息,使得用户的活动范围不仅与当前活动范围有关,还可以考虑历史信息,得到准确的用户的活动范围。另外,本实施例的地理位置信息可以基于用户使用的移动设备实现,使得实现简便快捷。并且,本实施例通过确定每个活动范围的概率,可以基于概率判断登录用户是否是合法用户,提升用户账户的安全性。This embodiment determines the current activity range based on the user's current geographic location information. Since the geographic location information is obtained based on the positioning of the mobile device, it can be easily and concisely determined. Therefore, the current activity range can be easily determined. In addition, the user's activity range is determined based on the historical activity range and the current activity range. Therefore, the historical information can be integrated so that the user's activity range is not only related to the current activity range, but also the historical information can be considered to obtain the accurate user's activity range. In addition, the geographic location information of this embodiment can be implemented based on the mobile device used by the user, making it simple and quick to implement. Moreover, by determining the probability of each activity range, this embodiment can determine whether the logged-in user is a legitimate user based on the probability, thereby improving the security of the user account.

图4是本申请另一实施例提出的获取用户活动范围的装置的结构示意图,该装置40包括获取模块41、第一确定模块42和添加模块43。FIG4 is a schematic structural diagram of an apparatus for obtaining a user activity range according to another embodiment of the present application. The apparatus 40 includes an obtaining module 41 , a first determining module 42 , and an adding module 43 .

获取模块41用于获取用户的当前地理位置信息,其中,所述当前地理位置信息是对所述用户使用的移动设备进行定位后得到的;The acquisition module 41 is used to obtain the user's current geographical location information, wherein the current geographical location information is obtained by positioning the mobile device used by the user;

其中,在用户登录后,可以对用户使用的移动设备进行地理定位,例如进行全球定位系统(Global Positioning System,GPS)定位,将定位得到的地理位置信息确定为所述用户的当前地理位置信息。After the user logs in, the mobile device used by the user may be geographically positioned, for example, using a Global Positioning System (GPS) to position the mobile device, and the geographical location information obtained by positioning may be determined as the current geographical location information of the user.

移动设备例如为用户使用的手机或者平板电脑等。A mobile device is, for example, a mobile phone or tablet computer used by a user.

以手机为例,由于手机是很普及的,用户可以采用手机进行上网,当用户使用手机登录网站后,网站的服务端可以触发该手机的GPS设备工作,GPS设备获取手机的地理位置信息后,将该地理位置信息上报给网站的服务端,使得服务端将该定位所得的地理位置信息确定为用户的当前地理位置信息。Taking mobile phones as an example, since mobile phones are very popular, users can use mobile phones to access the Internet. When a user logs in to a website using a mobile phone, the website's server can trigger the GPS device of the mobile phone to work. After the GPS device obtains the geographical location information of the mobile phone, it reports the geographical location information to the website's server, so that the server determines the geographical location information obtained by the positioning as the user's current geographical location information.

第一确定模块42用于根据所述当前地理位置信息确定当前活动范围;The first determining module 42 is used to determine the current activity range according to the current geographical location information;

可选的,所述第一确定模块具体用于:Optionally, the first determining module is specifically configured to:

获取预先确定的用于计算活动范围的参数;Obtaining predetermined parameters for calculating the activity range;

根据所述参数以及所述当前地理位置信息,确定当前活动范围。The current activity range is determined according to the parameters and the current geographical location information.

可选的,所述第一确定模块进一步具体用于:Optionally, the first determining module is further specifically configured to:

采用如下计算公式,确定当前活动范围:Use the following calculation formula to determine the current activity range:

其中,f(Pi)是当前活动范围,Pi是当前地理位置信息,d和s是预先确定的参数。Wherein, f( Pi ) is the current activity range, Pi is the current geographical location information, and d and s are predetermined parameters.

具体的,d可以根据该用户的历史地理位置信息确定,例如,上次登录时该用户的两个相距最远的点分别为A和B,则可以将A和B之间的空间距离确定为d。s可以预先设定。Specifically, d can be determined based on the user's historical geographic location information. For example, when the user last logged in, the two points that were farthest apart were A and B, and the spatial distance between A and B can be determined as d. s can be preset.

添加模块43用于将所述当前活动范围添加到预先获取的历史活动范围中,得到更新后的所述用户的活动范围。The adding module 43 is configured to add the current activity range to the pre-acquired historical activity range to obtain an updated activity range of the user.

假设历史活动范围包括:f(P1),f(P2)和f(P3),当前活动范围为f(Pi),则更新后的用户的活动范围是:F={f(P1),f(P2),f(P3),...,f(Pi)}。Assuming that the historical activity ranges include: f(P 1 ), f(P 2 ) and f(P 3 ), and the current activity range is f(P i ), then the updated activity range of the user is: F = {f(P 1 ), f(P 2 ), f(P 3 ), ..., f(P i )}.

参见图5,一个实施例中,该装置40还包括:Referring to FIG5 , in one embodiment, the device 40 further includes:

判断模块44,用于根据所述当前地理位置信息和所述历史活动范围,判断所述用户是否是合法用户,以便在所述用户是合法用户时,根据所述当前地理位置信息确定当前活动范围。The judgment module 44 is configured to judge whether the user is a legitimate user based on the current geographic location information and the historical activity range, so as to determine the current activity range based on the current geographic location information if the user is a legitimate user.

其中,可以判断当前地理位置信息是否在历史活动范围内,如果在则为合法用户,否则不是合法用户。或者,Among them, it can be judged whether the current geographical location information is within the historical activity range. If it is, the user is a legitimate user, otherwise, he is not a legitimate user. Or,

可选的,可以确定每个历史活动范围的概率,并设置概率阈值,如果当前地理位置信息在大于概率阈值的历史活动范围内,则该用户是合法用户,否则不是合法用户。Optionally, the probability of each historical activity range may be determined, and a probability threshold may be set. If the current geographic location information is within a historical activity range greater than the probability threshold, the user is a legitimate user; otherwise, the user is not a legitimate user.

一个实施例中,该装置40还包括:In one embodiment, the apparatus 40 further includes:

第二确定模块45,用于确定当前活动范围的概率,以便在下次所述用户登录时,根据下次登录时时的地理位置信息所在的活动范围的概率以及预设概率阈值,判断所述用户是否是合法用户。The second determination module 45 is used to determine the probability of the current activity range so that when the user logs in next time, it is determined whether the user is a legitimate user based on the probability of the activity range where the geographic location information is located at the time of the next login and a preset probability threshold.

本实施例中可以设置多个s,并对应每个s设置相应的活动范围的概率。In this embodiment, multiple s may be set, and corresponding activity range probabilities may be set for each s.

在当前状态时,例如,参见图3,可以设置4个s,中间的活动范围的概率最大,第二圈的概率次之,依此类推,根据当前位置信息,可以确定出4个活动范围,并且确定每个活动范围的概率。In the current state, for example, referring to FIG3 , 4 s can be set, the probability of the middle activity range is the largest, the probability of the second circle is second, and so on. According to the current position information, 4 activity ranges can be determined, and the probability of each activity range can be determined.

其中,如果存在历史的活动范围并具有相应的概率,则可以对已有的概率和当前的概率进行相乘或相加计算,得到每个活动范围的概率。以相加为例,假设区域D在历史活动范围D1内,且在当前的活动范围D2内,D1对应的概率是P1,D2对应的概率是P2,则D的概率是P1+P2。If there are historical activity ranges with corresponding probabilities, the existing probabilities can be multiplied or added to the current probabilities to obtain the probability of each activity range. Taking addition as an example, suppose area D is within historical activity range D1 and within current activity range D2. The probability corresponding to D1 is P1, and the probability corresponding to D2 is P2. Then the probability of D is P1 + P2.

一个实施例中,该装置40还包括:In one embodiment, the apparatus 40 further includes:

第三确定模块46,用于根据所述当前地理位置信息和当前登录时间,以及上一次登录时的地理位置信息和上一次的登录时间,确定移动速度,以便在所述移动速度小于预设速度阈值时,根据所述当前地理位置信息确定当前活动范围。The third determination module 46 is used to determine the movement speed based on the current geographic location information and the current login time, as well as the geographic location information at the time of the last login and the last login time, so as to determine the current activity range based on the current geographic location information when the movement speed is less than a preset speed threshold.

假设当前的地理位置信息是Pi=(lati,Loni),当前的登录时间是Ti,上一次登录时的地理位置信息是Pi-1=(lati-1,Loni-1),上一次登录时的时间是Ti-1,则该用户的移动速度是:Assume that the current geographic location is Pi = ( lat , Lon ), the current login time is Ti , the geographic location at the last login is Pi -1 = ( lat , Lon ), and the last login time is Ti -1 . Then the user's moving speed is:

假设预设阈值用Vm表示,则判断是否Vi≤VmAssuming that the preset threshold is denoted by V m , it is determined whether V iV m .

其中,可以对所有用户的移动速度进行统计,选择所有速度中排序在预设阈值时的速度确定为所述速度阈值。The moving speeds of all users may be counted, and a speed ranked within a preset threshold among all speeds may be selected as the speed threshold.

例如,对所有用户的移动速度进行统计,在统计后对移动速度按照从小到大的顺序进行排序,之后选择80%位置处的速度作为速度阈值。For example, statistics are collected on the moving speeds of all users, and after the statistics are collected, the moving speeds are sorted in ascending order, and then the speed at the 80% position is selected as the speed threshold.

本实施例通过根据用户的当前地理位置信息确定当前活动范围,由于地理位置信息是基于对移动设备的定位得到的,可以方便简洁确定,因此,可以简便的确定出当前活动范围,并且,用户的活动范围是根据历史活动范围和当前活动范围确定的,因此,可以综合历史信息,使得用户的活动范围不仅与当前活动范围有关,还可以考虑历史信息,得到准确的用户的活动范围。另外,本实施例的地理位置信息可以基于用户使用的移动设备实现,使得实现简便快捷。并且,本实施例通过确定每个活动范围的概率,可以基于概率判断登录用户是否是合法用户,提升用户账户的安全性。This embodiment determines the current activity range based on the user's current geographic location information. Since the geographic location information is obtained based on the positioning of the mobile device, it can be easily and concisely determined. Therefore, the current activity range can be easily determined. In addition, the user's activity range is determined based on the historical activity range and the current activity range. Therefore, the historical information can be integrated so that the user's activity range is not only related to the current activity range, but also the historical information can be considered to obtain the accurate user's activity range. In addition, the geographic location information of this embodiment can be implemented based on the mobile device used by the user, making it simple and quick to implement. Moreover, by determining the probability of each activity range, this embodiment can determine whether the logged-in user is a legitimate user based on the probability, thereby improving the security of the user account.

需要说明的是,在本申请的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。It should be noted that, in the description of this application, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.

应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, the functional units in the various embodiments of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into a module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims (8)

1.一种获取用户活动范围的方法,其特征在于,包括:1. A method for obtaining a user's activity range, characterized in that it includes: 获取用户的当前地理位置信息,其中,所述当前地理位置信息是对所述用户使用的移动设备进行定位后得到的;Obtain the user's current geographic location information, wherein the current geographic location information is obtained by locating the mobile device used by the user; 根据所述当前地理位置和当前登录时间,以及上一次登录时的地理位置信息和上一次的登录时间,计算所述用户的移动速度;The user's movement speed is calculated based on the current geographical location and current login time, as well as the geographical location and login time of the last login. 判断所述用户的移动速度是否小于或等于预设阈值;Determine whether the user's movement speed is less than or equal to a preset threshold; 若小于或等于,则获取历史活动范围,并根据所述当前地理位置信息和所述历史活动范围,判断所述用户是否合法;If it is less than or equal to, then the historical activity range is obtained, and the user's legitimacy is determined based on the current geographical location information and the historical activity range; 当所述用户是合法用户时,根据所述当前地理位置信息确定当前活动范围;When the user is a legitimate user, the current activity range is determined based on the current geographical location information; 将所述当前活动范围添加到预先获取的历史活动范围中,得到更新后的所述用户的活动范围。The current activity range is added to the previously acquired historical activity range to obtain the updated activity range of the user. 2.根据权利要求1所述的方法,其特征在于,所述根据所述当前地理位置信息确定当前活动范围之后,所述方法还包括:2. The method according to claim 1, characterized in that, after determining the current activity range based on the current geographical location information, the method further includes: 确定当前活动范围的概率,以便在下次所述用户登录时,根据下次登录时时的地理位置信息所在的活动范围的概率以及预设概率阈值,判断所述用户是否是合法用户。The probability of the current activity range is determined so that when the user logs in again, the probability of the activity range where the user's geographical location information is located at the time of the next login and a preset probability threshold are used to determine whether the user is a legitimate user. 3.根据权利要求1所述的方法,其特征在于,所述根据所述当前地理位置信息确定当前活动范围,包括:3. The method according to claim 1, wherein determining the current activity range based on the current geographical location information includes: 获取预先确定的用于计算活动范围的参数;Obtain predetermined parameters for calculating the activity range; 根据所述参数以及所述当前地理位置信息,确定当前活动范围。The current activity range is determined based on the parameters and the current geographical location information. 4.根据权利要求3所述的方法,其特征在于,所述根据所述参数以及所述当前地理位置信息,确定当前活动范围,包括:4. The method according to claim 3, characterized in that, determining the current activity range based on the parameters and the current geographical location information includes: 采用如下计算公式,确定当前活动范围:The current activity range is determined using the following calculation formula: 其中,f(Pi)是当前活动范围,Pi是当前地理位置信息,d和s是预先确定的参数。Where f(P<sub>i</sub> ) is the current activity range, P <sub>i</sub> is the current geographic location information, and d and s are predetermined parameters. 5.一种获取用户活动范围的装置,其特征在于,包括:5. A device for acquiring the range of user activity, characterized in that it comprises: 获取模块,用于获取用户的当前地理位置信息,其中,所述当前地理位置信息是对所述用户使用的移动设备进行定位后得到的;第一确定模块,用于根据所述当前地理位置信息确定当前活动范围;The acquisition module is used to acquire the user's current geographical location information, wherein the current geographical location information is obtained by locating the mobile device used by the user; the first determination module is used to determine the current activity range based on the current geographical location information. 添加模块,用于将所述当前活动范围添加到预先获取的历史活动范围中,得到更新后的所述用户的活动范围;An add module is used to add the current activity range to a pre-acquired historical activity range to obtain the updated activity range of the user; 所述装置,还包括:第三确定模块,用于根据所述当前地理位置信息和当前登录时间,以及上一次登录时的地理位置信息和上一次的登录时间,计算所述用户的移动速度;判断所述用户的移动速度是否小于或等于预设阈值;The device further includes: a third determining module, configured to calculate the user's movement speed based on the current geographical location information and the current login time, as well as the geographical location information and the previous login time; and determine whether the user's movement speed is less than or equal to a preset threshold. 判断模块,用于若小于或等于,则获取历史活动范围,并根据所述当前地理位置信息和所述历史活动范围,判断所述用户是否是合法用户,以便在所述用户是合法用户时,根据所述当前地理位置信息确定当前活动范围。The judgment module is used to obtain the historical activity range if it is less than or equal to the current geographical location information and the historical activity range, and to determine whether the user is a legitimate user, so that when the user is a legitimate user, the current activity range can be determined based on the current geographical location information. 6.根据权利要求5所述的装置,其特征在于,还包括:6. The apparatus according to claim 5, characterized in that it further comprises: 第二确定模块,用于确定当前活动范围的概率,以便在下次所述用户登录时,根据下次登录时时的地理位置信息所在的活动范围的概率以及预设概率阈值,判断所述用户是否是合法用户。The second determining module is used to determine the probability of the current activity range, so that when the user logs in again, it can determine whether the user is a legitimate user based on the probability of the activity range where the user's geographical location information is located at the time of the next login and a preset probability threshold. 7.根据权利要求5所述的装置,其特征在于,所述第一确定模块具体用于:7. The apparatus according to claim 5, wherein the first determining module is specifically used for: 获取预先确定的用于计算活动范围的参数;Obtain predetermined parameters for calculating the activity range; 根据所述参数以及所述当前地理位置信息,确定当前活动范围。The current activity range is determined based on the parameters and the current geographical location information. 8.根据权利要求7所述的装置,其特征在于,所述第一确定模块进一步具体用于:8. The apparatus according to claim 7, wherein the first determining module is further specifically used for: 采用如下计算公式,确定当前活动范围:The current activity range is determined using the following calculation formula: 其中,f(Pi)是当前活动范围,Pi是当前地理位置信息,d和s是预先确定的参数。Where f(P<sub>i</sub> ) is the current activity range, P <sub>i</sub> is the current geographic location information, and d and s are predetermined parameters.
HK16109398.1A 2016-08-08 Method and system for obtaining user activity range HK1221368B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410493499.4A CN105516915B (en) 2014-09-24 2014-09-24 The method and apparatus for obtaining User Activity range

Publications (2)

Publication Number Publication Date
HK1221368A1 HK1221368A1 (en) 2017-05-26
HK1221368B true HK1221368B (en) 2020-06-12

Family

ID=

Similar Documents

Publication Publication Date Title
US11553301B2 (en) Systems and methods for deploying dynamic geofences based on content consumption levels in a geographic location
CN106165506B (en) Computing device, method and storage medium for identifying rogue access points
CN107534884B (en) Switching between networks based on quality of available networks
KR101944725B1 (en) Determining timing for determination of applicable geo-fences
TWI581585B (en) System and method for calibrating bluetooth low energy signal strengths
JP6309089B2 (en) Geofence event detection using varying confidence levels
JP5739327B2 (en) Positioning
CN102823309B (en) Method and apparatus for using historical performance data in location method selection
JP5897153B2 (en) User search method, user search system, and user search device in a social network
CN105409306A (en) Method and apparatus for predicting location of mobile terminal
KR101696508B1 (en) Enhancement of positioning quality of service
CN106031199A (en) System and method to utilize geo-fences
US9866995B2 (en) Location based information service application
CN112352256A (en) Optimizing geographical region selection
WO2015193727A1 (en) Method, apparatus and readable medium for an api notifying an application that qos will change in future
US20170272910A1 (en) Automatic optimization procedure termination using a smoothing-based technique
CN106918825A (en) A kind of connecting method of track, client
CN105516915B (en) The method and apparatus for obtaining User Activity range
US20150099547A1 (en) Geo-based detection of border violation
HK1221368B (en) Method and system for obtaining user activity range
JP2018527780A (en) Network selection based on user feedback
CN106412257B (en) Positioning service control method and system
US9374659B1 (en) Method and apparatus to utilize location data to enhance safety
TWI630586B (en) Position warning system
JP2021002252A (en) Traffic flow prediction support device, traffic flow prediction support method, and traffic flow prediction support program