CN108255944A - The method and apparatus for determining the residence and place of working of user - Google Patents

The method and apparatus for determining the residence and place of working of user Download PDF

Info

Publication number
CN108255944A
CN108255944A CN201711321414.4A CN201711321414A CN108255944A CN 108255944 A CN108255944 A CN 108255944A CN 201711321414 A CN201711321414 A CN 201711321414A CN 108255944 A CN108255944 A CN 108255944A
Authority
CN
China
Prior art keywords
stroke
accumulation
time
user
daily
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711321414.4A
Other languages
Chinese (zh)
Inventor
杨兴
耿文童
林晓明
吴欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Interconnected Science And Technology Ltd Of Car Net
UNITED ELECTRONICS CO Ltd
Original Assignee
Beijing Interconnected Science And Technology Ltd Of Car Net
UNITED ELECTRONICS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Interconnected Science And Technology Ltd Of Car Net, UNITED ELECTRONICS CO Ltd filed Critical Beijing Interconnected Science And Technology Ltd Of Car Net
Priority to CN201711321414.4A priority Critical patent/CN108255944A/en
Publication of CN108255944A publication Critical patent/CN108255944A/en
Pending legal-status Critical Current

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/29Geographical information databases
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • G08G1/0129Traffic data processing for creating historical data or processing based on historical data
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0137Measuring and analyzing of parameters relative to traffic conditions for specific applications

Abstract

The invention discloses the method and apparatus of the residence and place of working of a kind of determining user, including:Obtain the run-length data of vehicle, stroke time started, stroke end time including User ID, in a period of time, stroke residence time, start of a run, stroke end;According to stroke time started, stroke end time, the division of day and night when day where when which day, stroke of the stroke in one week start, the day where at the end of stroke, stroke start and the division of day and night at the end of stroke are calculated;According to stroke time started and stroke residence time, the stroke that daily first stroke, daily final stroke, daily first stay time are more than time threshold is found out;Determine the residence and place of working of user.The present invention determines the first attribute and the second attribute of accumulation by run-length data, and is based further on the first attribute and the second attribute determines the residence and place of working of user.

Description

