WO2012159372A1 - 用户数量计算方法及系统 - Google Patents

用户数量计算方法及系统 Download PDF

Info

Publication number
WO2012159372A1
WO2012159372A1 PCT/CN2011/078165 CN2011078165W WO2012159372A1 WO 2012159372 A1 WO2012159372 A1 WO 2012159372A1 CN 2011078165 W CN2011078165 W CN 2011078165W WO 2012159372 A1 WO2012159372 A1 WO 2012159372A1
Authority
WO
WIPO (PCT)
Prior art keywords
attribute
location
checked
time
user
Prior art date
Application number
PCT/CN2011/078165
Other languages
English (en)
French (fr)
Inventor
邵刚
胡迅
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2011/078165 priority Critical patent/WO2012159372A1/zh
Priority to CN201180001515.8A priority patent/CN103039036B/zh
Publication of WO2012159372A1 publication Critical patent/WO2012159372A1/zh
Priority to US14/135,903 priority patent/US20140114958A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and system for calculating a number of users.
  • the Location Based Service is obtained by acquiring the location information (latitude and longitude coordinates) of the mobile terminal user through the network of the telecom mobile operator (such as GSM network or CDMA network), and is supported by the electronic map platform.
  • a value-added service that provides the corresponding service.
  • the location information acquisition technology of the mobile terminal user in the prior art includes: a network-based positioning technology, which mainly uses the time and angle of the mobile terminal device signal to reach each base station to measure the location of the mobile terminal in the network; based on the terminal positioning technology, Mainly using GPS (Global Position System), the mobile terminal receives GPS satellite signals to obtain corresponding position information; Hybrid positioning technology combines the advantages of network-based positioning technology and terminal-based positioning technology, using mobile The terminal's information at the base station, combined with traditional GPS satellites, allows for faster positioning.
  • a network-based positioning technology which mainly uses the time and angle of the mobile terminal device signal to reach each base station to measure the location of the mobile terminal in the network
  • Mainly using GPS Global Position System
  • GPS Global Position System
  • Hybrid positioning technology combines the advantages of network-based positioning technology and terminal-based positioning technology, using mobile The terminal's information at the base station, combined with traditional GPS satellites, allows for faster positioning.
  • the user location record can be located and obtained, and the number of users at a certain position or some locations in the past can be obtained, and further attributes can be obtained according to the attributes of the user (such as different genders, ages). The number of users for the segment, occupation, etc.).
  • the existing method for calculating the number of users includes: recording location information of each user (ie, a mobile terminal) at each moment; establishing a location model of the user according to a time-position record of the individual user; and obtaining the future of the user according to the location model The location of a certain point in time; repeat the above steps to obtain the location of all users at a certain point in time in the future; summarize the location information of all users at a certain point in the future, get some time in the future The number of users that have appeared in the location.
  • the queryer when the number of users is obtained, the queryer frequently modifies the query conditions (that is, a certain time point and a certain location in the future). Each time the query condition is modified, the computer first recalculates a certain time in the future according to the location model of all users. The location of the point, and then summarize the location information of all users at a certain point in the future, and get the number of users appearing at a certain point in the future. As the number of users increases, the amount of computation of the computer is further increased, resulting in slower system operation and lower query efficiency.
  • Embodiments of the present invention provide a method and system for calculating the number of users, which can simplify the calculation process and greatly save the computing resources of the device.
  • a method for calculating the number of users comprising: receiving, by an input interface, a query request by a queryer, which is composed of a parameter to be checked, wherein the parameter to be checked includes a location to be checked and a time to be checked after the current time; Querying, in a stored attribute-location record quantity comparison table, a location record quantity corresponding to the to-be-checked attribute parameter; the attribute-location record quantity comparison table is recorded by the computer according to a locally saved user's location record Established and stored in a memory; the computer obtains the number of users in the to-be-checked time in the to-be-checked position according to the number of the location records obtained by the query.
  • a user quantity calculation system comprising: a data collection device, configured to collect location information of a user; and a computer, configured to receive, by an input interface, a query attribute parameter Querying the request, the to-be-checked attribute parameter includes a to-be-checked location and a time to be checked after the current time; and then querying a location corresponding to the to-be-checked attribute parameter in an attribute-location record quantity comparison table stored by the computer Recording the number; finally calculating the number of users in the to-be-checked time in the to-be-checked position according to the number of the location records obtained by the query; the data collection device is connected to another input interface of the computer And transmitting the collected location information of the user to the computer to form a location record corresponding to the collected user in the computer; the computer is further configured to establish a location according to the location record of the locally saved user
  • the attribute-location record quantity comparison table is stored, and the attribute-location record quantity comparison table is stored in the memory.
  • the computer only needs to record the correspondence between the user attribute and the location record according to the location record of the locally saved user according to any mathematical statistics method, that is, establish an attribute-location record.
  • the computer can obtain the required number of users according to the time and location attribute in the query request, which overcomes the need in the prior art to establish a location model for each user, resulting in a large amount of computational resources. defect.
  • the storage space of the computer can be saved compared to the existing location model corresponding to each user, so that the query speed can be accelerated when the query conditions frequently change. , improve the efficiency of computer query.
  • FIG. 1 is a flowchart of a method for calculating a number of users according to Embodiment 1 of the present invention
  • FIG. 2 is a block diagram of a user quantity calculation system according to Embodiment 1 of the present invention.
  • FIG. 3 is a flowchart of a method for calculating a number of users according to Embodiment 2 of the present invention.
  • FIG. 4 is a block diagram of a user quantity calculation system according to Embodiment 3 of the present invention.
  • FIG. 5 is a flowchart of a method for establishing a property-position record quantity comparison table by a computer according to Embodiment 2 of the present invention.
  • the embodiment provides a method for calculating the number of users, and the execution subject of the method is a computer. As shown in FIG. 1, the method includes the following steps.
  • the computer receives, by using an input interface, a query request that is sent by the querier by the attribute parameter to be checked, where the attribute to be checked includes the location to be checked and the time to be checked after the current time.
  • the querier wants to obtain the number of users with a certain attribute in a certain point in the future.
  • the computer needs to perform a query operation by using a computer.
  • the computer receives the query request sent by the querier through the input interface, and performs subsequent query according to the query request. Calculate the operation to get the number of users.
  • the query request can be made by the interrogator with various tools, such as through an electronic map, or other tools known to those skilled in the art.
  • the query request is composed of the attribute parameter to be checked, the parameter includes the location to be checked and the time to be checked after the current time, and may also include calculating some other attribute information, such as gender, in the location record of all users that have been saved locally. Occupation, hobbies, etc., in order to query the number of location records corresponding to the attribute parameters to be checked in the subsequent table lookup step, that is, to query the time to be checked in the time to be checked and have the other attributes The number of location records for the message.
  • the computer queries, in a stored attribute-location record quantity comparison table thereof, a location record quantity corresponding to the to-be-checked attribute parameter.
  • the attribute-location record quantity comparison table is established by the computer according to the location record of the locally saved user, and the table is a comparison table of the attributes included in the location records of all users and the number of location records corresponding to each attribute, and the table reflects The correspondence between the user attribute and the location record, through the pair The relationship can be queried to the number of location records corresponding to the attribute parameters to be checked.
  • the method of establishing the correspondence between the user attribute and the location record is not limited to the method in the following embodiments, and may be any modeling method in mathematical statistics.
  • the to-be-checked attribute parameter includes the to-be-checked position and the time to be inspected after the current time
  • some other attribute information included in the location record of all users may be included, so that it may be queried during the time to be checked.
  • the step of forming the location record of the locally saved user includes: the data collection device (such as a base station, or a GPS terminal) periodically collects information according to a certain rule, and the collected information is location information of each user (ie, the mobile terminal).
  • the location information mainly includes the time of collection, user information, geographical location information, etc., and may also have other attribute information, such as gender, occupation, hobbies, etc.; the computer forms all the collected location information corresponding to each user's location. Recorded and stored in memory.
  • the number of users in the to-be-checked time is obtained by the computer according to the number of the location records obtained by the query.
  • the number of users in the to-be-checked time in the to-be-checked position can be obtained according to the query result.
  • the query request includes other attribute information
  • the number of users satisfying other attribute information in the to-be-checked time in the to-be-checked position may also be obtained, thereby, the queryer obtains a certain time point in the future, and a certain location has The number of users for a particular attribute.
  • the computer only needs to establish a correspondence between the user attribute and the location record according to the location record of the locally saved user according to any mathematical statistics method, that is, establish an attribute-location record quantity.
  • the computer can obtain the required number of users according to the time and location attributes in the query request, which overcomes the defect that the computing resources need to be used for each user in the prior art.
  • the computer since only one attribute-location record number comparison table is saved in the computer, it corresponds to the existing corresponding
  • Each user's location model can save computer storage space, which can speed up the query and improve the query efficiency of the system when the query conditions change frequently.
  • the embodiment further provides a user quantity calculation system.
  • the system includes: a data collection device 21, configured to collect location information of a user; and a computer 22, configured to receive, by an input interface, a queryer a query request consisting of the attribute parameter to be checked, the to-be-checked attribute parameter includes a to-be-checked location and a time to be checked after the current time; and then querying the corresponding attribute in the attribute-location record quantity comparison table stored by the computer 22
  • the number of location records of the attribute parameter to be checked is obtained.
  • the number of users in the to-be-checked time in the to-be-checked position is obtained according to the number of the location records obtained by the query.
  • the data collection device is coupled to another input interface of the computer to transmit the collected location information of the user to the computer to form a location record corresponding to the collected user in the computer.
  • the computer is further configured to establish the attribute-location record quantity comparison table according to the locally saved user's location record, and store the attribute-location record quantity comparison table in a memory.
  • the computer only needs to record the correspondence between the user attribute and the location record according to the method of the local saved user according to any mathematical statistics method, that is, establish an attribute-location record quantity comparison.
  • the prior art needs to establish a location model for each user, resulting in a large amount of computational resources being consumed.
  • the storage space of the computer can be saved compared to the existing location model corresponding to each user, so that the query speed can be accelerated when the query conditions frequently change. Improve the query efficiency of the system.
  • This embodiment provides a method for calculating the number of users, and the execution subject of the method is a computer. Such as As shown in FIG. 3, the method includes the following steps.
  • the computer receives, by using an input interface, a query request that is sent by the querier by the attribute parameter to be checked, where the attribute to be checked includes the location to be checked and the time to be checked after the current time.
  • the querier wants to obtain the number of users with a certain attribute in a certain point in the future.
  • the computer needs to perform a query operation by using a computer.
  • the computer receives the query request sent by the querier through the input interface, and performs subsequent query according to the query request. Calculate the operation to get the number of users.
  • the query request can be made by the interrogator with various tools, such as through an electronic map, or other tools known to those skilled in the art.
  • the query request is composed of the attribute parameter to be checked, the parameter includes the location to be checked and the time to be checked after the current time, and may also include calculating some other attribute information, such as gender, in the location record of all users that have been saved locally. Occupation, hobbies, etc., in order to query the number of location records corresponding to the attribute parameters to be checked in the subsequent table lookup step, that is, to query the time to be checked in the time to be checked and have the other attributes The number of location records for the message.
  • the computer queries, in a stored attribute-location record quantity comparison table thereof, the number of location records corresponding to the to-be-checked attribute parameter.
  • the attribute-location record quantity comparison table is established by the computer according to the location record of the locally saved user, and the table is a comparison table of the attributes included in the location records of all users and the number of location records corresponding to each attribute, and the table reflects Correspondence between the user attribute and the location record, by which the number of location records corresponding to the attribute parameter to be checked can be queried. Since the to-be-checked attribute parameter includes the to-be-checked position and the time to be inspected after the current time, some other attribute information included in the location record of all users may be included, so that it may be queried during the time to be checked. The number of location records of the location to be checked and having the other attribute information.
  • a method for establishing the attribute-position record number comparison table will be described with reference to Fig. 5.
  • the method is not limited to the method shown in Fig. 5, and may be any modeling method in mathematical statistics.
  • the main body of the method is a computer.
  • the data collection device (such as a base station, or a GPS terminal) is responsible for regularly collecting location information of each user (ie, a mobile terminal) according to a certain rule, where the location information mainly includes time, user information, geographic location information, and the like. It may also have other attribute information such as gender, occupation, hobbies, etc.; the computer forms all the collected location information into a location record corresponding to each user and stores it in the memory.
  • the user information, geographical location information, and the like included in the location record of the user may be respectively used as an attribute in the user information record, such as user information as a user attribute and geographical location information as a location attribute, but the time point of data collection is not Attributes.
  • At least one attribute combination included in all location records except the time point of data collection can be combined to form a plurality of attribute combinations.
  • the following is a set of data to illustrate how to get a combination of attributes.
  • the first item is the time point of data collection; the latitude and longitude, the name, the location category, the country, the province, and the city are the location attributes; the gender item is the gender attribute; the brand item is the preference attribute. It can be seen that there are four combinations of attributes in the above data, namely:
  • C 2 ⁇ East 114. 04' ⁇ 1" , latitude 22. 37' ⁇ 1" , Huaqiang North, shopping district, China, Guangdong, Shenzhen, female, global access ⁇ ;
  • C 3 ⁇ East longitude 114° 05'1" , North latitude 22. 38' V , East Gate, Shopping District, China, Guangdong, Shenzhen, Male, Global Access ⁇ ;
  • C 4 ⁇ East longitude 114° 05'1", north latitude 22. 38' V , East Gate, shopping district, China, Guangdong, Shenzhen, female, global pass ⁇ .
  • Count the number of location records having the same combination of attributes in each time unit Specifically, the location records of all users in a certain time unit tj are classified according to their attribute combinations, and then the number of position records having the same attribute combination Ci (ie, the number of position records) is counted, and the attribute statistics result L (Ci) is obtained. , tj).
  • the time unit tj can be days or hours, and can be selected according to the calculation requirements.
  • CLi ⁇ L(Ci t.), l(C ) , L(Ci t 2 ) , ⁇ , L(Ci tt n .
  • w denotes the nearest time unit, and t denotes the earliest one time unit
  • the time unit is day
  • step 503 Calculate, according to the statistical result in step 502, an attribute calculation result corresponding to the attribute combination.
  • the attribute calculation result corresponding to each attribute combination may be calculated by using the following formula (1).
  • baseiC L U + ⁇ + L U
  • Ci represents the i-th attribute combination, i is a positive integer; t nw t now -!, ⁇ t sharpow-n respectively represent different time units, t n .
  • L (Ci t ⁇ ) L(Ci t n . w _ n ) respectively represents the number of position records (ie, the number of position records) in different time units; base (CJ represents the attribute calculation result corresponding to it.
  • Construct a trend attribute combination according to the attribute combination the trend attribute combination is subordinate to the attribute combination, and the trend attribute combination includes at least a location attribute.
  • the trend attribute combination is a subset of the attribute combination, for example, the attribute combination has 5 attributes ⁇ a, b, c, d, e ⁇ , and the trend attribute combination can be ⁇ a, d, e ⁇ or ⁇ a ⁇
  • the trend attribute combination only retains attributes that are sensitive to time changes. In this way, multiple attribute combinations can correspond to the same trend attribute combination, which can reduce the calculation amount of the trend calculation and the storage amount of the calculation result.
  • At least the location attribute is included in the trend attribute, because the user quantity calculation is to calculate the number of users in a certain location, so the location attribute is the core attribute.
  • the trend attribute combination may select a specific location attribute according to the calculated requirement. Taking the example data in step 501 as an example, the location attribute may be any one or more of a location category, a country, a province, a city, and a name.
  • a time period to be checked may be specified, which includes the starting time t w and the number of time units that need to be calculated in total from the starting time t w .
  • the time unit is day
  • the specified start time is 2011-1-1
  • the total number of days to be queried from 2011-1-1 is 7 days, then between 2011-1-1 and 2011-1-7 7 days is the time period to be checked.
  • the trend calculation results can be calculated as follows:
  • Q 1 represents the i-th trend attribute combination; represents the wth time unit in the time period to be checked; ⁇ 1 ) represents the daily calculated component, and d w represents the daily calculated component Weight; ⁇ UQ 1 ) represents the weekly calculated component, w w represents the weight of the weekly calculated component; MwtUQ 1 ) represents the monthly calculated component, m w represents the weight of the monthly calculated component; ⁇ 3 ⁇ 4/ ⁇ ( ⁇ ) represents the annual calculated component , y w represents the weight of the annual calculated component, and directioniC, t represents the trend calculation result of C, d at t w . d w , w w , 13 ⁇ 4 and 7 hail are constants and can be selected empirically.
  • Y mr (c ) K( •>t Year(w ) ) + ⁇ JC i t Year(w ) ) + + K(C ; , t Year(Win) );
  • ⁇ ,date indicates the same time unit in the nth week as tw in the week of the week, indicating the same time unit in the nth month as the number of weeks in the month
  • ⁇ . composer ⁇ ,date indicates the time unit of the same date and date as the tw month in the most recent nth month
  • indicates the time unit of the same nth year as the t w year and the same date.
  • C, d , ( w ,rome) indicates the number of records (ie, the number of position records) corresponding to the position of C, d in ( w , mecanic), C, d , ⁇ w , mecanic)) is expressed in ⁇ w , mecanic) corresponds to the number of positions recorded by C, d (ie, the number of position records), C ⁇ ) indicates the number of records recorded at the position corresponding to C (ie, the number of position records), ⁇ ⁇ ⁇ , mecanic) ) expressed in t fl w , causal)
  • the number of records corresponding to the position of C (ie, position record) Quantity indicates the number of positions in the most recent time unit corresponding to c, d (that is, the number of position records).
  • the trend calculation result of each trend attribute combination c in the trend attribute combination set in each time unit to t w+m can be calculated: directio C; 1 , t w+l ) , directioniC , t w+2 ) ,.
  • the trend calculation result is the time weight sequence of the relevant attribute calculation result in the specified time period to be checked.
  • the attribute-location record number comparison table can be represented in the following collection and stored in the memory of the computer for later use in calculating the number of users.
  • the above steps 501 to 506 describe a detailed procedure of a method of establishing an attribute-location record number comparison table according to the position records of all users, of course,
  • the method for establishing the correspondence between the user attribute and the location record quantity is not limited to the method described in this embodiment, and the foregoing correspondence may be established according to the statistical characteristics of the time and location attributes in the location record of the user, or may be used by those skilled in the art. Known modeling methods in other mathematical statistics.
  • Step 302 After the above-mentioned attribute-location record quantity comparison table is established in the computer, by executing step 302 in this embodiment, the number of location records corresponding to the attribute parameter to be checked can be queried.
  • Step 302 may specifically include the following sub-steps. 3021: Search, in the attribute combination, a combination of attributes that includes the location to be checked, and specify a combination of attributes.
  • the to-be-checked attribute parameter in the query request includes the location to be checked.
  • the value of the attribute is the matching attribute combination MC io
  • the attribute calculation result base corresponding to the matching attribute combination MCi is searched for (MC, and then according to the trend attribute combination MC corresponding to the matching attribute combination MCi. , d and the time t to be checked find the corresponding trend calculation node directioniMC ⁇ f).
  • the attribute calculation result base (Md) and the trend calculation result ( ⁇ criw?(MC, d , t) constitute the number of position records obtained by the query.
  • the calculation of the number of users is performed according to the following formula.
  • Count (base(MC i ) x direction ⁇ MC ⁇ , t)) ( 3 )
  • Z is a summation symbol.
  • Count represents the number of users
  • MCi represents the i-th matching attribute combination
  • i is a positive integer
  • d represents the trend attribute combination corresponding to MCi
  • base (MC0 represents the attribute calculation result corresponding to MCi, directioniMC; 1 , f) Show MC, d the trend calculation result corresponding to the time t to be checked.
  • the step of obtaining the number of users in the to-be-checked time in the to-be-checked time may be: multiplying the attribute calculation result base (MCi) by the trend calculation result t ⁇ c ⁇ MC/ ) to obtain an intermediate result, and finally pressing the above
  • the method calculates the intermediate result for all combinations of matching attributes, and then adds the intermediate results. Obtaining the number of users in the time to be checked at the location to be checked.
  • the step 3022 may further include: dividing the matching attribute combination into a matching attribute combination subset according to the location attribute.
  • the latitude and longitude, the name, the location category, the country, the province, and the city are position attributes.
  • the matching attribute combination is divided into the matching attribute combination subset according to the latitude and longitude, the different matching attribute combination subsets are different. Has different latitude and longitude properties.
  • step 303 all the matching attribute combination subsets are calculated according to formula (3), and the number of users in the to-be-checked position in the time to be checked is obtained.
  • the matching attribute combination By further dividing the matching attribute combination into the matching attribute combination subset according to the position attribute, not only can the obtained number of users be specifically within a small range of the position to be checked, but also the calculation speed of the number of users in the range can be improved, thereby enabling real-time real-time calculation. The result of the calculation of the number of users in the range is obtained.
  • the query request may also include some other attribute information of the user's location record, such as gender, occupation, hobbies, etc., to obtain the other attributes mentioned above in the pending check time in the future time to be checked.
  • the number of users of the information may also include some other attribute information of the user's location record, such as gender, occupation, hobbies, etc., to obtain the other attributes mentioned above in the pending check time in the future time to be checked. The number of users of the information.
  • Count count x directio C if) , where count ' is the number of users corresponding to the new time to be checked, and direction C i ) re ⁇ (CV ') is the trend calculation result corresponding to the new time to be checked.
  • Ci (1.0, 1.3, 1.6.0.9, 1.1, 1.3, 1.1) constitutes, where Cl rf is the combination of trend attributes corresponding to d, C 2 , and , and the start time of the trend calculation result is 2011-1-1, a total of 7 days of trend calculation results.
  • d, C 2 , and ( 4 are attribute combinations of the sample data in step 501:
  • the matching attribute combination is ⁇ d, CJ, divided into two matches according to latitude and longitude.
  • the query condition includes the gender attribute. Therefore, the user quantity calculation result should be the number of users whose gender attribute is male in the position specified by the location attribute in the time to be checked.
  • the number of users at the position to be checked in the time to be checked can be obtained, because in the calculation method of the number of users, the computer only needs to record according to any position of the locally stored user.
  • the correspondence between the method user attribute and the location record that is, establishing an attribute-location record quantity comparison table, and then the computer can obtain the required number of user results according to the time and location attribute in the query request, overcoming the prior art.
  • the storage space of the computer can be saved compared to the existing location model corresponding to each user, thereby accelerating the query of the computer when the query condition changes frequently. speed.
  • the matching attribute combination is further divided into matching attribute combination subsets according to the position attribute, and the user quantity calculation result can be obtained more quickly and in real time.
  • the method includes: periodically recording, according to the time unit, a user identifier, an acquisition time, and a location identifier of the user that meets the collection condition; performing attribute expansion on the user identifier and the location identifier according to the attribute database, to form a correspondence corresponding to the user identifier, The location record of the acquisition time and location identification.
  • the user identifier, the collection time, and the location identifier of the user that meets the collection condition are periodically recorded according to the time unit, and may include: the positioning system records the user entering and/or leaving a certain location area of the positioning system according to the recording trigger condition.
  • the user identification, acquisition time, and location identification are periodically recorded according to the time unit, and may include: the positioning system records the user entering and/or leaving a certain location area of the positioning system according to the recording trigger condition.
  • the specific data collection and pre-processing steps may not be limited to the above steps, and may also directly collect and save data for user quantity calculation to form a user's location record.
  • the user quantity calculation method may further include displaying the at the position of the to-be-checked position at a position corresponding to the to-be-checked position of the electronic map.
  • the number of users in the time to be checked. the inquirer can be straight See the results of the number of users.
  • the query request sent by the querier through the electronic map may specifically include receiving a query request issued by the querier by operating a display area in the electronic map (such as using a mouse to select a certain location of the display area as the location to be checked); or
  • the query request is sent by the receiving queryer by operating a time selection control in the electronic map (such as a time axis set on the electronic map, and determining the time to be checked by dragging the slider on the time axis to a certain position with the mouse).
  • the embodiment provides a user quantity calculation system.
  • the system includes: a data collection device 41, configured to collect location information of a user; and a computer 42 configured to receive, by an input interface, an inquiry sent by a queryer.
  • Querying a query request formed by the attribute parameter, the to-be-checked attribute parameter includes a to-be-checked location and a time to be checked after the current time; and then querying in the attribute-location record quantity comparison table stored by the computer corresponds to the to-be-checked
  • the number of location records of the attribute parameter is checked.
  • the number of users in the to-be-checked time in the to-be-checked position is calculated according to the number of the location records obtained by the query.
  • the data collection device 41 is connected to another input interface of the computer 42 to transmit the collected location information of the user to the computer to form a location record corresponding to the collected user in the computer 42;
  • the computer 42 is further configured to establish the attribute-location record quantity comparison table according to the locally saved user's location record, and store the attribute-location record quantity comparison table in a memory.
  • the computer 42 in the system may include: an attribute combining unit 4201, configured to summarize user attributes and location attributes in the local saved user's location record to obtain attribute combinations; and a statistical unit 4202 for counting at each time a number of location records having the same combination of attributes in the unit; an attribute calculation unit 4203, configured to calculate an attribute calculation result corresponding to the attribute combination according to the statistical result of the number of position records; a trend combining unit 4204, configured to The attribute combination constructs a trend attribute combination, the trend attribute combination is subordinate to the attribute combination, and the trend attribute combination includes at least a location attribute; a trend calculation unit 4205, configured to calculate the trend according to the specified time period to be checked Attribute combination calculation of the trend corresponding to each time unit in the time period to be checked
  • the comparison table generating unit 4206 is configured to combine the attribute calculation result corresponding to each of the attribute combinations with each of the trend attributes to compose a trend calculation result corresponding to each time unit in the to-be-checked time period.
  • the computer 42 may further include: a matching unit 4207, configured to search, in the attribute combination, an attribute combination including the to-be-checked position, which is specified as a matching attribute combination; and a query unit 4208, configured to combine the corresponding attribute according to the matching attribute
  • the calculation result and the corresponding trend attribute are combined with the trend calculation result corresponding to the to-be-checked time, and the number of users in the to-be-checked position in the to-be-checked position is calculated.
  • the computer 42 may further include a dividing unit 4209, configured to divide the matching attribute combination into a matching attribute combination subset according to the location attribute; the calculating unit 4208 is further configured to combine each of the subsets according to the matching attribute.
  • the result of the attribute calculation corresponding to the matching attribute combination and the corresponding trend attribute are combined with the trend calculation result corresponding to the to-be-checked time, and the number of users in the to-be-checked position in the to-be-checked position is calculated.
  • the data collection device 41 is further configured to periodically record the user identifier, the acquisition time, and the location identifier of the user that meets the collection condition according to the time unit; and the computer 42 may further include an attribute expansion module 4210, configured to the user according to the attribute database.
  • the identification and location identification are attribute extended to form the location record corresponding to the user identification, acquisition time, and location identification.
  • the data collection device 41 is further configured to: record the user identifier, the acquisition time, and the location identifier of the user entering and/or leaving a certain location area of the positioning system according to the recording trigger condition.
  • the computer 42 may further include a receiving unit 4211, configured to receive, by using the input interface, a query request that is generated by the querier by the electronic map and is composed of the to-be-checked attribute parameter, where the query request includes the to-be-checked location and the to-be-checked Time, and the user quantity calculation system may further include a display 43, configured to display, at the position corresponding to the to-be-checked position, the electronic map in the time to be inspected, in the time to be checked amount of users.
  • a receiving unit 4211 configured to receive, by using the input interface, a query request that is generated by the querier by the electronic map and is composed of the to-be-checked attribute parameter, where the query request includes the to-be-checked location and the to-be-checked Time
  • the user quantity calculation system may further include a display 43, configured to display, at the position corresponding to the to-be-checked position, the electronic map in the time to be inspected, in the time
  • the receiving unit 4211 is further configured to receive a query request that is generated by the queryer by operating the display area in the electronic map, and is configured by the query attribute parameter; or, the receiving queryer operates the electronically
  • the query request consisting of the attribute parameter to be checked issued by the time selection control in the figure, wherein the query request includes the to-be-checked location and the to-be-checked time.
  • the computer only needs to record the correspondence between the user attribute and the location record according to the method of the local saved user according to any mathematical statistics method, that is, establish an attribute-location record quantity comparison.
  • the prior art needs to establish a location model for each user, resulting in a large amount of computational resources being consumed.
  • the storage space of the computer can be saved compared to the existing location model corresponding to each user, thereby accelerating the query of the computer when the query condition changes frequently. speed.
  • the matching attribute combination is further divided into matching attribute combination subsets according to the position attribute, and the user quantity calculation result can be obtained more quickly and in real time.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • the embodiments of the present invention are mainly used in a location service service.

Abstract

本发明实施例公开了一种用户数量计算方法及系统,涉及通信技术领域,解决了现有技术在获取用户数量时需对每一个用户建立位置模型导致的计算量大,耗费大量计算资源的问题。本发明实施例中,由于计算机只需根据本地保存的用户的位置记录建立一个属性-位置记录数量对照表,随后根据查询请求中的时间、位置属性就可获得所需的用户数量结果,克服了现有技术会耗费计算机中大量计算资源的缺陷。另外,由于计算机中只需保存一个属性-位置记录数量对照表,可节约计算机的存储空间,从而可在查询条件频繁变化时,加快查询速度,提高计算机的查询效率。

Description

用户数量计算方法及系统 技术领域
本发明涉及通信技术领域, 尤其涉及用户数量计算方法及系统。
背景技术
位置服务( Location Based Service, 简称为: LBS )是通过电信移动运营 商的网络(如 GSM 网、 CDMA 网 )获取移动终端用户的位置信息 (经纬度 坐标), 在电子地图平台的支持下, 为用户提供相应服务的一种增值业务。
现有技术中移动终端用户的位置信息获取技术包括: 基于网络的定位技 术, 主要是利用移动终端设备信号到达各基站的时间和角度等信息测算移动 终端在网络中的位置;基于终端的定位技术,主要是利用 GPS ( Global Position System, 全球定位系统), 由移动终端接收 GPS卫星的信号获得相应的位置信 息; 混合定位技术, 结合了基于网络的定位技术与基于终端的定位技术的优 点, 利用移动终端在基站的信息, 并配合传统 GPS卫星, 让定位的速度更快。
利用现有的定位技术, 可以定位并获取用户位置记录, 得到过去某个时 间点在某个位置或某些位置的用户数量, 进一步根据用户的属性可以获得具 有某些属性(如不同性别、 年龄段、 职业等属性) 的用户数量。
在某些情况下 (如将在某区域组织活动, 分配资源, 推广产品等), 需要 知道未来某个时间点, 某个位置具有特定属性的用户数量。 例如, 产品推广 商希望将产品内容发送给 1000个男学生, 需要获知哪几个位置的用户数量可 以满足推广目标, 而可以被指定为推广地点。 因此, 提出了基于位置和未来 时间点的用户数量计算方法。 现有的用户数量计算方法包括: 记录每个时刻 每个用户 (即移动终端) 的位置信息; 根据单个用户的时间 -位置记录, 建 立该用户的位置模型; 根据该位置模型, 获取该用户未来某个时间点所在的 位置; 重复上述步骤以获取所有用户在上述未来某个时间点的位置; 汇总所 有用户的、 在未来某个时间点的位置信息, 得到上述未来某个时间点在某个 位置出现的用户数量。
在利用上述用户数量计算方法获取未来某个时间点在某个位置出现的用 户数量的过程中, 至少存在如下问题: 由于现有的用户数量计算方法需要对 每个用户建立位置模型, 然后根据该模型获取该用户未来某个时间点所在的 位置, 当用户量很大(百万、 千万级) 时, 建立所有用户的位置模型的计算 量也会很大, 因此, 当使用计算机执行该建模过程时, 会耗费大量的计算资 源。
另外, 在获取用户数量时, 查询者会频繁地修改查询条件(即未来某个 时间点及某个位置), 每一次修改查询条件, 计算机都会先根据所有用户的位 置模型重新计算未来某个时间点的位置, 再汇总所有用户的、 在未来某个时 间点的位置信息, 得到未来某个时间点在某个位置出现的用户数量。 随着用 户数量的增大, 会进一步增加计算机的计算量, 导致系统运行速度变慢, 查 询效率降低。
发明内容
本发明的实施例提供一种用户数量计算方法及系统, 可简化计算过程, 大大节约了该装置的计算资源。
为达到上述目的, 本发明的实施例采用如下技术方案:
一种用户数量计算方法, 包括: 计算机通过输入接口接收查询者发出的 由待查属性参数构成的查询请求, 所述待查属性参数包含待查位置及当前时 间之后的待查时间; 所述计算机在其所存储的一属性-位置记录数量对照表中 查询对应于所述待查属性参数的位置记录数量; 所述属性 -位置记录数量对照 表由所述计算机根据本地已保存的用户的位置记录建立, 并存储在存储器中; 所述计算机根据所述查询获得的所述位置记录数量获得处于所述待查位置 的、 在所述待查时间内的用户数量。
一种用户数量计算系统, 包括: 数据采集装置, 用于采集用户的位置信 息; 计算机, 用于通过一输入接口接收查询者发出的由待查属性参数构成的 查询请求, 所述待查属性参数包含待查位置及当前时间之后的待查时间; 然 后在所述计算机所存储的一属性-位置记录数量对照表中查询对应于所述待查 属性参数的位置记录数量; 最后根据所述查询获得的所述位置记录数量计算 处于所述待查位置的、 在所述待查时间内的用户数量; 所述数据采集装置连 接于所述计算机的另一输入接口, 以将所采集的所述用户的位置信息传输至 所述计算机中, 以在计算机中形成对应所采集用户的位置记录; 所述计算机, 还用于根据本地已保存的用户的位置记录建立所述属性 -位置记录数量对照 表, 并将所述属性 -位置记录数量对照表存储在存储器中。
本发明实施例提供的用户数量计算方法及系统中, 计算机只需根据本地 保存的用户的位置记录按照任意一种数理统计的方法用户属性与位置记录之 间对应关系, 即建立一个属性-位置记录数量对照表, 随后, 计算机根据查询 请求中的时间、 位置属性就可获得所需的用户数量结果, 克服了现有技术中 需要对每个用户建立一个位置模型, 导致的计算资源被大量耗费的缺陷。 另 外, 由于计算机中只需保存一个属性-位置记录数量对照表, 相比于现有的对 应于每个用户的位置模型可节约计算机的存储空间, 从而可在查询条件频繁 变化时, 加快查询速度, 提高计算机的查询效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附 图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创 造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例 1用户数量计算方法的流程图;
图 2为本发明实施例 1用户数量计算系统的方框图;
图 3为本发明实施例 2用户数量计算方法的流程图;
图 4为本发明实施例 3用户数量计算系统的方框图;
图 5为本发明实施例 2计算机建立属性 -位置记录数量对照表方法的流程 图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
实施例 1
本实施例提供一种用户数量计算方法, 该方法的执行主体为计算机, 如 图 1所示, 该方法包括如下步骤。
101、 计算机通过输入接口接收查询者发出的由待查属性参数构成的查询 请求, 所述待查属性参数包含待查位置及当前时间之后的待查时间。
查询者想要获得未来某个时间点, 某个位置具有特定属性的用户数量, 需要借助计算机进行查询操作, 该计算机通过输入接口接收查询者发出的查 询请求, 根据该查询请求进行后续的查询、 计算操作, 从而获得用户数量。
该查询请求可由查询者借助各种工具完成, 如下面将要介绍的、 通过电 子地图, 或是本领域技术人员所知的其它工具。
该查询请求由待查属性参数构成, 该参数包含待查位置及当前时间之后 的待查时间, 还可包含计算本地已保存的所有用户的位置记录中所具有的一 些其它属性信息, 如性别、 职业、 兴趣爱好等, 以便在后续的查表步骤中查 询到对应于待查属性参数的位置记录数量, 即查询到在所述待查时间内、 处 于所述待查位置且具有所述其它属性信息的位置记录数量。
102、 所述计算机在其所存储的一属性 -位置记录数量对照表中查询对应 于所述待查属性参数的位置记录数量。
属性-位置记录数量对照表为计算机根据本地已保存的用户的位置记录 所建立, 该表为所有用户的位置记录中所包含的属性与对应于各属性的位置 记录数量的对照表, 该表体现了用户属性与位置记录的对应关系, 通过该对 应关系可查询到对应于待查属性参数的位置记录数量。 当然, 建立用户属性 与位置记录之间对应关系的方法不限于下述实施例中的方法, 可以是任何数 理统计学中的建模方法。
由于该待查属性参数除了包含待查位置及当前时间之后的待查时间, 还 可包含所有用户的位置记录中所具有的一些其它属性信息, 因此可查询到在 所述待查时间内、 处于所述待查位置且具有所述其它属性信息的位置记录数 量。
上述本地已保存的用户的位置记录的形成步骤包括: 数据采集装置 (如 基站, 或 GPS终端)按照一定的规则定期进行信息采集, 采集的信息为每个 用户 (即移动终端) 的位置信息, 该位置信息中主要包括采集的时间、 用户 信息、 地理位置信息等, 还可以具有其它属性信息, 如性别、 职业、 兴趣爱 好等; 计算机将所有采集到的位置信息形成对应于每个用户的位置记录, 并 存储于存储器中。
1 03、 所述计算机根据所述查询获得的所述位置记录数量获得处于所述待 查位置的、 在所述待查时间内的用户数量。
具体地, 根据步骤 1 02 中查询获得的所述位置记录数量, 根据该查询结 果可获得处于该待查位置的、 在该待查时间内的用户数量。 当查询请求中包 含其他属性信息, 还可以获得处于该待查位置的、 在该待查时间内的满足其 他属性信息的用户数量, 由此, 查询者获得未来某个时间点, 某个位置具有 特定属性的用户数量。
本实施例提供的用户数量计算方法中, 计算机只需根据本地所保存的用 户的位置记录按照任意一种数理统计的方法建立用户属性与位置记录之间对 应关系, 即建立一个属性-位置记录数量对照表, 随后, 计算机根据查询请求 中的时间、 位置属性就可获得所需的用户数量结果, 克服了现有技术中需要 对每个用户建立一个位置模型, 导致的计算资源被大量耗费的缺陷。 另外, 由于计算机中只需保存一个属性-位置记录数量对照表, 相比于现有的对应于 每个用户的位置模型可节约计算机的存储空间, 从而可在查询条件频繁变化 时, 加快查询速度, 提高系统的查询效率。
本实施例还提供一种用户数量计算系统, 如图 2 所示, 该系统包括: 数 据采集装置 21 , 用于采集用户的位置信息; 计算机 22 , 用于通过一输入接口 接收查询者发出的由待查属性参数构成的查询请求, 所述待查属性参数包含 待查位置及当前时间之后的待查时间; 然后在所述计算机 22所存储的一属性 -位置记录数量对照表中查询对应于所述待查属性参数的位置记录数量; 最后 根据所述查询获得的所述位置记录数量获得处于所述待查位置的、 在所述待 查时间内的用户数量。
所述数据采集装置连接于所述计算机的另一输入接口, 以将所采集的所 述用户的位置信息传输至所述计算机中, 以在计算机中形成对应所采集用户 的位置记录。
所述计算机, 还用于根据本地已保存的用户的位置记录建立所述属性-位 置记录数量对照表, 并将所述属性 -位置记录数量对照表存储在存储器中。
上述系统中各装置所执行的方法已在本实施例中做了详细说明, 在此不 再赘述。
本实施例提供的用户数量计算系统中, 计算机只需根据本地所保存的用 户的位置记录按照任意一种数理统计的方法用户属性与位置记录之间对应关 系, 即建立一个属性-位置记录数量对照表, 随后, 计算机根据查询请求中的 时间、 位置属性, 就可获得所需的用户数量结果, 克服了现有技术中需要对 每个用户建立一个位置模型, 导致的计算资源被大量耗费的缺陷。 另外, 由 于计算机中只需保存一个属性-位置记录数量对照表, 相比于现有的对应于每 个用户的位置模型可节约计算机的存储空间, 从而可在查询条件频繁变化时, 加快查询速度, 提高系统的查询效率。
实施例 2
本实施例提供一种用户数量计算方法, 该方法的执行主体为计算机。 如 图 3所示, 该方法包括如下步骤。
301、 计算机通过输入接口接收查询者发出的由待查属性参数构成的查询 请求, 所述待查属性参数包含待查位置及当前时间之后的待查时间。
查询者想要获得未来某个时间点, 某个位置具有特定属性的用户数量, 需要借助计算机进行查询操作, 该计算机通过输入接口接收查询者发出的查 询请求, 根据该查询请求进行后续的查询、 计算操作, 从而获得用户数量。
该查询请求可由查询者借助各种工具完成, 如下面将要介绍的、 通过电 子地图, 或是本领域技术人员所知的其它工具。
该查询请求由待查属性参数构成, 该参数包含待查位置及当前时间之后 的待查时间, 还可包含计算本地已保存的所有用户的位置记录中所具有的一 些其它属性信息, 如性别、 职业、 兴趣爱好等, 以便在后续的查表步骤中查 询到对应于待查属性参数的位置记录数量, 即查询到在所述待查时间内、 处 于所述待查位置且具有所述其它属性信息的位置记录数量。
302、 所述计算机在其所存储的一属性 -位置记录数量对照表中查询对应 于所述待查属性参数的位置记录数量。
属性-位置记录数量对照表为计算机根据本地已保存的用户的位置记录 所建立, 该表为所有用户的位置记录中所包含的属性与对应于各属性的位置 记录数量的对照表, 该表体现了用户属性与位置记录的对应关系, 通过该对 应关系可查询到对应于待查属性参数的位置记录数量。 由于该待查属性参数 除了包含待查位置及当前时间之后的待查时间, 还可包含所有用户的位置记 录中所具有的一些其它属性信息, 因此可查询到在所述待查时间内、 处于所 述待查位置且具有所述其它属性信息的位置记录数量。
下面借助图 5介绍属性 -位置记录数量对照表的一种建立方法, 当然, 该 方法不限于图 5 所示的方法, 可以是任何数理统计学中的建模方法。 该方法 的执行主体为计算机。
501、 汇总本地已保存的用户的位置记录中的用户属性和位置属性, 获得 属性组合。
具体地, 数据采集装置(如基站, 或 GPS 终端) 负责按照一定的规则定 期采集每个用户 (即移动终端) 的位置信息, 该位置信息中主要包括采集的 时间、 用户信息、 地理位置信息等, 还可以具有其它属性信息, 如性别、 职 业、 兴趣爱好等; 计算机将所有采集到的位置信息形成对应于每个用户的位 置记录, 并存储于存储器中。 该用户的位置记录中包含的用户信息、 地理位 置信息等可分别作为用户信息记录中的一种属性, 如用户信息作为用户属性, 而地理位置信息作为位置属性, 但数据采集的时间点不作为属性。
所有的位置记录中包含的除数据采集的时间点外的至少一个属性组合在 一起可形成多种属性组合。 下面以一组数据举例说明如何获得属性组合。
示例数据:
2010-12-9, 经纬度(东经 114。 04' \1" 北纬 22。 37' \1" ), 名称 = 华强北, 位置类别=购物区, 国家 =中国, 省=广东, 市=深圳, 性别 =男, 品牌 =全球通;
2010-12-10, 经纬度(东经 114。 04' \1" 北纬 22。 37' \1" ), 名称 = 华强北, 位置类别=购物区, 国家 =中国, 省=广东, 市=深圳, 性别 =男, 品牌 =全球通;
2010-12-9, 经纬度(东经 114。 04' \1" 北纬 22。 37' \1" ), 名称 = 华强北, 位置类别=购物区, 国家 =中国, 省=广东, 市=深圳, 性别 =女, 品牌 =全球通;
2010-12-10, 经纬度(东经 114。 04' \1" 北纬 22。 37' \1" ), 名称 = 华强北, 位置类别=购物区, 国家 =中国, 省=广东, 市=深圳, 性别 =女, 品牌 =全球通;
2010-12-9, 经纬度(东经 114。 05' 1" 北纬 22。 38' V ), 名称 =东 门, 位置类别=购物区, 国家 =中国, 省=广东, 市=深圳, 性别 =男, 品牌 =全 球通; 2010-12-10, 经纬度(东经 114。 05' 1" 北纬 22。 38' V ), 名称 =东 门, 位置类别=购物区, 国家 =中国, 省=广东, 市=深圳, 性别 =男, 品牌 =全 球通;
2010-12-9, 经纬度(东经 114。 05' 1" 北纬 22。 38' V ), 名称 =东 门, 位置类别=购物区, 国家 =中国, 省=广东, 市=深圳, 性别 =女, 品牌 =全 球通;
2010-12-10, 经纬度(东经 114。 05' 1" 北纬 22。 38' V ), 名称 =东 门, 位置类别=购物区, 国家 =中国, 省=广东, 市=深圳, 性别 =女, 品牌 =全 球通;
上述每一条数据中, 第一项为数据采集的时间点; 经纬度、 名称、 位置 类别、 国家、 省及市为位置属性; 性别项为性别属性; 品牌项为偏好属性。 可以看出上述的数据中有四种属性组合, 分别为:
={东经 114° 04' \1" , 北纬 22° 37' \1" , 华强北, 购物区, 中国, 广东, 深圳, 男, 全球通 };
C2={东经 114。 04' \1" , 北纬 22。 37' \1" , 华强北, 购物区, 中国, 广东, 深圳, 女, 全球通 };
C3={东经 114° 05' 1" , 北纬 22。 38' V , 东门, 购物区, 中国, 广东, 深圳, 男, 全球通 };
C4={东经 114° 05' 1" , 北纬 22。 38' V , 东门, 购物区, 中国, 广东, 深圳, 女, 全球通 }。
502、 统计在每一个时间单位内具有相同所述属性组合的位置记录数量。 具体地, 在某一个时间单位 tj内的所有用户的位置记录按照其属性组合 进行分类, 然后统计具有相同属性组合 Ci的位置记录的条数(即位置记录数 量), 获得属性统计结果 L (Ci, tj)。 时间单位 tj可以为天或者小时, 具体可根 据计算需求进行选择。
按照上述方法对每一个时间单位 tj内用户的位置记录的进行属性组合分 类并统计后, 获得对应于每一个时间单位 tj的具有属性组合 Ci的属性统计结 果 L(Ci tj) , 然后对具有相同属性组合的、对应每一个时间单位的所有属性统 计结果汇总到一起, 形成属性统计结果集合 CL
CLi={ L(Ci t。), l(C ) , L(Ci t2) , ······ , L(Ci t tnw表示最近的 个时间单位, 而 t。表示最早的一个时间单位
以步骤 501中数据为例, 时间单位为天, 2010-12-9—天内对应于属性组 合 d={东经 114° 04' 12" , 北纬 22° 37' 12" , 华强北, 购物区, 中国, 广东, 深圳, 男, 全球通 }的位置记录应为:
2010-12-9, 经纬度(东经 114 04' 12" 北纬 22 37' 12" ), 名称 = 华强北, 位置类别=购物区, 国家 =中国, 省=广东, 市=深圳, 性别 =男, 品牌 =全球通。 统计包含该记录所对应的属性组合的所有用户信息记录的个数, 获 得一个属性统计结果。 按该方法可获得 2010-12-9 天内对应于属性组合 C2 C3、 及 2010-12-10—天内对应于属性组合 d C2 C3 C4的属性统计结果。
如果步骤 501 中的计算机本地已保存的所有数据, 那么建立的属性统计 结果集合(^={1 1} , CL2={1, 1} , CL3={1, 1} , CL4={1 1}
503、 根据步骤 502中的统计结果, 计算所述属性组合对应的属性计算结 果。
具体地, 根据步骤 502得到的属性统计结果集合, 可采用下述公式(1 ) 计算对应于每种属性组合的属性计算结果。 baseiC) = LU + ······ + LU
n+\ ( 1 ) 公式(1 ) 中, Ci表示第 i个属性组合, i为正整数; tnw tnow -!, ······ t„ow-n分别表示不同的时间单位, 为 tnw的前一个时间单位; L (Ci tnow)
L (Ci t^) L(Ci tnw_n) 分别表示不同的时间单位内具有 的位置记录 的条数(即位置记录数量); base (CJ表示对应于 的属性计算结果。
根据步骤 502得到的属性统计结果集合, 可计算获得属性统计结果为: ba se (Ci) = base (C2) = base (C3) = base (C4) =2/2=1。
504、 根据所述属性组合构造趋势属性组合, 所述趋势属性组合从属于所 述属性组合, 且所述趋势属性组合至少包括位置属性。
具体地, 趋势属性组合是属性组合的一个子集, 比如属性组合有 5 个属 性 {a, b, c, d, e} , 趋势属性组合可以是 {a, d, e}或者为 {a} , 在实际应用中, 趋 势属性组合只保留对时间变化敏感的属性。 这样, 多个属性组合可以对应相 同的趋势属性组合, 可以减少趋势计算的计算量和计算结果的存储量。 趋势 属性中至少包括位置属性, 因为, 用户数量计算就是计算在某个位置上的用 户数量, 因此位置属性为核心属性。 趋势属性组合可根据计算的需求选择具 体的位置属性, 以步骤 501中的示例数据为例, 该位置属性可以为位置类别、 国家、 省、 市、 名称中的任意一个或多个。
505、 根据指定的待查时间段, 计算所述趋势属性组合在所述待查时间段 中每一个时间单位对应的趋势计算结果。
具体地, 根据查询者的需求, 可以指定待查时间段, 其包括起始时间 tw 及从起始时间 tw开始总共需要计算的时间单位的个数。 例如: 时间单位为天, 所指定的起始时间是 2011-1-1 ,从 2011-1-1开始总共需要查询的天数为 7天, 则 2011-1-1至 2011-1-7间的 7天为待查时间段。
趋势计算结果可按如下公式计算:
direction{C- , t = dw x Dayavg (C,d , t + ww x Weekavg (C,d , tw) + mw x Monthavg (C,d , t + yw Yearavg (C,d , t
( 2 ) 公式( 2 )中, Q1表示第 i个趋势属性组合; 表示待查时间段中的第 w 个时间单位; λ^^ς1 )表示日计算分量, dw表示日计算分量的权重; ^^UQ1 )表示周计算分量, ww表示周计算分量的权重; MwtUQ1 )表示 月计算分量, mw表示月计算分量的权重; }¾/^(<^ )表示年计算分量, yw表示 年计算分量的权重, 且 directioniC ,t 表示 C,d在 tw的的趋 势计算结果。 dw、 ww、 1¾及 7„为常数,都可根据经验进行选择。 Dayavg(C ,t 、 Weekavg(Cf ,tw) Monthavg(Cf , 及 }¾a/ vg(C,d )分别按照下述公式进行计算。
K( ; rf , tDM ) + iC ,tDayiw )) +…… + K(C , tDM ) .
Figure imgf000014_0001
d K(Q ,t ) + K(C!。 + ······ + K( ,t
Week (Cl d,tw) = ^^ d 、 一
Month (C ,t
Figure imgf000014_0002
n
Ymr (c ) = K( •>tYear(w )) + ¥JCi tYear(w )) + + K(C; ,tYear(Win));
avg n L( . , ) ~ Λ (Γ ά Λ ~ ,
Figure imgf000014_0003
^,„)表示最近第 n个星期里与 tw在所属星期里的日期次序数相同的时间 单位, 表示最近第 n个月份里与 在所属月份里的星期次序数相同的时 间单位, ^。„^,„)表示最近的第 n个月份里与 tw月份不同、 日期相同的时间单 位, ^表示最近的第 n个年份里与 tw年份不同、 日期相同的时间单位。 比 如, 为 2011-3-30 曰, 为三月的第五周的周三, 那么^^ ,)为三月的第四周 的周三, 即 2011-3-23; ,2)为三月的第三周的周三, 即 2011-3-16, tDay{w^ 及 (^等以此类推; (^为上个第五周的周三, 因为二月份没有第五周, 因此 (^为 1月 26 曰。 (C,d, (w,„))表示在 (w,„)内对应于 C,d的位置记录的条数(即位置记录数 量), C,d, ^w,„))表示在 ^w,„)内对应于 C,d的位置记录的条数 (即位置记录数 量), C ^^)表示在 对应于 C的位置记录的条数(即位置记录 数量), ο α ν,„))表示在 t fl w,„)内对应于 C的位置记录的条数 (即位置记录 数量); 表示最近一个时间单位内对应于 c,d的位置记录的条数(即位 置记录数量)。
根据上述计算方法, 可计算出趋势属性组合集中每一种趋势属性组合 c 分别在 至 tw+m中每一个时间单位内的趋势计算结果: directio C;1 ,tw+l) 、 directioniC ,tw+2)
Figure imgf000015_0001
、。根据上述计算公式可知, 趋势计算结 果就是相关属性计算结果在指定的待查时间段的时间权重序列。
506、 将每一种所述属性组合对应的属性计算结果与每一种所述趋势属性 组合在所述待查时间段中每一个时间单位对应的趋势计算结果组成所述属性
-位置记录数量对照表。
属性-位置记录数量对照表可以下述集合的方式表示, 并存储在计算机的 存储器中以备后续计算用户数量时使用。
Cl base(Cl )
C2 base(C2)
C base(C ) direction{Cx w) d t
direction{C2 , tw ) direction{C directioniC, d t
Figure imgf000015_0002
direction(C q d , tw) direction(Cc direction{C , / 上述步骤 501 ~步骤 506描述了根据所有用户的位置记录建立属性 -位置 记录数量对照表的一种方法的详细过程, 当然, 建立用户属性与位置记录数 量对应关系的方法并不限于本实施例中描述的方法, 还可以根据用户的位置 记录中时间、 位置属性的统计特性来建立上述对应关系, 或是本领域技术人 员所知的其它数理统计学中的建模方法。
计算机中建立了上述属性-位置记录数量对照表后, 通过执行本实施例中 的步骤 302 , 就能查询到对应于所述待查属性参数的位置记录数量。 步骤 302 可具体包括如下子步骤。 3021、 在所述属性组合中查找包含所述待查位置的属性组合, 指定为匹 配属性组合。
查询请求中的待查属性参数包含待查位置, 在所有的属性组合中, 只要 被查询的属性组合中包含该待查位置, 不管该被查询的属性组合是否包含其 它属性, 也不管这些其它属性的取值如何, 该被查询的属性组合即为匹配属 性组合 MCi o
3022、 在所述属性-位置记录数量对照表中查询所述匹配属性组合对应的 属性计算结果及相应的趋势属性组合在所述待查时间对应的趋势计算结果。
具体地, 在通过步骤 501 ~步骤 506计算得到的属性 -位置记录数量对照 表中, 查找匹配属性组合 MCi对应的属性计算结果 base (MC , 再根据与该匹 配属性组合 MCi对应的趋势属性组合 MC,d及待查时间 t查找对应的趋势计算结 directioniMC^f)。 属性计算结果 base (Md)及趋势计算结果 ( ^criw?(MC,d,t)构 成查询获得的位置记录数量。
303、 根据匹配属性组合对应的属性计算结果及相应的趋势属性组合在待 查时间对应的趋势计算结果, 计算处于待查位置的、 在待查时间内的用户数 量根据下述公式计算处于所述待查位置的、 在待查时间内的用户数量。
具体地, 按下述公式进行用户数量的计算。
count = (base(MCi ) x direction{MC^ , t)) ( 3 ) 上述公式(3 ) 中, Z 为求和符号。 其中, Count表示用户数量, MCi表 示第 i个匹配属性组合, i为正整数, MC,d表示与 MCi对应的趋势属性组合, base (MC0表示 MCi对应的属性计算结果, directioniMC;1 , f) 示 MC,d在待查时间 t对应的趋势计算结果。
获得处于所述待查位置的、 在待查时间内的用户数量的步骤可为: 将属 性计算结果 base (MCi)与趋势计算结果 t ^c^ MC/ )相乘获得中间结果, 最 后按上述方法对所有匹配属性组合计算出中间结果, 然后将各中间结果相加, 获得处于所述待查位置的、 在待查时间内的用户数量 count。
如果待查位置的范围比较大, 比如在该范围内有多个数据采集点, 每个 采集点具有不同的经纬度, 为了能获得该范围内每个采集点的用户数量结果, 在上述步骤 3021和步骤 3022之间还可包括: 将所述匹配属性组合根据位置 属性划分为匹配属性组合子集。 根据步骤 501的示例数据可知经纬度、 名称、 位置类别、 国家、 省及市为位置属性, 当所述匹配属性组合是根据经纬度划 分为匹配属性组合子集时, 不同的所述匹配属性组合子集具有不同的经纬度 属性。
然后在所述属性 -位置记录数量对照表中查询所述匹配属性组合子集中 每一种所述匹配属性组合对应的属性计算结果及相应的趋势属性组合在所述 待查时间对应的趋势计算结果。
接着可以在步骤 303中将所有的匹配属性组合子集都按照公式( 3 )计算, 获得处于所述待查位置的、 在待查时间内的用户数量。
通过将匹配属性组合根据位置属性进一步划分为匹配属性组合子集, 不 仅使获得的用户数量能具体待查位置中的一个小范围内, 还能提高该范围的 用户数量计算速度, 从而能快速实时地获得该范围内的用户数量计算结果。
当然, 查询请求中还可包含用户的位置记录所具有的一些其它属性信息, 如性别、 职业、 兴趣爱好等, 以获得在未来的待查时间内, 处于该待查位置 的、 具有上述其它属性信息的用户数量。
如果在获得了处于所述待查位置的、 在待查时间内的用户数量 count后, 又收到了新的查询请求, 该查询请求中只有待查时间发生了变化(新的待查 时间为 t' ), 则可以根据下述公式快速重新计算用户数量。 count = count x directio Ci f) ,其中 count'为对应新的待查时间的用户数量, direction Ci ) re ^(CV ')为在新的待查时间内对应的 的趋势计算结果。 这种算法可以 使计算机快速计算出新的结果, 而不用重新查询属性计算结果和属性计算结 果, 大大加快了计算速度。
下面通过具体的示例说明用户数量的计算方法。
ς 580
C2 700 假设已建立好的属性 -位置记录数量对照表由属性计算结果: 及
C3 900 800 趋势计算结果: Ci ( 1.0, 1.3, 1.6.0.9, 1.1, 1.3, 1.1 )构成, 其中 Cl rf为对应 d、 C2、 及 的趋势属性组合, 趋势计算结果的起始时间是 2011-1-1, 共有 7天的趋势计算结果。 d、 C2、 及(4为步骤 501中示例数据的属性组合:
Cl={东经 114。 04' W 北纬 22° 37' 12" , 华强北, 购物区, 中国, 广东, 深圳, 男, 全球通 };
C2={东经 114。 04' \r , 华强北, 购物区, 中国, 广东, 深圳, 女, 全球通 };
C3={东经 114。 05' 1" 北纬 22° 38' V , 东门, 购物区, 中国, 广 东, 深圳, 男, 全球通 };
C4={东经 114。 05' 1" 北纬 22° 38' V , 东门, 购物区, 中国, 广 东, 深圳, 女, 全球通 }。 c,d: 位置类别=购物区。
当输入的查询条件 0={市=深圳, 位置类别=购物区, 性别 =男, 待查时间 =2011-1-3}时, 匹配属性组合为 {d, CJ , 根据经纬度划分为两个匹配属性组 合子集 {CJ及 {CJ。
需要说明的是, 该查询条件中除了位置属性外, 还包括了性别属性, 因 此, 用户数量计算结果应为在待查时间内处于上述位置属性所指定位置的、 性别属性为男性的用户数量。
匹 配 属 性 组 合 子 集 {CJ 对 应 的 用 户 数 量 为 : base{Cx) X direction{Cx d ,t) =580* 1.6=928; 匹配属性组合子集 {CJ对应的用户数量 为: base(C3) x direction C^ ,t) = 9 Q 0 * 1. 6=1440。
通过执行上述步骤 301 ~步骤 303可获得待查时间内在待查位置处的用户 数量, 由于在该用户数量计算方法中, 计算机只需根据本地所保存的用户的 位置记录按照任意一种数理统计的方法用户属性与位置记录之间对应关系, 即建立一个属性-位置记录数量对照表,随后,计算机根据查询请求中的时间、 位置属性, 就可获得所需的用户数量结果, 克服了现有技术中需要对每个用 户建立一个位置模型, 导致的计算资源被大量耗费的缺陷。 进一步地, 由于 计算机中只需保存一个属性-位置记录数量对照表, 相比于现有的对应于每个 用户的位置模型可节约计算机的存储空间, 从而加快了查询条件频繁变化时 计算机的查询速度。 另外, 在计算用户数量时根据位置属性将匹配属性组合 进一步划分为匹配属性组合子集, 可以更加快速、 实时地获得用户数量计算 结果。
该属性-位置记录数量对照表的建立过程中, 在汇总所述本地已保存的所 有用户的位置记录中的用户属性和位置属性, 获得属性组合之前, 还可以包 括数据采集及预处理步骤, 该步骤包括: 按照所述时间单位, 定期记录满足 采集条件的用户的用户标识、 采集时间及位置标识; 根据属性数据库对所述 用户标识及位置标识进行属性扩展, 以形成对应于所述用户标识、 采集时间 及位置标识的所述位置记录。
其中, 按照时间单位, 定期记录满足采集条件的用户的用户标识、 采集 时间及位置标识, 可以包括: 定位系统根据记录触发条件, 记录进入和 /或离 开所述定位系统某个位置区的用户的所述用户标识、 采集时间及位置标识。
具体的数据采集及预处理步骤可不限于上述步骤, 也可为直接采集并保 存用于用户数量计算的数据, 以形成用户的位置记录。
另外, 当接收的查询请求为查询者通过电子地图发出的查询请求时, 该 用户数量计算方法还可包括在电子地图对应于所述待查位置的位置上显示所 述处于所述待查位置的、 在所述待查时间内的用户数量。 由此, 查询者可直 观地看到用户数量计算结果。 其中, 接收查询者通过电子地图发出的查询请 求, 具体可包括接收查询者通过操作电子地图中显示区域(如用鼠标选中显 示区域的某个位置作为待查位置) 而发出的查询请求; 或者, 包括接收查询 者通过操作电子地图中时间选择控件(如电子地图上设置的时间轴, 通过用 鼠标将时间轴上的滑块拖动到某个位置而确定待查时间 )而发出的查询请求。
实施例 3
本实施例提供一种用户数量计算系统, 如图 4 所示, 该系统包括: 数据 采集装置 41 , 用于采集用户的位置信息; 计算机 42 , 用于通过一输入接口接 收查询者发出的由待查属性参数构成的查询请求, 所述待查属性参数包含待 查位置及当前时间之后的待查时间; 然后在所述计算机所存储的一属性 -位置 记录数量对照表中查询对应于所述待查属性参数的位置记录数量; 最后根据 所述查询获得的所述位置记录数量计算处于所述待查位置的、 在所述待查时 间内的用户数量。
所述数据采集装置 41连接于所述计算机 42的另一输入接口, 以将所采 集的所述用户的位置信息传输至所述计算机中, 以在计算机 42中形成对应所 采集用户的位置记录; 所述计算机 42 , 还用于根据本地已保存的用户的位置 记录建立所述属性-位置记录数量对照表, 并将所述属性 -位置记录数量对照 表存储在存储器中。
该系统中的计算机 42可包括: 属性组合单元 4201 , 用于汇总所述本地已 保存的用户的位置记录中的用户属性和位置属性, 获得属性组合; 统计单元 4202 , 用于统计在每一个时间单位内具有相同所述属性组合的位置记录数量; 属性计算单元 4203 , 用于根据所述位置记录数量的统计结果, 计算所述属性 组合对应的属性计算结果; 趋势组合单元 4204 , 用于根据所述属性组合构造 趋势属性组合, 所述趋势属性组合从属于所述属性组合, 且所述趋势属性组 合至少包括位置属性; 趋势计算单元 4205 , 用于根据指定的待查时间段, 计 算所述趋势属性组合在所述待查时间段中每一个时间单位对应的趋势计算结 果; 对照表生成单元 4206 , 用于将每一种所述属性组合对应的属性计算结果 与每一种所述趋势属性组合在所述待查时间段中每一个时间单位对应的趋势 计算结果组成所述属性-位置记录数量对照表。
计算机 42还可包括: 匹配单元 4207 , 用于在所述属性组合中查找包含所 述待查位置的属性组合, 指定为匹配属性组合; 查询单元 4208 , 用于根据所 述匹配属性组合对应的属性计算结果及相应的趋势属性组合在所述待查时间 对应的趋势计算结果, 计算所述处于所述待查位置的、 在待查时间内的用户 数量。
所述计算机 42还可包括划分单元 4209 ,用于将所述匹配属性组合根据位 置属性划分为匹配属性组合子集; 所述计算单元 4208还用于根据所述匹配属 性组合子集中每一种所述匹配属性组合对应的属性计算结果及相应的趋势属 性组合在所述待查时间对应的趋势计算结果, 计算所述处于所述待查位置的、 在待查时间内的用户数量。
数据采集装置 41还可用于按照所述时间单位, 定期记录满足采集条件的 用户的用户标识、 采集时间及位置标识; 且计算机 42还可包括属性扩展模块 4210 , 用于根据属性数据库对所述用户标识及位置标识进行属性扩展, 以形 成对应于所述用户标识、 采集时间及位置标识的所述位置记录。
所述的数据采集装置 41 还可用于: 根据记录触发条件, 记录进入和 /或 离开所述定位系统某个位置区的用户的所述用户标识、 采集时间及位置标识。
计算机 42还可包括接收单元 4211 ,用于通过所述输入接口接收查询者通 过电子地图发出的由待查属性参数构成的查询请求, 所述查询请求中包含所 述待查位置及所述待查时间, 且该用户数量计算系统还可包括显示器 43 , 用 于在所述电子地图对应于所述待查位置的位置上显示所述处于所述待查位置 的、 在所述待查时间内的用户数量。
所述接收单元 4211还可用于接收查询者通过操作电子地图中显示区域而 发出的由待查属性参数构成的查询请求; 或者, 接收查询者通过操作电子地 图中时间选择控件而发出的由待查属性参数构成的查询请求, 所述查询请求 中包含所述待查位置及所述待查时间。
上述各模块及单元所执行的方法已在实施例 1及实施例 2 中做了详细说 明, 在此不再贅述。
本实施例提供的用户数量计算系统中, 计算机只需根据本地所保存的用 户的位置记录按照任意一种数理统计的方法用户属性与位置记录之间对应关 系, 即建立一个属性-位置记录数量对照表, 随后, 计算机根据查询请求中的 时间、 位置属性, 就可获得所需的用户数量结果, 克服了现有技术中需要对 每个用户建立一个位置模型, 导致的计算资源被大量耗费的缺陷。 进一步地, 由于计算机中只需保存一个属性-位置记录数量对照表, 相比于现有的对应于 每个用户的位置模型可节约计算机的存储空间, 从而加快了查询条件频繁变 化时计算机的查询速度。 另外, 在计算用户数量时根据位置属性将匹配属性 组合进一步划分为匹配属性组合子集, 可以更加快速、 实时地获得用户数量 计算结果。
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本 发明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬件, 但 很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该 计算机软件产品存储在可读取的存储介质中, 如计算机的软盘, 硬盘或光盘 等, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述的方法。
本发明实施例主要用于位置服务业务中。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变 化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 所述以权利要求的保护范围为准。

Claims

权利 要求 书
1、 一种用户数量计算方法, 其特征在于, 包括:
计算机通过输入接口接收查询者发出的由待查属性参数构成的查询请求, 所述待查属性参数包含待查位置及当前时间之后的待查时间;
所述计算机在其所存储的一属性 -位置记录数量对照表中查询对应于所述 待查属性参数的位置记录数量; 所述属性-位置记录数量对照表由所述计算机根 据本地已保存的用户的位置记录建立, 并存储在存储器中;
所述计算机根据所述查询获得的所述位置记录数量获得处于所述待查位置 的、 在所述待查时间内的用户数量。
2、 根据权利要求 1所述的用户数量计算方法, 其特征在于, 所述根据本地 已保存的用户的位置记录建立属性-位置记录数量对照表的方法包括:
汇总所述本地已保存的用户的位置记录中的用户属性和位置属性, 获得属 性组合;
统计在每一个时间单位内具有相同所述属性组合的位置记录数量; 根据所述位置记录数量的统计结果, 计算所述属性组合对应的属性计算结 果;
根据所述属性组合构造趋势属性组合, 所述趋势属性组合从属于所述属性 组合, 且所述趋势属性组合至少包括位置属性;
根据指定的待查时间段, 计算所述趋势属性组合在所述待查时间段中每一 个时间单位对应的趋势计算结果;
每一种所述属性组合对应的属性计算结果与每一种所述趋势属性组合在所 述待查时间段中每一个时间单位对应的趋势计算结果构成所述属性-位置记录 数量对照表。
3、 根据权利要求 2所述的用户数量计算方法, 其特征在于, 所述属性组合 对应的属性计算结果按下述公式计算:
base^ ) = C + L(C - 1) + · ..· .. + L(C
η + 1
其中, 表示第 i个属性组合, i为正整数; t t t n分别表 示不同的时间单位, 为 t 的前一个时间单位; L(Ci tnow) L(Ci tnow -!)
L(Ci tnw-n) 分别表示不同的时间单位内具有 Ci的位置记录数量统计结果; base (C 表示对应于 Ci的属性计算结果。
4、 根据权利要求 2或 3所述的用户数量计算方法, 其特征在于, 所述趋势 属性组合在所述待查时间段中一个时间单位对应的趋势计算结果按下述公式计 direction{C- ,t = dwx Dayavg (C ,t + wwx Weekavg ( ,t + mwx Monthavg ( ,t + yw Yearavg (C , t
, 上式中 (Cd t ) = K(c I)) + K(CW ,2)) + + ^{c ,tDay(^n)),
avg n
Week (c. t )— K(C eet(w,i) ) + K(C tWeek(^w2) ) + + K(C- tWeek^wn) )
avg n
M。nth C.d t )— K(C ) + K(Cf , t ) + + K(Cf , t
avg n
year cd ί ~)= K(C,. + K(C,. ,tYear(w>n))
avg n
其中, κ(ς ΰα ) = L(^ )), ~ ~" Λ ~
lnow7
、 _ ^( - ,
V , now )
(rd t _ L(C,. ,tFear(w n))
' lnow )
其中, 表示第 i个趋势属性组合; ^表示待查时间段中的第 w个时间单 位;
^^ 表示日计算分量, dw表示日计算分量的权重;
vg(C,d,tw)表示周计算分量, ww表示周计算分量的权重;
Monthavg (C , t 表示月计算分量, mw表示月计算分量的权重;
Yearavg(C ,tw)表示年计算分量, yw 表示年计算分量的权重, 且 dw + ww+mw + yw -\
表示最近第 n个星期里与 在所属星期里的日期次序数相同的时间单 位, 表示最近第 n个月份里与 在所属月份里的星期次序数相同的时间单 位, t 表示最近的第 n个月份里与 tw月份不同、日期相同的时间单位, 表示最近的第 n个年份里与 tw年份不同、 日期相同的时间单位;
(Cf ,tDay{w 表示在 tD一内具有 的位置记录数量统计结果, , 表示在 内具有 c的位置记录数量统计结果, (0 。 ,η))表示在 t^ 内 具有 c,d的位置记录数量统计结果, (c,d,t a w,„))表示在 α ν,„)内具有 的位置记 录数量统计结果;
(c , t„。w )表示最近一个时间单位内具有 c 的位置记录数量统计结果, directioniC " ,tw)表示 C,d在 tw的趋势计算结果。
5、 根据权利要求 4所述的用户数量计算方法, 其特征在于, 所述计算机在 其所存储的一属性-位置记录数量对照表中查询对应于所述待查属性参数的位 置记录数量, 包括:
在所述属性组合中查找包含所述待查位置的属性组合, 指定为匹配属性组 合;
在所述属性 -位置记录数量对照表中查询所述匹配属性组合对应的属性计 算结果及相应的趋势属性组合在所述待查时间对应的趋势计算结果;
所述对应于所述待查属性参数的位置记录数量包括所述属性计算结果及所 述趋势计算结果。
6、 根据权利要求 5所述的用户数量计算方法, 其特征在于, 在所述指定所 述匹配属性组合之后, 还包括:
将所述匹配属性组合根据位置属性划分为匹配属性组合子集;
所述在所述属性-位置记录数量对照表中查询所述匹配属性组合对应的属 性计算结果及相应的趋势属性组合在所述待查时间对应的趋势计算结果, 包括: 在所述属性 -位置记录数量对照表中查询所述匹配属性组合子集中每一种 所述匹配属性组合对应的属性计算结果及相应的趋势属性组合在所述待查时间 对应的趋势计算结果。
7、 根据权利要求 5所述的用户数量计算方法, 其特征在于, 按下述公式计 算所述处于所述待查位置的、 在待查时间内的用户数量: count - ^ {base MCi ) x direction MC- , t))
其中, Count表示用户数量, MCi表示第 i个匹配属性组合, i为正整数, MC 表示与 MC i对应的趋势属性组合, ba s e (MCi)表示 MCi对应的属性计算结果,
Figure imgf000026_0001
, t)表示 MC,d在待查时间 t对应的趋势计算结果。
8、 根据权利要求 2所述的用户数量计算方法, 其特征在于, 在所述汇总所 述本地已保存的所有用户的位置记录中的用户属性和位置属性, 获得属性组合 之前, 还包括:
所述数据采集装置按照时间单位, 定期记录满足采集条件的用户的用户标 识、 采集时间及位置标识;
所述计算机根据属性数据库对所述用户标识及位置标识进行属性扩展, 以 形成对应于所述用户标识、 采集时间及位置标识的位置记录。
9、 根据权利要求 8所述的用户数量计算方法, 其特征在于, 所述数据采集 装置按照时间单位, 定期记录满足采集条件的用户的用户标识、 采集时间及位 置标识, 包括:
所述数据采集装置根据记录触发条件, 记录进入和 /或离开某个位置区的用 户的所述用户标识、 采集时间及位置标识。
1 0、 根据权利要求 1 所述的用户数量计算方法, 其特征在于, 所述接收查 询者发出的由待查属性参数构成的查询请求, 所述待查属性参数包含待查位置 及当前时间之后的待查时间, 包括:
接收所述查询者通过电子地图发出的由待查属性参数构成的查询请求, 所 述待查属性参数包含所述待查位置及所述当前时间之后的待查时间;
所述用户数量计算方法还包括: 在所述电子地图对应于所述待查位置的位 置上显示所述处于所述待查位置的、 在所述待查时间内的用户数量。
1 1、 根据权利要求 1 0所述的用户数量计算方法, 其特征在于, 所述接收所 述查询者通过电子地图发出的由待查属性参数构成的查询请求, 包括:
接收所述查询者通过操作所述电子地图中显示区域而发出的由待查属性参 数构成的查询请求; 或者, 接收查询者通过操作所述电子地图中时间选择控件而发出的由待查属性参 数构成的查询请求。
12、 一种用户数量计算系统, 其特征在于, 包括:
数据采集装置, 用于采集用户的位置信息;
计算机, 用于通过一输入接口接收查询者发出的由待查属性参数构成的查 询请求, 所述待查属性参数包含待查位置及当前时间之后的待查时间; 然后在 所述计算机所存储的一属性-位置记录数量对照表中查询对应于所述待查属性 参数的位置记录数量; 最后根据所述查询获得的所述位置记录数量计算处于所 述待查位置的、 在所述待查时间内的用户数量;
所述数据采集装置连接于所述计算机的另一输入接口, 以将所采集的所述 用户的位置信息传输至所述计算机中, 以在计算机中形成对应所采集用户的位 置记录;
所述计算机, 还用于根据本地已保存的用户的位置记录建立所述属性 -位置 记录数量对照表, 并将所述属性 -位置记录数量对照表存储在存储器中。
1 3、根据权利要求 12所述的用户数量计算系统, 其特征在于, 所述计算机, 包括:
属性组合单元, 用于汇总所述本地已保存的用户的位置记录中的用户属性 和位置属性, 获得属性组合;
统计单元, 用于统计在每一个时间单位内具有相同所述属性组合的位置记 录数量;
属性计算单元, 用于根据所述位置记录数量的统计结果, 计算所述属性组 合对应的属性计算结果;
趋势组合单元, 用于根据所述属性组合构造趋势属性组合, 所述趋势属性 组合从属于所述属性组合, 且所述趋势属性组合至少包括位置属性;
趋势计算单元, 用于根据指定的待查时间段, 计算所述趋势属性组合在所 述待查时间段中每一个时间单位对应的趋势计算结果;
对照表生成单元, 用于将每一种所述属性组合对应的属性计算结果与每一 种所述趋势属性组合在所述待查时间段中每一个时间单位对应的趋势计算结果 组成所述属性-位置记录数量对照表。
14、 根据权利要求 1 3所述的用户数量计算装置, 其特征在于, 所述计算机 还包括:
匹配单元, 用于在所述属性组合中查找包含所述待查位置的属性组合, 指 定为匹配属性组合;
查询单元, 用于在所述属性 -位置记录数量对照表中查询所述匹配属性组合 对应的属性计算结果及相应的趋势属性组合在所述待查时间对应的趋势计算结 果。
15、 根据权利要求 14所述的用户数量计算系统, 其特征在于, 所述计算机 还包括划分单元, 用于将所述匹配属性组合根据位置属性划分为匹配属性组合 所述查询单元, 还用于在所述属性 -位置记录数量对照表中查询所述匹配属 性组合子集中每一种所述匹配属性组合对应的属性计算结果及相应的趋势属性 组合在所述待查时间对应的趋势计算结果。
16、 根据权利要求 12所述的用户数量计算系统, 其特征在于, 所述数据采 集装置还用于按照时间单位, 定期记录满足采集条件的用户的用户标识、 采集 时间及位置标识;
所述计算机包括: 属性扩展单元, 用于根据属性数据库对所述用户标识及 位置标识进行属性扩展, 以形成对应于所述用户标识、 采集时间及位置标识的 位置记录。
17、 根据权利要求 16所述的用户数量计算系统, 其特征在于, 所述数据采 集装置还用于: 根据记录触发条件, 记录进入和 /或离开所述定位系统某个位置 区的用户的所述用户标识、 采集时间及位置标识。
18、 根据权利要求 12所述的用户数量计算系统, 其特征在于, 所述计算机 包括接收单元, 用于通过所述输入接口接收查询者通过电子地图发出的由待查 属性参数构成的查询请求, 所述查询请求中包含所述待查位置及所述待查时间; 所述用户数量计算系统还包括: 显示器, 用于显示所述电子地图, 并在所 述电子地图对应于所述待查位置的位置上显示所述处于所述待查位置的、 在所 述待查时间内的用户数量。
19、 根据权利要求 18所述的用户数量计算系统, 其特征在于, 所述接收单 元还用于接收查询者通过操作所述电子地图中显示区域而发出的由待查属性参 数构成的查询请求; 或者, 接收查询者通过操作所述电子地图中时间选择控件 而发出的由待查属性参数构成的查询请求。
PCT/CN2011/078165 2011-08-09 2011-08-09 用户数量计算方法及系统 WO2012159372A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2011/078165 WO2012159372A1 (zh) 2011-08-09 2011-08-09 用户数量计算方法及系统
CN201180001515.8A CN103039036B (zh) 2011-08-09 2011-08-09 用户数量计算方法及系统
US14/135,903 US20140114958A1 (en) 2011-08-09 2013-12-20 Method and system for calculating number of users

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/078165 WO2012159372A1 (zh) 2011-08-09 2011-08-09 用户数量计算方法及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/135,903 Continuation US20140114958A1 (en) 2011-08-09 2013-12-20 Method and system for calculating number of users

Publications (1)

Publication Number Publication Date
WO2012159372A1 true WO2012159372A1 (zh) 2012-11-29

Family

ID=47216593

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/078165 WO2012159372A1 (zh) 2011-08-09 2011-08-09 用户数量计算方法及系统

Country Status (3)

Country Link
US (1) US20140114958A1 (zh)
CN (1) CN103039036B (zh)
WO (1) WO2012159372A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268293B (zh) * 2014-10-23 2018-02-23 北京国双科技有限公司 数据库中的不可累加指标处理方法和装置
CN105761119B (zh) * 2016-03-30 2019-11-05 广州华多网络科技有限公司 在线人数分布计算方法及装置
EP3453208A1 (en) * 2016-05-03 2019-03-13 Telefonaktiebolaget LM Ericsson (publ) Methods and network nodes for providing ue location for vowifi calls
CN108959324B (zh) * 2017-05-26 2022-04-15 腾讯科技(深圳)有限公司 多媒体展示资源库存量的预估方法、装置及存储介质
CN111414298A (zh) * 2019-01-08 2020-07-14 西安诺瓦电子科技有限公司 显示设备统计方法、装置、系统以及计算机可读介质
US11706100B2 (en) * 2019-11-15 2023-07-18 Charter Communications Operating, Llc Methods and apparatus for supporting dynamic network scaling based on learned patterns and sensed data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178611A (zh) * 2007-12-13 2008-05-14 华为技术有限公司 对数计算的实现方法及装置
WO2008080578A2 (de) * 2007-01-02 2008-07-10 T-Mobile International Ag Verfahren zur erfassung von kenngrössen eines mobilfunknetzes durch mobilfunkendgeräte mit integriertem gps-empfänger
CN101668244A (zh) * 2008-09-02 2010-03-10 上海领美实业有限公司 公共场所人流智能管理与服务系统及其方法
CN101820585A (zh) * 2009-02-26 2010-09-01 中国电信股份有限公司 移动通信网络中的资源动态分配的方法及设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8351647B2 (en) * 2002-07-29 2013-01-08 Videomining Corporation Automatic detection and aggregation of demographics and behavior of people
US8229458B2 (en) * 2007-04-08 2012-07-24 Enhanced Geographic Llc Systems and methods to determine the name of a location visited by a user of a wireless device
US8224353B2 (en) * 2007-09-20 2012-07-17 Aegis Mobility, Inc. Disseminating targeted location-based content to mobile device users
US20120030018A1 (en) * 2010-07-28 2012-02-02 Aol Inc. Systems And Methods For Managing Electronic Content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008080578A2 (de) * 2007-01-02 2008-07-10 T-Mobile International Ag Verfahren zur erfassung von kenngrössen eines mobilfunknetzes durch mobilfunkendgeräte mit integriertem gps-empfänger
CN101178611A (zh) * 2007-12-13 2008-05-14 华为技术有限公司 对数计算的实现方法及装置
CN101668244A (zh) * 2008-09-02 2010-03-10 上海领美实业有限公司 公共场所人流智能管理与服务系统及其方法
CN101820585A (zh) * 2009-02-26 2010-09-01 中国电信股份有限公司 移动通信网络中的资源动态分配的方法及设备

Also Published As

Publication number Publication date
US20140114958A1 (en) 2014-04-24
CN103039036A (zh) 2013-04-10
CN103039036B (zh) 2015-04-08

Similar Documents

Publication Publication Date Title
US20190332615A1 (en) Interpersonal Spacetime Interaction System
AU2012339408B2 (en) Method and server for searching for nearby user in social network
CN106709606B (zh) 个性化场景预测方法及装置
JP6689515B2 (ja) ユーザ地理的ロケーションのタイプを識別するための方法および装置
US8509811B2 (en) Service provider recommendation engine
US11397904B2 (en) Systems and methods of generating itineraries using location data
WO2012159372A1 (zh) 用户数量计算方法及系统
US10515101B2 (en) Determining clusters of similar activities
US9420426B2 (en) Inferring a current location based on a user location history
CN101094525B (zh) 生成用户属性信息的方法和装置
WO2019153889A1 (zh) 地理位置服务的实现
CN104239453B (zh) 数据处理方法及装置
CN101370025A (zh) 地理信息数据的存储方法、调度方法及管理系统
CN107480180A (zh) 道路数据的处理方法、道路定位方法、装置及系统
CN103903474A (zh) 一种基于K-means聚类的车队出行诱导方法
US9167389B1 (en) Clustering location data to determine locations of interest
CN104320848A (zh) 基于云计算实现室内定位的系统及方法
US8849844B1 (en) Image reacquisition
CN111859187A (zh) 基于分布式图数据库的poi查询方法、装置、设备及介质
US20170347240A1 (en) Detecting group activities
CN102929914A (zh) 一种基于p2p节点调度的移动地图服务搜索方法
CN102867058B (zh) 一种无线数据广播环境下的空间关键字检索方法
CN111611337A (zh) 终端数据处理系统
RU2767958C2 (ru) Способ и система для определения факта посещения пользователем точки интереса
TWI557681B (zh) Import the method and system of real-time mass transit

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180001515.8

Country of ref document: CN

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

Ref document number: 11866411

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11866411

Country of ref document: EP

Kind code of ref document: A1