The method and apparatus for determining the residence and place of working of user
Technical field
The present invention relates to car networking technology fields, particularly relate to a kind of inhabitation of the determining user based on vehicle accumulation attribute Ground and the method and apparatus in place of working.
Background technology
With the development of net about vehicle, many private cars are assembled with driver end APP (application program), on road on and off duty altogether Vehicle resources or in one's spare time order are enjoyed, also some private cars have done dedicated driver.
Meanwhile the vehicle-mounted TBOX (Telematics of the space-time trajectory data for having many modes that can obtain vehicle, such as preceding dress BOX) equipment, onboard diagnostic system (On-Board Diagnostic, abbreviation OBD) equipment, smart mobile phone APP for filling afterwards etc., according to This can obtain a large amount of space-time trajectory data.By analyzing these data, some significant information, such as vehicle can be obtained Performance information, velocity information.
In process of the present invention is realized, inventor has found that at least there are the following problems in the prior art:It can not determine user Residence and place of working position.
Invention content
In view of this, it is an object of the invention to propose the method and dress of the residence of determining user a kind of and place of working Put, with solve can not determine user residence and place of working position the technical issues of.
Based on above-mentioned purpose, in the first aspect of the present invention, residence and work the present invention provides a kind of determining user Make the method on ground, the method includes:
Obtain the run-length data of vehicle, stroke time started, stroke end time including User ID, in a period of time, Stroke residence time, start of a run, stroke end;
According to stroke time started, stroke end time, which day during stroke is in one week is calculated, stroke starts when institute Day, at the end of stroke where day, stroke start when division of day and night and stroke at the end of division of day and night;
According to stroke time started and stroke residence time, daily first stroke, daily final stroke, daily first item are found out Stay time is more than the stroke of time threshold;
Determine the residence and place of working of user.
In some embodiments of the invention, according to stroke time started and stroke residence time, daily first item row is found out Journey, daily final stroke, daily first stay time are more than the stroke of time threshold, including:
The stroke in a period of time is ranked up according to the stroke time started;
According to the stroke time started, judge whether every stroke is first stroke of certain day and every stroke is no is The last item stroke of certain day;
Find out the stroke that daily first stay time is more than time threshold.
In some embodiments of the invention, the residence of user is determined, including:
The first attribute of each accumulation is calculated, first attribute includes:Starting point is the stroke frequency of the accumulation, daily head Start of a run is that the number of the accumulation, the number that daily final stroke end is the accumulation and user stop in the average daily of the accumulation Stay duration;
According to the first attribute of accumulation, the residence of user is determined.
In some embodiments of the invention, user includes in the computational methods of the average daily stay time of the accumulation:
For each accumulation, the stroke that stroke end in a period of time is equal to the accumulation is screened, counts stopping for these strokes The summation of time is stayed, obtains the stay time summation of the accumulation;
Day counting user according to where at the end of stroke enlivens number of days;
With the stay time summation of the accumulation divided by number of days is enlivened, obtains average daily stay time of the user in the accumulation.
In some embodiments of the invention, the place of working of user is determined, including:
The second attribute of each accumulation is calculated, second attribute includes:Starting point is the stroke frequency of the accumulation, terminal is The stroke of the accumulation reaches period mode, user reaches number in the average daily stay time of the accumulation and the average daily of the accumulation;
According to the second attribute of accumulation, the place of working of user is determined.
In the second aspect of the present invention, the present invention provides the residence of determining user a kind of and the device in place of working, packets It includes:
Acquisition module, for obtaining the run-length data of vehicle, stroke time started including User ID, in a period of time, Stroke end time, stroke residence time, start of a run, stroke end;
Computing module, for according to stroke time started, stroke end time, which during stroke is in one week to calculate My god, the division of day and night of the day where at the end of day of the stroke where when starting, stroke, stroke when starting and the division of day and night at the end of stroke;
Screening module, for according to stroke time started and stroke residence time, finding out daily first stroke, daily final Stroke, daily first stay time are more than the stroke of time threshold;
Determining module, for determining the residence of user and place of working.
In some embodiments of the invention, the screening module, is used for:
The stroke in a period of time is ranked up according to the stroke time started;
According to the stroke time started, judge whether every stroke is first stroke of certain day and every stroke is no is The last item stroke of certain day;
Find out the stroke that daily first stay time is more than time threshold.
In some embodiments of the invention, the residence of user is determined, including:
The first attribute of each accumulation is calculated, first attribute includes:Starting point is the stroke frequency of the accumulation, daily head Start of a run is that the number of the accumulation, the number that daily final stroke end is the accumulation and user stop in the average daily of the accumulation Stay duration;
According to the first attribute of accumulation, the residence of user is determined.
In some embodiments of the invention, user includes in the computational methods of the average daily stay time of the accumulation:
For each accumulation, the stroke that stroke end in a period of time is equal to the accumulation is screened, counts stopping for these strokes The summation of time is stayed, obtains the stay time summation of the accumulation;
Day counting user according to where at the end of stroke enlivens number of days;
With the stay time summation of the accumulation divided by number of days is enlivened, obtains average daily stay time of the user in the accumulation.
In some embodiments of the invention, the place of working of user is determined, including:
The second attribute of each accumulation is calculated, second attribute includes:Starting point is the stroke frequency of the accumulation, terminal is The stroke of the accumulation reaches period mode, user reaches number in the average daily stay time of the accumulation and the average daily of the accumulation;
According to the second attribute of accumulation, the place of working of user is determined.
In the third aspect of the present invention, the present invention provides a kind of electronic equipment, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processing Device realizes the method described in any of the above-described embodiment.
In the fourth aspect of the present invention, the present invention provides a kind of computer-readable mediums, are stored thereon with computer journey Sequence realizes the method described in any of the above-described embodiment when described program is executed by processor.
The residence of determining user provided in an embodiment of the present invention and the method in place of working are by will be within a certain range Beginning or end is aggregated to is considered as an accumulation together, is avoided under the premise of required precision is kept and stops same place difference Truck position is considered as the problem of different location, the method for using product weightings to the judgement of residence so that most of car owner can Residence is found, the judgement in residence and place of working is combined, avoids that residence mistakenly is mistaken for company.Moreover, Method provided in an embodiment of the present invention determines the first attribute and the second attribute of accumulation by run-length data, and is based further on One attribute and the second attribute determine the residence and place of working of user.
Description of the drawings
Fig. 1 is the flow chart of the residence of the determining user provided in one embodiment of the invention and the method in place of working;
Fig. 2 is the structural representation of the residence of the determining user provided in one embodiment of the invention and the device in place of working Figure;
Fig. 3 is the electronic equipment according to the method for the residence and place of working based on determining user of the embodiment of the present invention Hardware architecture diagram.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference Attached drawing, the present invention is described in more detail.
It is the method for the residence and place of working of the determining user provided in one embodiment of the invention referring to Fig. 1 Flow chart.As one embodiment of the present of invention, the method includes:
Step 101, the run-length data of vehicle is obtained, the run-length data includes User ID, the stroke in a period of time is opened Time beginning, stroke end time, stroke residence time, start of a run, stroke end.
It is not enough to determine the residence and place of working of user, in some embodiments of the invention, institute according to single stroke State run-length data and refer to run-length data in one section of period, for example, one week, two weeks, one month, a season, half a year or one Run-length data in year.
Below by taking the run-length data in one month as an example, the run-length data of vehicle is obtained, the run-length data includes:Vehicle User ID, the stroke time started in one month, stroke end time, stroke residence time, start of a run, stroke it is whole Point.
As one embodiment of the present of invention, vehicle can be obtained from ubi_dw_cluster_point (stroke accumulation table) User ID, the stroke time started in time interval, stroke end time, stroke residence time, start of a run, stroke it is whole Point etc., the table store information as unit of stroke, i.e. every stroke corresponds to an information.
For example, for a stroke, the field information of the stroke accumulation table includes:
Table 1
The stroke of one month is extracted according to stat_date (date field is accurate to the moon).Provided in an embodiment of the present invention In method, use stroke accumulation table field information include User ID, the stroke time started, the stroke end time, start of a run, It is stroke end, stroke residence time, specific as follows:
Table 2
About the stroke residence time, such as with one month 10 strokes, the 1st article of row are shared this moon for timing statistics section The end time of m- 1st article of stroke at the beginning of the stroke of the residence time of journey=2nd article, residence time of the 2nd article of stroke= The end time of m- 2nd article of stroke at the beginning of 3rd article of stroke, and residence time=0 of the 10th article of stroke.
As another embodiment of the present invention, the method further includes:The start of a run and stroke end are carried out Accumulation is numbered.Specifically, the step of accumulation number is:To the longitudes and latitudes of all starts of a run, stroke end into row distance It calculates, getting together apart near start of a run and stroke end, can be regarded as an accumulation, define one and be identically numbered 1;Again The near longitude and latitude of distance in remaining starting point, terminal is got together, can be regarded as an accumulation, defines an identical accumulation number 2, accumulation number 3,4,5 etc. is obtained successively.Beginning and end each so not only has longitude and latitude, also there is accumulation number.
There are two benefits for the work of progress accumulation number:1. some similar points are got together, judgment accuracy is improved; 2. longitude and latitude is two-dimentional, that is, two a point longitude, latitude values represent, and be with many position decimals , and an accumulation integer of number, convenient for using it in judgment step.
In the present invention, accumulation is the general name of beginning and end.Accumulation is more general than longitude and latitude, more succinctly, more there is representative Meaning.Even if for example, being all to be in downstairs, user can not possibly be parked in same position perfectness every time, and longitude and latitude is smart Degree is again very high, so if being determined by longitude and latitude, each position is all different, that is, is equivalent to user and often opens once Vehicle has just gone to different places, also can not just find the most position of the number stopped, this will obviously influence judging result.Cause This, the present invention is aggregated to the beginning or end within a certain range and is considered as an accumulation together, it is possible to family by accumulation A fritter range downstairs all can be regarded as an accumulation, and it is numbered, avoided under the premise of required precision is kept by The problem of same place difference parking position is considered as different location.Therefore, not only there are longitude and latitude in start of a run and stroke end, There is accumulation number.
Beginning or end within 1 kilometer is aggregated to by the trip accumulation table is considered as an accumulation together, is keeping precision The problem of same place difference parking position is considered as different location is avoided under the premise of it is required that.It is pointed out that 1 kilometer Within only one embodiment of the present invention, the beginning or end within 1.2 kilometers can also be aggregated to and be considered as one together Beginning or end within 2 kilometers can also be aggregated to and be considered as an accumulation together by a accumulation, and the present invention does not limit this System.
Due to the continuity of stroke, it is believed that the terminal of nth bar stroke is exactly the starting point of (n+1)th stroke, but n-th The longitude and latitude of the longitude and latitude of the terminal of stroke and starting point not equal to (n+1)th stroke, and be about equal to.This is because such as table Shown in 1 the 4th field and the 5th field, there are two the stroke time starteds:The vehicle duration of ignition and gps start the gathered data time. It should be pointed out that gps is just to start gathered data after stroke starts a period of time, therefore obtained starting point longitude and latitude It has been not equal to the longitude and latitude of upper stroke end.So after the accumulation number for obtaining residence and place of working, it is calculated Position when, be averaged using longitude and latitude of the stroke end for accumulation number, to improve accuracy.
Step 102, according to stroke time started, stroke end time, which day, stroke during stroke is in one week are calculated The division of day and night at the end of division of day and night and stroke when day, stroke where at the end of day, stroke where during beginning start.
It should be pointed out that in stroke accumulation table, 1970.01.01 is the unix first year, the time number in stroke accumulation table 1970.01.01 is as timing origin, i.e. 1970-01-01 00 according to this:00:00 arrives the number of seconds of current time, in this step, Time data in stroke accumulation table is converted into corresponding " year, month, day, hour, min, second and what day ".
When in evaluation work, workaday data (the week) are only used sometimes, so needing to gather according to stroke It is that week is several that the 5th field in point table --- the temporal information of stroke time started (actual_start), which obtains it, (27.WEEKDAY)。
The stroke time started (actual_start) refers to from 1970-01-01 00:00:00 to current time, (stroke is opened Begin the time) number of seconds.Programming language used in the present invention is R language, it carries some ready-made kits and function.Specifically Method can be:First, actual_start is become using as.POSIXlt functions the form of date Hour Minute Second, then profit It is all several (27.WEEKDAY) to obtain this day with wday functions.
According to stroke time started (actual_start) and stroke end time (s_end), row can also be calculated respectively Day (28.start_adj) where when journey starts and at the end of where day (29.end_adj).
Specifically, computational methods are:
Start_adj=(actual_start+8 × 3600)/60/60/24-4/24
End_adj=(s_end+8 × 3600)/60/60/24-4/24
Namely with assigning to present number of seconds in 1 day 0: 0 January in 1970 divided by 60 obtain the number of minutes, then divided by 60 obtain it is small When number, then divided by 24 obtain number of days, wherein additional 8 × 3600 be the time difference because Beijing is eastern eight time zones, the time difference 8 hours, subtract 4/24 be because it is contemplated that people's activity till now it is more and more late, may overtime work to 1 point of morning or object for appreciation Just go home for 1 point to morning, so the present invention is using 0 point of morning as the cut-point of two days, but using 4:00 AM as The cut-point of two days.
According to stroke time started (actual_start) and stroke end time (s_end), row can also be calculated respectively Division of day and night (30.Start_Floor) when journey starts and at the end of division of day and night (31.End_Floor).
Specifically, computational methods are:
Start_Floor=floor ((a-floor (a)) * 24)
End_Floor=floor ((b-floor (b)) * 24)
Wherein:
A=(actual_start+8 × 3600)/60/60/24
B=(s_end+8 × 3600)/60/60/24
Floor is the meaning of rounding, and a-floor (a) is that number of days subtracts number of days rounding, obtains the fraction of number of days, (a- Floor (a)) * 24 it is that the fraction of number of days is scaled hour, floor ((a-floor (a)) * 24) is the integer for taking hour, this What sample obtained is exactly division of day and night when stroke starts, and the division of day and night at the end of stroke can similarly obtain.
To sum up, it can obtain:
Table 3
It should be noted that each statistical items in step 102 are all as unit of stroke, i.e., need to only be examined in calculating process Consider current stroke.
Step 103, according to stroke time started and stroke residence time, find out daily first stroke, daily final stroke, Daily first stay time is more than the stroke of time threshold.
In this step, stroke press user grouping, count certain user each stroke and stroke attribute (such as, if It is daily first stroke).That is, the calculating of step 103 is based on user, for example, (32.Is_First_St) whether It is daily first stroke, refers to whether this stroke is first stroke of this this day of user rather than all rows First stroke of this day of journey.
It is difficult to judge the position in residence and place of working when number of strokes is less, therefore, filters out number of strokes and be more than or equal to The user data of number of runs threshold value, and each user stroke interior for a period of time is ranked up according to the stroke time started. The number of runs threshold value can be 3,5,8 or 10 etc..Further, the accumulation that the frequency is more than frequency threshold value is filtered out. The frequency threshold value can be 2,3 or 4 etc..Therefore, summarize all starts of a run alternately accumulation, filter out number of runs More than or equal to the user of number of runs threshold value, and the frequency is more than the accumulation of frequency threshold value in the stroke of each user, such as screens Go out the user that number of runs is more than or equal to 5, and the frequency is more than 2 accumulation in the stroke of each user.
For example, user of the number of runs more than or equal to 5 and its run-length data are filtered out, and according to the stroke time started Each user stroke of one month is ranked up.If than (n-1)th, day stroke starts where at the beginning of nth bar stroke Extremely big 1 where time, i.e. start_adj (n)-start_adj (n-1)=1, then it is first of certain day to illustrate nth bar stroke Stroke, (n-1)th stroke are the last item strokes of the previous day,
If certain stroke is judged as being first stroke of certain day, then whether this stroke is daily first Stroke (32.Is_First_St) field puts 1, if certain stroke is judged as not being first stroke of certain day, then this Whether stroke is that daily first stroke (32.Is_First_St) field is set to 0.
If certain stroke is judged as being the last item stroke of certain day, then whether this stroke is daily last One stroke (33.Is_Last_St) field puts 1, if certain stroke is judged as not being the last item stroke of certain day, that Whether this stroke is that daily the last item stroke (33.Is_Last_St) field is set to 0.
If the stay time (22.dura2) of certain stroke more than 2h, and be first stroke of one day (i.e. 1) 32.Is_First_St field values is, then the trip is that this day first stay time is more than the stroke of 2h, 34.Is_ The value of First_long_trip puts 1, so as to find out " stroke that daily first stay time is more than 2h ".
It should be pointed out that the above method has only judged whether first stroke meets condition, if first stroke is unsatisfactory for Condition (stay time is not more than 2h), then continue to judge the 2nd article of stroke, and until finding, " daily first stay time is more than 2h's Stroke ", and the value of 34.Is_First_long_trip is put 1.
It may also be noted that stay time threshold value 2h is only exemplary or 2.5h, 3h or 3.8h Deng time threshold can be pre-set, so as to find the stroke that daily first stay time is more than time threshold.
To sum up, following information can be obtained:
Table 4
Step 104, the accumulation where residence and place of working is determined.
In this step, as unit of accumulation, i.e.,:Summarize all accumulations of each user first, then count this respectively The attribute of a little accumulations, for example, the frequency, residence time etc..
Residence and place of working should form one in the terminus of all strokes, therefore according to the starting point of all strokes A accumulation list, about the judgement of residence, if some accumulation is residence, then its frequency can be higher, stops Stay the time long, and it should be the nightspot excessively of vehicle.In other words, as the starting point of daily first stroke, daily The terminal of the last item stroke.
As one embodiment of the present of invention, the residence of user is determined, including:
The first attribute of each accumulation is calculated, first attribute includes:Starting point is the stroke frequency of the accumulation, daily head Start of a run is that the number of the accumulation, the number that daily final stroke end is the accumulation and user stop in the average daily of the accumulation Stay duration;
According to the first attribute of accumulation, the residence of user is determined.
Therefore, for each accumulation, several indexs of measurement are as follows:
Table 5
It should be noted that the stay time in table 1,2,4 refers to single stay time, and the stay time of the accumulation is Refer to the summation of the stay time of the accumulation in a period of time.
The computational methods of each index are as follows:
Starting point is the stroke frequency freq of the accumulation:
The starting point of this month all strokes of the user is counted, calculates the frequency of each point, obtains the stroke that starting point is the accumulation The frequency.
Daily first start of a run is the number ft_st of the accumulation:
Daily first stroke is screened according to (32.Is_First_St), counts the starting point of the stroke filtered out, statistics is each The frequency of starting point obtains the number that daily first start of a run is the accumulation.
Daily final stroke end is the number lt_en of the accumulation:
Daily final stroke is screened according to (33.Is_Last_St), counts the terminal of the stroke filtered out, counts each whole The frequency of point obtains the number that daily final stroke end is the accumulation.
In the average daily stay time time_active_perday of the accumulation:
1) it for each accumulation, screens this month stroke end and is equal to the stroke of the accumulation, count stopping for these strokes of this month The summation of the summation of time (22.dura2), i.e. stay time is stayed, obtains the stay time summation of the accumulation.
2) number of days is enlivened by day (29.end_adj) counting user moon according to where at the end of stroke:Count all (29.end_adj) field obtains the day where all strokes of the user, i.e., all active days.First all active days are taken Integer that is, being counted as the 1st day the 1.1st day, the 1.25th day, the 1.8th day, then removes the day repeated, finally Count active number of days.
3) it is calculated above to have obtained enlivening number of days in this month in total stay time of the accumulation and user, with the accumulation Stay time summation divided by number of days is enlivened, obtain average daily stay time of the user in the accumulation.
Under normal conditions, each user should have residence, take rigid index if it is These parameters, threshold value is too small It might have non-place of abode and be judged as residence, threshold value is too big again probably due to user month stroke is less and can not find residence Residence.Therefore, each is not required respectively using a soft-threshold here, but all indexs of comprehensive descision, it selects most As, so the score for calculating each accumulation according to four above, above four proportions be:1:1.5:1.5:20, i.e.,
Score=freq+1.5*ft_st+1.5*lt_en+20*time_active_perday
Finally, the score of each accumulation can be obtained, the ranking accumulation of the first two is selected, when the score for the accumulation being number two> During the score of=0.8 times of the accumulation to rank the first, the two accumulations are taken respectively as residence 1 and residence 2, otherwise, choosing The accumulation to rank the first is taken as residence 1.
It is different from the judgement of residence, because not all user centainly has fixed working place, that is to say, that have A little vehicles may not be commuting vehicle, therefore not need to one and be set to each user to determine place of working, so here for work The rule on ground employs the limitation of some hardness, and statistical time range only includes working day.
As yet another embodiment of the present invention, the place of working of user is determined, including:
The second attribute of each accumulation is calculated, second attribute includes:Starting point is the stroke frequency of the accumulation, terminal is The stroke of the accumulation reaches period mode, user reaches number in the average daily stay time of the accumulation and the average daily of the accumulation;
According to the second attribute of accumulation, the place of working of user is determined.
For example, on weekdays, the accumulation for being marked as place of working is more than 2h marked as daily first stay time The quantity ranking label of first three in the set of stroke end, terminal reach period mode between [7,15] for the stroke of the accumulation, Average daily stay time [2/24 ,+∞), it is average daily reach number [4/22.75 ,+∞).
Specifying information difference is as follows:
Table 6
It should be pointed out that a people is if there is fixed working place, then his morning first thing is exactly to go to work, institute To find out first stroke end in this step, but he is possible to first on the way buy breakfast, but he buys the time of breakfast not Can be more than 2h, place of working would not be mistakenly considered by breakfast booth by being more than 2h by sets requirement.
As unit of accumulation, circular is as follows:
Starting point is the stroke frequency Freq of the accumulation:
The starting point of this month all strokes of the user is counted, calculates the frequency of each point.
Terminal reaches period mode Aarive_time_workday for the stroke of the accumulation:
The stroke that terminal is the accumulation is obtained, further according to (27.WEEKDAY) field filter work daily travel, counts these The arrival period of stroke, and these frequencies for reaching the period are further counted, find the arrival period of frequency maximum, as terminal Stroke for the accumulation reaches period mode.
In the average daily stay time time_perWorkday of the accumulation:
The stroke that terminal is the accumulation is obtained, further according to (27.WEEKDAY) field filter work daily travel, counts these The sum of stay time of stroke divided by working day online number of days are to get to the average daily stay time time_ of the accumulation perWorkday。
The average daily of the accumulation reaches number times_perWorkday:
The stroke that terminal is the accumulation is obtained, further according to (27.WEEKDAY) field filter work daily travel, statistics screening Number of strokes divided by working day online number of days reach number times_perWorkday to get to the average daily of the accumulation.
In addition to this, because many residences also all meet above-mentioned condition, in order to avoid residence is judged as place of working, So increase a condition:The accumulation in place of working cannot be the accumulation of residence, because the distance between accumulation is 1 kilometer, greatly The place of working and residence of groups of people be not in an accumulation.
After accumulation where determining residence and place of working, it is possible to calculate the location information of each accumulation.
Optionally, using longitude and latitude of the average value of the longitude and latitude for the stroke end for reaching the accumulation as the accumulation, and The address descriptor (such as provinces and cities, block) of the point is calculated by inverse geocoding.
It can be seen that the residence of determining user provided in an embodiment of the present invention and the method in place of working are by by certain model Beginning or end within enclosing is aggregated to is considered as an accumulation together, is avoided by same under the premise of required precision is kept The problem of different parking positions of point are considered as different location, the method that product weightings are used to the judgement of residence so that most of Car owner can find residence, and the judgement in residence and place of working is combined, and avoid that residence mistakenly is mistaken for public affairs Department.Moreover, method provided in an embodiment of the present invention determines the first attribute and the second attribute of accumulation by run-length data, one is gone forward side by side Step determines the residence and place of working of user based on the first attribute and the second attribute.
The embodiment of the present invention additionally provides the residence of determining user a kind of and the device in place of working, including:
Acquisition module, for obtaining the run-length data of vehicle, stroke time started including User ID, in a period of time, Stroke end time, stroke residence time, start of a run, stroke end;
Computing module, for according to stroke time started, stroke end time, which during stroke is in one week to calculate My god, the division of day and night of the day where at the end of day of the stroke where when starting, stroke, stroke when starting and the division of day and night at the end of stroke;
Screening module, for according to stroke time started and stroke residence time, finding out daily first stroke, daily final Stroke, daily first stay time are more than the stroke of time threshold;
Determining module, for determining the residence of user and place of working.
In some embodiments of the invention, the screening module, is used for:
The stroke in a period of time is ranked up according to the stroke time started;
According to the stroke time started, judge whether every stroke is first stroke of certain day and every stroke is no is The last item stroke of certain day;
Find out the stroke that daily first stay time is more than time threshold.
In some embodiments of the invention, the residence of user is determined, including:
The first attribute of each accumulation is calculated, first attribute includes:Starting point is the stroke frequency of the accumulation, daily head Start of a run is that the number of the accumulation, the number that daily final stroke end is the accumulation and user stop in the average daily of the accumulation Stay duration;
According to the first attribute of accumulation, the residence of user is determined.
In some embodiments of the invention, user includes in the computational methods of the average daily stay time of the accumulation:
For each accumulation, the stroke that stroke end in a period of time is equal to the accumulation is screened, counts stopping for these strokes The summation of time is stayed, obtains the stay time summation of the accumulation;
Day counting user according to where at the end of stroke enlivens number of days;
With the stay time summation of the accumulation divided by number of days is enlivened, obtains average daily stay time of the user in the accumulation.
In some embodiments of the invention, the place of working of user is determined, including:
The second attribute of each accumulation is calculated, second attribute includes:Starting point is the stroke frequency of the accumulation, terminal is The stroke of the accumulation reaches period mode, user reaches number in the average daily stay time of the accumulation and the average daily of the accumulation;
According to the second attribute of accumulation, the place of working of user is determined.
Therefore, the residence of determining user provided in an embodiment of the present invention and the device in place of working by by a certain range with Interior beginning or end is aggregated to is considered as an accumulation together, is avoided under the premise of required precision is kept by same place not The problem of being considered as different location with parking position, the method that product weightings are used to the judgement of residence so that most of car owner Residence can be found, the judgement in residence and place of working is combined, avoids that residence mistakenly is mistaken for company.And And device provided in an embodiment of the present invention determines the first attribute and the second attribute of accumulation, and further base by run-length data The residence and place of working of user are accurately determined in the first attribute and the second attribute.
According to an embodiment of the invention, the present invention also provides a kind of electronic equipment and a kind of computer-readable storage medium Matter.
The electronic equipment of the present invention includes:At least one processor;And connect at least one processor communication Memory;Wherein, which is stored with the instruction that can be performed by a processor, and the instruction is by least one processor It performs, so that the method that at least one processor performs the residence and place of working of determining user provided by the present invention.
Computer-readable recording medium storage provided in an embodiment of the present invention has computer instruction, which is used for The method that computer is made to perform the residence and place of working of determining user provided by the present invention.
Fig. 3 is the electronic equipment of the method for the residence and place of working according to embodiments of the present invention based on determining user Hardware architecture diagram.As shown in figure 3, the electronic equipment includes:One or more processors 301 and memory 302, Fig. 3 In by taking a processor 301 as an example.Wherein, memory 302 is non-transient computer readable storage medium provided by the present invention Matter.The electronic equipment can also include:Input unit 303 and output device 304.
Processor 301, memory 302, input unit 303 and output device 304 can pass through bus or other modes It connects, in Fig. 3 for being connected by bus.
Memory 302 is used as a kind of computer readable storage medium, and journey is can perform available for storage software program, computer Sequence instructs and module, and such as with the method for the residence and place of working of the determining user in the embodiment of the present invention, corresponding program refers to Enable --- for example, acquisition module shown in Fig. 2, computing module, screening module and determining module.Processor 301 is deposited by operation Storage software program, instruction and module in the memory 302, so as to perform residence and place of working based on determining user The residence of determining user in the various function application of method and data processing, i.e. realization above method embodiment and work The method on ground.
Memory 302 can include storing program area and storage data field, wherein, storing program area can store operation system System, the required application program of at least one function.In addition, memory 302 can include high-speed random access memory, may be used also To include non-transient memory, a for example, at least disk memory, flush memory device or other non-transient solid-state memories Part.In some embodiments, memory 302 is optional including relative to the remotely located memory of processor 301, these are remotely deposited Reservoir can pass through network connection to the electronic equipment.The example of above-mentioned network include but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Output device 304 may include that display screen etc. shows equipment
One or more of module storages in the memory 302, are performed when by one or more processor 301 When, perform the method for realizing the residence and place of working of the determining user in above-mentioned any means embodiment.
The said goods can perform the method that the embodiment of the present invention is provided, and has the corresponding function module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present invention is provided.
Those of ordinary skills in the art should understand that:The discussion of any of the above embodiment is exemplary only, not It is intended to imply that the scope of the present disclosure is limited to these examples (including claim);Under the thinking of the present invention, above example Or it can also be combined between the technical characteristic in different embodiments, and there is different aspect present invention as described above Many other variations, in order to it is concise they do not provided in details.Therefore, all within the spirits and principles of the present invention, Any omission for being made, modification, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (12)

1. the residence of determining user a kind of and the method in place of working, which is characterized in that the method includes:
Obtain the run-length data of vehicle, stroke time started, stroke end time including User ID, in a period of time, stroke Residence time, start of a run, stroke end;
According to stroke time started, stroke end time, calculate where when which day, stroke of the stroke in one week start My god, the division of day and night of the day where at the end of stroke, stroke when starting and the division of day and night at the end of stroke;
According to stroke time started and stroke residence time, find out daily first stroke, daily final stroke, daily first item and stop Duration is more than the stroke of time threshold;
Determine the residence and place of working of user.
2. according to the method described in claim 1, it is characterized in that, according to stroke time started and stroke residence time, find out Daily first stroke, daily final stroke, daily first stay time are more than the stroke of time threshold, including:
The stroke in a period of time is ranked up according to the stroke time started;
According to the stroke time started, judge every stroke whether be certain day first stroke and every stroke it is no be certain day The last item stroke;
Find out the stroke that daily first stay time is more than time threshold.
3. according to the method described in claim 1, it is characterized in that, determine user residence, including:
The first attribute of each accumulation is calculated, first attribute includes:Starting point is the stroke frequency of the accumulation, daily first item row Cheng Qidian is the number of the accumulation, the number that daily final stroke end is the accumulation and user in the average daily stop of the accumulation It is long;
According to the first attribute of accumulation, the residence of user is determined.
4. according to the method described in claim 3, it is characterized in that, user the average daily stay time of the accumulation computational methods Including:
For each accumulation, the stroke that stroke end in a period of time is equal to the accumulation is screened, when counting the stop of these strokes Between summation, obtain the stay time summation of the accumulation;
Day counting user according to where at the end of stroke enlivens number of days;
With the stay time summation of the accumulation divided by number of days is enlivened, obtains average daily stay time of the user in the accumulation.
5. according to the method described in claim 1, it is characterized in that, determine user place of working, including:
The second attribute of each accumulation is calculated, second attribute includes:Starting point is the stroke frequency of the accumulation, terminal is that this is poly- The stroke of point reaches period mode, user reaches number in the average daily stay time of the accumulation and the average daily of the accumulation;
According to the second attribute of accumulation, the place of working of user is determined.
6. the residence of determining user a kind of and the device in place of working, which is characterized in that described device includes:
Acquisition module, for obtaining the run-length data of vehicle, the stroke time started including User ID, in a period of time, stroke End time, stroke residence time, start of a run, stroke end;
Computing module, for according to stroke time started, stroke end time, calculating which day, row during stroke is in one week The division of day and night at the end of division of day and night and stroke when day, stroke where at the end of day, stroke where when journey starts start;
Screening module, for according to stroke time started and stroke residence time, finding out daily first stroke, daily final line Journey, daily first stay time are more than the stroke of time threshold;
Determining module, for determining the residence of user and place of working.
7. device according to claim 6, which is characterized in that the screening module is used for:
The stroke in a period of time is ranked up according to the stroke time started;
According to the stroke time started, judge every stroke whether be certain day first stroke and every stroke it is no be certain day The last item stroke;
Find out the stroke that daily first stay time is more than time threshold.
8. device according to claim 6, which is characterized in that determine the residence of user, including:
The first attribute of each accumulation is calculated, first attribute includes:Starting point is the stroke frequency of the accumulation, daily first item row Cheng Qidian is the number of the accumulation, the number that daily final stroke end is the accumulation and user in the average daily stop of the accumulation It is long;
According to the first attribute of accumulation, the residence of user is determined.
9. device according to claim 8, which is characterized in that user is in the computational methods of the average daily stay time of the accumulation Including:
For each accumulation, the stroke that stroke end in a period of time is equal to the accumulation is screened, when counting the stop of these strokes Between summation, obtain the stay time summation of the accumulation;
Day counting user according to where at the end of stroke enlivens number of days;
With the stay time summation of the accumulation divided by number of days is enlivened, obtains average daily stay time of the user in the accumulation.
10. device according to claim 6, which is characterized in that determine the place of working of user, including:
The second attribute of each accumulation is calculated, second attribute includes:Starting point is the stroke frequency of the accumulation, terminal is that this is poly- The stroke of point reaches period mode, user reaches number in the average daily stay time of the accumulation and the average daily of the accumulation;
According to the second attribute of accumulation, the place of working of user is determined.
11. a kind of electronic equipment, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processors are real The now method as described in any in claim 1-5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-5 is realized during row.
CN201711321414.4A 2017-12-12 2017-12-12 The method and apparatus for determining the residence and place of working of user Pending CN108255944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711321414.4A CN108255944A (en) 2017-12-12 2017-12-12 The method and apparatus for determining the residence and place of working of user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711321414.4A CN108255944A (en) 2017-12-12 2017-12-12 The method and apparatus for determining the residence and place of working of user

Publications (1)

Publication Number Publication Date
CN108255944A true CN108255944A (en) 2018-07-06

Family

ID=62722543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711321414.4A Pending CN108255944A (en) 2017-12-12 2017-12-12 The method and apparatus for determining the residence and place of working of user

Country Status (1)

Country Link
CN (1) CN108255944A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984758A (en) * 2018-07-18 2018-12-11 江苏本能科技有限公司 Car owner's association address analysis method and system based on point identification
CN109547931A (en) * 2019-01-14 2019-03-29 浙江每日互动网络科技股份有限公司 Determine the server in mobile terminal location
CN110659808A (en) * 2019-08-30 2020-01-07 广东方纬科技有限公司 Traffic analysis method, system and storage medium based on vehicle travel data
CN111190984A (en) * 2019-12-30 2020-05-22 上海炬宏信息技术有限公司 Job and residence extraction method and device and computer readable storage medium
CN112288131A (en) * 2020-09-24 2021-01-29 和智信(山东)大数据科技有限公司 Bus stop optimization method, electronic device and computer-readable storage medium
CN112380906A (en) * 2020-10-19 2021-02-19 上汽通用五菱汽车股份有限公司 Method for determining user address based on driving data
CN112991804A (en) * 2019-12-18 2021-06-18 浙江大华技术股份有限公司 Stay area determination method and related device
CN117252633A (en) * 2023-11-20 2023-12-19 深圳联友科技有限公司 Marketing method and system for workplace identification based on Internet of vehicles data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595323A (en) * 2012-03-20 2012-07-18 北京交通发展研究中心 Method for obtaining resident travel characteristic parameter based on mobile phone positioning data
CN102629297A (en) * 2012-03-06 2012-08-08 北京建筑工程学院 Traveler activity rule analysis method based on stroke recognition
US8762102B2 (en) * 2010-09-30 2014-06-24 Fitbit, Inc. Methods and systems for generation and rendering interactive events having combined activity and location information
CN105142106A (en) * 2015-07-29 2015-12-09 西南交通大学 Traveler home-work location identification and trip chain depicting method based on mobile phone signaling data
CN107066458A (en) * 2016-08-26 2017-08-18 北京车网互联科技有限公司 A kind of Spatial dimensionality user portrait analysis method based on car networking data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8762102B2 (en) * 2010-09-30 2014-06-24 Fitbit, Inc. Methods and systems for generation and rendering interactive events having combined activity and location information
CN102629297A (en) * 2012-03-06 2012-08-08 北京建筑工程学院 Traveler activity rule analysis method based on stroke recognition
CN102595323A (en) * 2012-03-20 2012-07-18 北京交通发展研究中心 Method for obtaining resident travel characteristic parameter based on mobile phone positioning data
CN105142106A (en) * 2015-07-29 2015-12-09 西南交通大学 Traveler home-work location identification and trip chain depicting method based on mobile phone signaling data
CN107066458A (en) * 2016-08-26 2017-08-18 北京车网互联科技有限公司 A kind of Spatial dimensionality user portrait analysis method based on car networking data

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984758A (en) * 2018-07-18 2018-12-11 江苏本能科技有限公司 Car owner's association address analysis method and system based on point identification
CN109547931A (en) * 2019-01-14 2019-03-29 浙江每日互动网络科技股份有限公司 Determine the server in mobile terminal location
CN110659808A (en) * 2019-08-30 2020-01-07 广东方纬科技有限公司 Traffic analysis method, system and storage medium based on vehicle travel data
CN112991804A (en) * 2019-12-18 2021-06-18 浙江大华技术股份有限公司 Stay area determination method and related device
CN112991804B (en) * 2019-12-18 2022-06-07 浙江大华技术股份有限公司 Stay area determination method and related device
CN111190984A (en) * 2019-12-30 2020-05-22 上海炬宏信息技术有限公司 Job and residence extraction method and device and computer readable storage medium
CN111190984B (en) * 2019-12-30 2024-03-08 北京世纪高通科技有限公司 Method and device for extracting job place and computer readable storage medium
CN112288131A (en) * 2020-09-24 2021-01-29 和智信(山东)大数据科技有限公司 Bus stop optimization method, electronic device and computer-readable storage medium
CN112288131B (en) * 2020-09-24 2021-06-11 和智信(山东)大数据科技有限公司 Bus stop optimization method, electronic device and computer-readable storage medium
CN112380906A (en) * 2020-10-19 2021-02-19 上汽通用五菱汽车股份有限公司 Method for determining user address based on driving data
CN117252633A (en) * 2023-11-20 2023-12-19 深圳联友科技有限公司 Marketing method and system for workplace identification based on Internet of vehicles data

Similar Documents

Publication Publication Date Title
CN108255944A (en) The method and apparatus for determining the residence and place of working of user
Alexander et al. Assessing the impact of real-time ridesharing on urban traffic using mobile phone data
Chang et al. Estimating real-time traffic carbon dioxide emissions based on intelligent transportation system technologies
CN105674994B (en) Method and device for obtaining driving route and navigation equipment
US9424515B2 (en) Predicting taxi utilization information
CN111806239A (en) Electric vehicle endurance mileage measuring method, electronic device, and storage medium
US9728015B2 (en) Fuel savings scoring system with remote real-time vehicle OBD monitoring
CN108780553A (en) System and method for determining target vehicle/supplier
CN104732765B (en) Urban road saturation degree method of real-time based on bayonet socket data
DE112010005182T5 (en) Navigation device, vehicle information display device and vehicle information display device
Ram et al. SMARTBUS: A web application for smart urban mobility and transportation
CN105117790A (en) Fare estimating method and apparatus
CN106022846A (en) Automobile insurance pricing method, second-hand automobile pricing method and corresponding devices
CN105632222A (en) Method and system for predicting station arrival time
CN111815096A (en) Shared automobile delivery method, electronic device and storage medium
CN110782656B (en) Road bottleneck point identification method and device, electronic equipment and storage medium
EP2560146A1 (en) System and method for visualising motor vehicle diagnosis and geopositional data
Jiang et al. A multi-period analysis of taxi drivers' behaviors based on GPS trajectories
Xiao et al. Exploring human mobility patterns and travel behavior: A focus on private cars
CN110716958A (en) Information processing method and device for violation high-incidence place reminding
CN111812306A (en) Oil product monitoring method, electronic equipment and storage medium
CN110223514B (en) Urban traffic running state analysis method and device and electronic equipment
CN111461200B (en) Event reminding method and device, electronic equipment and computer readable storage medium
CN111860929B (en) Method and system for estimating spelling rate of carpooling order
CN104077704A (en) System and method for collecting vehicle refueling information on basis of OBD devices of vehicles

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 1002-1, 10th floor, No.56, Beisihuan West Road, Haidian District, Beijing 100080

Applicant after: Ronglian Technology Group Co., Ltd

Applicant after: BEIJING CARSMART TECHNOLOGY Co.,Ltd.

Address before: 100080, Beijing, Haidian District, No. 56 West Fourth Ring Road, glorious Times Building, 10, 1002-1

Applicant before: UNITED ELECTRONICS Co.,Ltd.

Applicant before: BEIJING CARSMART TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706