Disclosure of Invention
The invention aims to provide a checking method based on subway active compensation, which changes the method of user active compensation in the prior art into subway active compensation, wherein the subway active compensation refers to that when a unilateral bill appears in the checking process, the method directly extends based on the unilateral bill to obtain a bilateral bill, and the user is not required to perform active compensation, so that the checking efficiency of a checking system is improved, and the riding experience of the user is also improved.
The method specifically comprises the following steps:
S1: obtaining a subway bill of passengers passing through the subway gate and a corresponding third party bill,
The subway bill comprises riding information, wherein the riding information comprises riding stations and corresponding riding time, and the riding time sequentially comprises values on four layers of year, month, day and time;
S2: checking the subway bill and a corresponding third party bill, if the subway bill is a unilateral bill, failing to check, and turning to step S3, and if the checking is successful, turning to step S1;
S3: extracting parameters of the unilateral bill to obtain attribute parameters related to the passenger identity identification code, carrying out parameter identification on the attribute parameters, if the attribute parameters are identified to be commonly used, turning to step S4, and if the attribute parameters are identified to be not commonly used, turning to step S5;
s4: the first two-sided bill is obtained based on the one-sided bill extension: obtaining historical riding information of passengers, matching the riding stations in the single-side bill and corresponding riding time with the numerical value of the historical riding information of the passengers on a time level to obtain a first double-side bill, and turning to step S6;
s5: obtaining a second double-sided bill based on single-sided bill extension: obtaining the lost riding information of passengers, and forming a team according to the riding stations in the unilateral bill, the corresponding riding time and the values of the lost riding information of the passengers on four layers of year, month, day and time to obtain a second bilateral bill, and turning to step S6;
s6: sending a deduction request to a corresponding third party platform according to the first bilateral bill or the second bilateral bill;
S7: and obtaining a third party bill corresponding to the first type of bilateral bill or the second type of bilateral bill, which is uploaded by the third party platform in response to the deduction request, and checking the first type of bilateral bill or the second type of bilateral bill.
Further, the specific process of obtaining the first double-sided bill based on the single-sided bill extension in S4 is as follows:
S41: the method comprises the steps of obtaining historical riding information of a passenger, and establishing a riding behavior model according to the historical riding information of the passenger, wherein the riding behavior model comprises a plurality of preselected riding groups, the preselected riding groups comprise passenger preselected stations and passenger preselected time periods corresponding to the riding preselected stations, and the passenger preselected time periods are time periods between different values of two historical riding times in a time hierarchy;
S42: judging whether the riding station in the unilateral bill is consistent with a preselected station of passengers in a preselected riding set and whether the riding time moment in the unilateral bill falls into a preselected time period of the passengers in the preselected riding set, if so, turning to a step S43;
s43: and generating a first bilateral bill according to the preselected stations of passengers in the preselected train set.
Further, the passenger preselection station comprises a passenger preselection station and a passenger preselection station, the corresponding passenger preselection time period comprises a passenger preselection outbound time period and a passenger preselection inbound time period, the passenger preselection outbound time period is a time period between different values of two historic outbound times at the moment level, the passenger preselection outbound time period is a time period between different values of the two historic inbound times at the moment level,
In S42, the specific determining process for determining whether the boarding point in the single-side bill is consistent with the preselected boarding point of the passenger in the preselected boarding group and whether the time of the boarding time in the single-side bill falls within the preselected time period of the passenger in the preselected boarding group is as follows:
If the riding station in the unilateral bill is a station, judging whether the station is the same as a pre-selected station of a passenger in the pre-selected passenger group, and judging whether the value of the station entering time corresponding to the station in a moment level is equal to the pre-selected station time period of the passenger corresponding to the pre-selected station of the passenger;
If the riding station in the unilateral bill is the outbound station, judging whether the outbound station is the same as the passenger pre-selected station in the pre-selected passenger car group, and judging whether the value of the outbound time corresponding to the outbound station in the time hierarchy is equal to the passenger pre-selected outbound time period corresponding to the passenger pre-selected station.
Further, in S43, generating the first type of bilateral bill according to the preselected station of the passengers in the preselected passenger train means that the preselected station of the passengers in the preselected passenger train is taken as the incoming station of the first bilateral bill, and the preselected station of the passengers in the preselected passenger train is taken as the outgoing station of the first bilateral bill.
Further, the specific process of obtaining the second double-sided bill based on the single-sided bill extension in S5 is as follows:
S51: obtaining a plurality of pieces of buffer riding information associated with the passenger identity identification code, wherein the buffer riding information comprises buffer stations and corresponding buffer riding time, the buffer riding information comprises riding information in a unilateral bill, and the buffer riding time sequentially comprises values on four layers of year, month, day and time;
S52: sequencing a plurality of pieces of buffer riding information from the morning to the evening according to the respective buffer riding time, the year, the month, the day and the time, and positioning the sequencing position of the riding information in the unilateral bill in the plurality of pieces of buffer riding information;
S53: sequentially and downwards judging whether a buffer station in the buffer riding information is complementary with a riding station in the unilateral bill or not from the sequencing position of the riding information, judging that the buffer riding time in the buffer riding information is the same as the riding time in the unilateral bill in terms of year, month and day, and the values are different in terms of time level, if yes, turning to a step S54;
s54: and generating a second double-side bill according to the single-side bill and the buffer riding information.
Furthermore, the buffer riding information is unilateral riding information provided by a security check end for verifying passengers passing through a subway gate, the buffer station is a buffer entering station or a buffer exiting station, the buffer riding time is buffer entering time or buffer exiting time,
The step S53 is a process of judging whether the buffer station in the buffer riding information is complementary to the riding station in the single-side bill, wherein the judging process is as follows:
When the bus taking station is a bus taking station in the unilateral bill, the buffer station in the buffer bus taking information is a buffer out station, and the buffer station is complemented with the bus taking station; when the bus taking station is the out station in the unilateral bill, the buffer station is the buffer in station in the buffer bus taking information, and the buffer station is complementary with the bus taking station.
Further, in S41, the specific process of establishing the riding behavior model according to the historical riding information of the passenger is:
The historical bus information of the passenger is associated with the identity code of the passenger, the historical bus information comprises a plurality of historical bus records, the historical bus records with the same passenger identity code are processed in a time period, the historical bus records consist of a historical station entering point, a historical station exiting point, historical station entering time corresponding to the historical station entering point and historical station exiting time corresponding to the historical station exiting point, and the historical station entering time and the historical station exiting time are different from the bus times in a unilateral bill in terms of year, month and day;
and counting the historical bus taking records with the same historical bus taking points and historical bus taking points in the historical bus taking records, generating a pre-selected bus taking time period according to the counted historical bus taking time in the historical bus taking records, taking the corresponding historical bus taking point as the pre-selected bus taking point corresponding to the pre-selected bus taking time period, generating a pre-selected bus taking time period according to the counted historical bus taking time, taking the corresponding historical bus taking point as the pre-selected bus taking point corresponding to the pre-selected bus taking time period, generating a pre-selected bus taking group, and constructing a bus taking behavior model.
Further, the specific process of generating a pre-selected passenger arrival time period according to the historical arrival time in the statistical historical bus record or generating a pre-selected passenger arrival time period according to the historical arrival time in the statistical historical bus record is as follows:
the historical arrival time and the historical arrival time in the historical bus records with the same historical arrival point and the historical arrival point are respectively sequenced in sequence from the early to the late on a time level, a time period between the values of the first historical arrival time and the last historical arrival time on the time level is used as a pre-selected arrival time period of the passengers, and the same time period between the values of the first historical arrival time and the last historical arrival time on the time level is used as a pre-selected arrival time period of the passengers.
Further, the specific process of generating a pre-selected passenger arrival time period according to the historical arrival time in the statistical historical bus record or generating a pre-selected passenger arrival time period according to the historical arrival time in the statistical historical bus record is as follows:
The method comprises the steps of sequentially sequencing historical arrival time and historical departure time in historical bus records with consistent historical arrival points and historical departure points from the early to the late on a time level, respectively expanding the historical arrival time at the sequencing middle position forwards and backwards on the time level according to a preset range value to form a passenger preselected arrival time period, and simultaneously expanding the historical departure time at the sequencing middle position forwards and backwards according to the preset range value to form a passenger preselected departure time period.
Further, the specific process of the reconciliation operation is as follows:
the subway bill comprises a plurality of pieces of subway record information, the third party bill comprises a plurality of pieces of third party record information, and each piece of subway record information corresponds to one piece of third party record information;
And searching third party record information corresponding to each piece of subway record information in each subway bill in the third party bill, and comparing each piece of third party record information with the corresponding subway record information.
The invention has the beneficial effects that:
The invention provides a checking method based on subway active compensation, which is characterized in that the subway active compensation mode of a passenger is set through attribute parameters preset by a user, and then checking operation is carried out according to bills after subway active compensation, so that the riding experience of the passenger can be improved, the checking efficiency can be improved, and the waste of labor cost of the passenger for checking the bills is avoided.
And the subway active compensation mode carries out bill compensation according to the characteristics of passengers, so that not only can the accuracy of bill compensation be improved, but also the riding experience of the passengers is improved.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
In addition, descriptions of well-known structures, functions and configurations may be omitted for clarity and conciseness. Those of ordinary skill in the art will recognize that various changes and modifications of the examples described herein can be made without departing from the spirit and scope of the present disclosure.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but should be considered part of the specification where appropriate.
In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of the exemplary embodiments may have different values.
The invention is described in detail below by reference to the attached drawings and in connection with the embodiments:
example 1
At present, some abnormal orders are generated in the riding process of passengers, for example, the OD data of the passengers is incompletely recorded, and the riding data of the adults are free of O or D (called unilateral data), so that the generated subway bill is called unilateral bill, when the subway bill is unilateral bill, the checking system cannot check the subway bill and the third bill, at the moment, the checking system is required to send a notification to a user, and the user needs to wait for the user to go to a BOM hall to carry out active supplementary check, and then the user's double-sided bill can be received to carry out the checking operation, as shown in fig. 1, the checking system is caused to delay checking, the checking efficiency is reduced, and the riding experience of the user is also reduced. Moreover, if the user is a user traveling with a subway which is not commonly used, the waiting time of the checking system is too long, and if the user does not actively complement for a long time, the checking system is further caused to delay.
Therefore, in order to improve riding experience of passengers, the invention provides the checking method based on the subway active compensation, wherein the subway active compensation mode of the passengers is set through the attribute parameters preset by users, and then checking operation is carried out according to the bills after the subway active compensation, so that not only can riding experience of the passengers be improved, but also checking efficiency can be improved, and the passengers are prevented from wasting labor cost to carry out bill compensation.
Specifically, as shown in fig. 2 and 3, the method specifically includes the following steps:
The method specifically comprises the following steps:
S1: obtaining a subway bill of passengers passing through the subway gate and a corresponding third party bill,
The subway bill comprises riding information, wherein the riding information comprises riding stations and corresponding riding time, and the riding time sequentially comprises values on four layers of year, month, day and time;
S2: checking the subway bill and a corresponding third party bill, if the subway bill is a unilateral bill, failing to check, and turning to step S3, and if the checking is successful, turning to step S1;
S3: extracting parameters of the unilateral bill to obtain attribute parameters related to the passenger identity identification code, carrying out parameter identification on the attribute parameters, if the attribute parameters are identified to be commonly used, turning to step S4, and if the attribute parameters are identified to be not commonly used, turning to step S5;
s4: the first two-sided bill is obtained based on the one-sided bill extension: obtaining historical riding information of passengers, matching the riding stations in the single-side bill and corresponding riding time with the numerical value of the historical riding information of the passengers on a time level to obtain a first double-side bill, and turning to step S6;
s5: obtaining a second double-sided bill based on single-sided bill extension: obtaining the lost riding information of passengers, and forming a team according to the riding stations in the unilateral bill, the corresponding riding time and the values of the lost riding information of the passengers on four layers of year, month, day and time to obtain a second bilateral bill, and turning to step S6;
s6: sending a deduction request to a corresponding third party platform according to the first bilateral bill or the second bilateral bill;
S7: and obtaining a third party bill corresponding to the first type of bilateral bill or the second type of bilateral bill, which is uploaded by the third party platform in response to the deduction request, and checking the first type of bilateral bill or the second type of bilateral bill.
Preferably, the specific process of obtaining the first double-sided bill based on the single-sided bill extension in S4 is as follows:
S41: the method comprises the steps of obtaining historical riding information of a passenger, and establishing a riding behavior model according to the historical riding information of the passenger, wherein the riding behavior model comprises a plurality of preselected riding groups, the preselected riding groups comprise passenger preselected stations and passenger preselected time periods corresponding to the riding preselected stations, and the passenger preselected time periods are time periods between different values of two historical riding times in a time hierarchy;
S42: judging whether the riding station in the unilateral bill is consistent with a preselected station of passengers in a preselected riding set and whether the riding time moment in the unilateral bill falls into a preselected time period of the passengers in the preselected riding set, if so, turning to a step S43;
s43: and generating a first bilateral bill according to the preselected stations of passengers in the preselected train set.
Preferably, the passenger preselection station comprises a passenger preselection station and a passenger preselection station, the corresponding passenger preselection time period comprises a passenger preselection outbound time period and a passenger preselection inbound time period, the passenger preselection outbound time period is a time period between different values of two historic outbound times at the moment level, the passenger preselection outbound time period is a time period between different values of the two historic inbound times at the moment level,
In S42, the specific determining process for determining whether the boarding point in the single-side bill is consistent with the preselected boarding point of the passenger in the preselected boarding group and whether the time of the boarding time in the single-side bill falls within the preselected time period of the passenger in the preselected boarding group is as follows:
If the riding station in the unilateral bill is a station, judging whether the station is the same as a pre-selected station of a passenger in the pre-selected passenger group, and judging whether the value of the station entering time corresponding to the station in a moment level is equal to the pre-selected station time period of the passenger corresponding to the pre-selected station of the passenger;
If the riding station in the unilateral bill is the outbound station, judging whether the outbound station is the same as the passenger pre-selected station in the pre-selected passenger car group, and judging whether the value of the outbound time corresponding to the outbound station in the time hierarchy is equal to the passenger pre-selected outbound time period corresponding to the passenger pre-selected station.
Preferably, in S43, generating the first type of bilateral bill according to the preselected station of the passengers in the preselected passenger group refers to taking the preselected station of the passengers in the preselected passenger group as the incoming station of the first bilateral bill and taking the preselected station of the passengers in the preselected passenger group as the outgoing station of the first bilateral bill.
Preferably, the specific process of obtaining the second double-sided bill based on the single-sided bill extension in S5 is as follows:
S51: obtaining a plurality of pieces of buffer riding information associated with the passenger identity identification code, wherein the buffer riding information comprises buffer stations and corresponding buffer riding time, the buffer riding information comprises riding information in a unilateral bill, and the buffer riding time sequentially comprises values on four layers of year, month, day and time;
S52: sequencing a plurality of pieces of buffer riding information from the morning to the evening according to the respective buffer riding time, the year, the month, the day and the time, and positioning the sequencing position of the riding information in the unilateral bill in the plurality of pieces of buffer riding information;
S53: sequentially and downwards judging whether a buffer station in the buffer riding information is complementary with a riding station in the unilateral bill or not from the sequencing position of the riding information, judging that the buffer riding time in the buffer riding information is the same as the riding time in the unilateral bill in terms of year, month and day, and the values are different in terms of time level, if yes, turning to a step S54;
s54: and generating a second double-side bill according to the single-side bill and the buffer riding information.
Preferably, the buffer riding information is unilateral riding information provided by a security check end for verifying passengers passing through a subway gate, the buffer station is a buffer entering station or a buffer exiting station, the buffer riding time is buffer entering time or buffer exiting time,
The step S53 is a process of judging whether the buffer station in the buffer riding information is complementary to the riding station in the single-side bill, wherein the judging process is as follows:
When the bus taking station is a bus taking station in the unilateral bill, the buffer station in the buffer bus taking information is a buffer out station, and the buffer station is complemented with the bus taking station; when the bus taking station is the out station in the unilateral bill, the buffer station is the buffer in station in the buffer bus taking information, and the buffer station is complementary with the bus taking station.
Preferably, in S41, the specific process of establishing the riding behavior model according to the historical riding information of the passenger is:
The historical bus information of the passenger is associated with the identity code of the passenger, the historical bus information comprises a plurality of historical bus records, the historical bus records with the same passenger identity code are processed in a time period, the historical bus records consist of a historical station entering point, a historical station exiting point, historical station entering time corresponding to the historical station entering point and historical station exiting time corresponding to the historical station exiting point, and the historical station entering time and the historical station exiting time are different from the bus times in a unilateral bill in terms of year, month and day;
and counting the historical bus taking records with the same historical bus taking points and historical bus taking points in the historical bus taking records, generating a pre-selected bus taking time period according to the counted historical bus taking time in the historical bus taking records, taking the corresponding historical bus taking point as the pre-selected bus taking point corresponding to the pre-selected bus taking time period, generating a pre-selected bus taking time period according to the counted historical bus taking time, taking the corresponding historical bus taking point as the pre-selected bus taking point corresponding to the pre-selected bus taking time period, generating a pre-selected bus taking group, and constructing a bus taking behavior model.
Preferably, the specific process of generating a pre-selected passenger arrival time period according to the historical arrival time in the statistical historical bus record or generating a pre-selected passenger arrival time period according to the historical arrival time in the statistical historical bus record is as follows:
the historical arrival time and the historical arrival time in the historical bus records with the same historical arrival point and the historical arrival point are respectively sequenced in sequence from the early to the late on a time level, a time period between the values of the first historical arrival time and the last historical arrival time on the time level is used as a pre-selected arrival time period of the passengers, and the same time period between the values of the first historical arrival time and the last historical arrival time on the time level is used as a pre-selected arrival time period of the passengers.
Preferably, the specific process of generating a pre-selected passenger arrival time period according to the historical arrival time in the statistical historical bus record or generating a pre-selected passenger arrival time period according to the historical arrival time in the statistical historical bus record is as follows:
The method comprises the steps of sequentially sequencing historical arrival time and historical departure time in historical bus records with consistent historical arrival points and historical departure points from the early to the late on a time level, respectively expanding the historical arrival time at the sequencing middle position forwards and backwards on the time level according to a preset range value to form a passenger preselected arrival time period, and simultaneously expanding the historical departure time at the sequencing middle position forwards and backwards according to the preset range value to form a passenger preselected departure time period.
Preferably, the specific process of the reconciliation operation is as follows:
the subway bill comprises a plurality of pieces of subway record information, the third party bill comprises a plurality of pieces of third party record information, and each piece of subway record information corresponds to one piece of third party record information;
And searching third party record information corresponding to each piece of subway record information in each subway bill in the third party bill, and comparing each piece of third party record information with the corresponding subway record information.
Based on the above principle, the present invention will be further elucidated:
Because, when the subway bill is unilateral bill, can lead to the subway to carry out the account checking with the third party platform when, at present, solve above-mentioned problem and generally be the suggestion passenger go to carry out initiative make-up to this unilateral bill, need wait that the passenger accomplish after making up, just can carry out account checking between subway and the third party platform, it is comparatively loaded down with trivial details to, can reduce passenger's riding experience, make passenger waste time and manpower.
Therefore, the method for actively subsidizing the users in the prior art is changed into the active subsidizing of the subways, wherein the active subsidizing of the subways means that when a single-side bill appears in the checking process, the single-side bill is directly extended to obtain a double-side bill, the active subsidizing of the users is not needed, the checking efficiency of the checking system is improved, and the riding experience of the users is also improved.
When the double-side bill is obtained by extending based on the single-side bill, the subway end can actively check and deduct money according to the double-side bill, and when the third party platform actively deducts money according to the double-side bill, the third party platform can also send information after successful deduction to the passenger, and if the passenger has objection to the deduction, the passenger can subsequently initiate complaints to the subway end.
Because the deduction mode is passively received for passengers, in order to more meet the riding experience of the passengers, the passengers based on different user characteristics preselect the corresponding subway active compensation method, so that the double-side bill obtained by extending the subway actively based on the single-side bill is more accurate, and when the passengers passively receive no objection after successful deduction, the event that the passengers initiate complaints to subway sections is reduced. The method comprises the steps that a user can preset attribute parameters when a subway APP submits a face reference image, so that the subway gate can obtain the attribute parameters when the face data of a passenger are identified, or the attribute parameters which are preset by the user at the subway APP are added to the two-dimension code, and the subway gate can obtain the attribute parameters when the two-dimension code data of the passenger are identified.
In summary, the present invention proposes two methods for actively selecting to perform corresponding subway active compensation based on user characteristics for obtaining a double-sided bill by extending based on a single-sided bill, and specifically, the method for extending based on a single-sided bill includes two methods, namely a first single-sided bill compensation method and a second single-sided bill compensation method, as follows:
The first unilateral bill complement method is as follows: training a riding behavior model through historical riding records of passengers, and estimating lost information of a single-side bill according to the riding behavior model to actively complement the single-side bill;
The second unilateral bill completion method comprises the following steps: the riding information and the passenger identification code are associated and cached through the security inspection end, and the information lost by the unilateral bill can be tracked through the passenger identification code, so that the unilateral bill is actively complemented.
It can be seen that the above two methods can be aimed at passengers with different characteristics, because the subway is currently taken as one of traffic choices for the travel of most passengers, so that the subway is universally provided with two passengers, one is a common passenger, and the other is an unusual passenger, wherein the common passenger adopts a fixed journey in the journey of the subway travel, for example, a executive, and the executive generally carries out the same riding process in the same time from monday to friday, therefore, the first unilateral bill complement method can be adopted for the common passenger to train historical riding information, obtain a riding behavior model of the passenger, and simulate the riding journey of the passenger through the riding behavior model. For the unusual passengers, the riding journey of the unusual passengers is generally not fixed, so that a second unilateral bill supplementing method can be adopted to track the missing information of the unilateral bill, and the unilateral bill can be supplemented more accurately.
Therefore, the invention provides different attribute parameters for the active compensation of the subway, the user characteristics of the subway are obtained by presetting the attribute parameters by the subway, and then the subway can select the active compensation method which is more suitable for the subway to carry out unilateral bill compensation, so that the riding experience of the subway is improved, and the accuracy of unilateral bill compensation is improved. Under the condition of the one-side bill compensation, the compensated bill is subjected to account checking and deduction, and after the bill is subjected to active deduction according to the compensated bill, a third party platform or a subway end can also send information after successful deduction to a passenger, and if the passenger has objection to the deduction, a complaint can be subsequently initiated to the subway end.
Specifically, as shown in fig. 4, the first unilateral bill completion method mainly trains and generates a riding behavior model aiming at the historical riding information of the passenger, so that the specific journey of the passenger in the unilateral bill is estimated, specifically, the bill consistent with the information in the unilateral bill can be matched in the historical bilateral bill of the passenger through the unilateral subway station and the riding time point in the unilateral bill, the historical bilateral bill is used as the riding bill of the current passenger by utilizing the riding behavior of the passenger, and because the riding time recorded in the subway bill is generally a time point and the actual riding time of the passenger has left-right offset, the invention carries out statistical processing on the historical riding information when the riding behavior model is established, so that the riding time in the historical bilateral bill matched with the unilateral bill of the passenger is a time period, and the matching accuracy of the model is improved.
In addition, when the riding behavior model is established, in order to improve the bill completion accuracy, one of a time period setting method in the maximum time range and a time period setting method in the preset time range is preferentially selected, and the two methods are specifically as follows:
The first method for setting the time period of the maximum time range is as follows: the historical arrival time and the historical arrival time in the historical bus records with the same historical arrival point and the historical arrival point are respectively sequenced in sequence from the early to the late on a time level, a time period between the values of the first historical arrival time and the last historical arrival time on the time level is used as an arrival time period, and the time period between the values of the first historical arrival time and the last historical arrival time on the time level is used as an arrival time period.
For example: the passenger A is a worker who walks on the three-street in the heaven and the sea-going road, and the passenger A walks on the sea from the sea-going road to the three-street in the heaven during monday, the arrival time is 8:30, and the departure time is 8:42; passenger A goes from Haichang road to Tianfu three street on Tuesday, the arrival time is 8:27, and the departure time is 8:37; passenger A goes from Haichang road to Tianfu three street in Wednesday, with arrival time of 8:31 and departure time of 8:52; passenger A goes from Haichang road to Tianfu three street on the four days, the arrival time is 8:20, and the departure time is 8:35; passenger A enters the road from Haichang to Tianfu three streets on friday with the time of entering the road at 8:22 and the time of exiting the road at 8:36;
The historical arrival time and the historical arrival time are sequentially ordered from the morning to the evening in a time hierarchy to obtain the first historical arrival time of 8:20 and the last historical arrival time of 8:31, and the time period of 8:20-8:31 is used as the arrival time period corresponding to the three streets of the passenger from the Haichang road to the Tianfu; as above, the first historical outbound time of the order is 8:35, and the last historical outbound time of the order is 8:52, and the time period of 8:35-8:52 is taken as the outbound time period corresponding to the three streets from the Haichang road to the Tianfu;
The fixed journey of the passenger A is that the passenger A enters the Haichang road in an entering time period 8:20-8:31 and leaves the three-street in an exiting time period 8:35-8:52, namely a preselected riding group in the riding behavior model is { Haichang road 8:20-8:31, three-street in the heaven 8:35-8:52}, when the entering point in a unilateral bill is Haichang road and the riding time falls into the range 8:20-8:31, the passenger A is judged to take the fixed journey, the three-street in the heaven is completed into the unilateral bill, and a time, such as an intermediate value, can be selected in the time period 8:35-8:52 as the exiting time of the passenger A in the three-street in the heaven; when the outbound point in the unilateral bill is the three-street of the Tianfu and the riding time falls within 8:35-8:52, the passenger A is judged to be riding the fixed journey, and the inbound point of the Haichang road is completed to the unilateral bill.
The second method for setting the time period in the preset time range is as follows: and the historical arrival time and the historical departure time in the historical bus records with the same historical arrival point and the historical departure point are respectively sequenced from the early to the late on a time level, the historical arrival time at the sequencing middle position is respectively extended forward and backward by a preset range value on the time level to form an arrival time period, and meanwhile, the time at the historical departure time point at the sequencing middle position is respectively extended forward and backward by the preset range value to form an departure time period.
For example: the passenger A is a worker who walks on the three-street in the heaven and the sea-going road, and the passenger A walks on the sea from the sea-going road to the three-street in the heaven during monday, the arrival time is 8:30, and the departure time is 8:42; passenger A goes from Haichang road to Tianfu three street on Tuesday, the arrival time is 8:27, and the departure time is 8:37; passenger A goes from Haichang road to Tianfu three street in Wednesday, with arrival time of 8:31 and departure time of 8:52; passenger A goes from Haichang road to Tianfu three street on the four days, the arrival time is 8:20, and the departure time is 8:35; passenger A enters the road from Haichang to Tianfu three streets on friday with the time of entering the road at 8:22 and the time of exiting the road at 8:36;
The historical inbound time and the historical outbound time are sequentially ordered from the early to the late on a time level, then the historical inbound time and the historical outbound time which are positioned in the intermediate position of the ordering are obtained to be 8:27, the historical outbound time is obtained to be 8:37, and the historical inbound time and the historical outbound time are expanded forwards and backwards according to a preset time range value, for example: the preset range value is 10 minutes, the historical inbound time at the sequencing middle position is respectively extended forwards and backwards by the preset range value on the moment level to form an inbound time period of 8:17-8:37; as above, the historical outbound time at the middle position of the sequence is respectively extended forward and backward by the preset range value on the time level to form an inbound time period of 8:27-8:47.
The passenger riding behavior can be trained under the two methods to obtain the passenger riding behavior model, so that the method can automatically complement the unilateral bill based on the passenger riding behavior model, train the model according to the passenger riding behavior, and improve the bill generation accuracy.
Specifically, as shown in fig. 5, the second unilateral bill completion method is mainly based on that the security check terminal actively completes unilateral bills, at present, when a subway operates, abnormal conditions such as subway network fluctuation and subway network upgrading maintenance occur in the subway network, when passengers in an abnormal time period enter and exit a gate, security check equipment still can complete security check work and verify passengers to pass, the influence of network fluctuation is avoided, but transmission information between the security check equipment and a single end of a subway account is influenced by the subway network, so that riding information is lost, namely the single end of the subway account does not receive the riding information, so that the subway bill generated by the subway bill terminal has a defect, and abnormal bills can be generated in the subsequent checking process.
Therefore, in the invention, when the gate performs verification work on the passenger, the passenger identity code is obtained according to the extracted passenger face data, and the current riding information and the passenger identity code are bound, so that the riding information can be tracked through the passenger identity code.
In the prior art, the security check end directly sends the current riding information of the passenger passing through the verification to the subway account single end, in this case, when the subway network is abnormal, the information transmission between the security check end and the subway account single end is affected by the subway network, so that the current riding information is not sent to the subway network, and therefore, the subway bill is extremely easy to generate a unilateral bill, which means that the subway network is abnormal when the passenger enters or exits.
Therefore, in the invention, the security check end not only binds the current riding information and the passenger identity identification code, but also caches the bound current riding information and passenger identity identification code at the security check end, and then sends the cached current riding information and passenger identity identification code to a subway account single end, concretely, when the passenger arrives at the station, the security check end receives the incoming information, analyzes the incoming information to obtain the current riding information and face data, verifies the face data, sends a brake opening request to a corresponding incoming brake after the verification is successful, and simultaneously obtains the passenger identity identification code according to the face data, wherein the passenger identity identification code can be a character string which is randomly generated and corresponds to the passenger face data one by one, binds the passenger identity identification code with the current riding information, and then sends the passenger identity identification code to the subway account single end, and the subway account single end generates a subway account incoming bill according to the current riding information, the single-end of the subway account can regularly pull the third party bill file, find the corresponding subway bill through the transaction serial number of the third party bill file, analyze the single-end bill to obtain the passenger identity code when checking the subway bill as the single-end bill, send the buffer riding information request to the security check end according to the passenger identity code to obtain a plurality of buffer riding information bound with the passenger identity code, in the embodiment, the buffer riding information refers to riding information generated by passengers in the single-end journey, and the riding information in the single-end bill is also generated under the single-end journey, so the riding information also exists in the single-end bill, and the riding information positioned in the bill in the buffer riding information queue arranged according to the time sequence, then, the unilateral riding information lost by the passenger in the riding process is tracked downwards, the unilateral riding information is formed by riding stations, a bilateral bill of the passenger can be accurately generated, and then the active deduction is carried out according to the bilateral bill, so that the accuracy of bill complement is improved, and the follow-up deduction is prevented from being wrong.
Example 2
An accounting system based on active compensation of subways, comprising:
Bill pulling module: obtaining a subway bill of a passenger passing through a subway gate and a corresponding third party bill, wherein the subway bill comprises riding information, the riding information comprises riding stations and corresponding riding time, and the riding time sequentially comprises values on four layers of year, month, day and time;
subway bill and third party bill reconciliation module: checking the subway bill and a corresponding third party bill;
Parameter identification extraction module of unilateral bill: extracting parameters of the unilateral bill to obtain attribute parameters related to the passenger identity code, and carrying out parameter identification on the attribute parameters;
Module for obtaining a first two-sided bill based on one-sided bill extension: obtaining historical riding information of passengers, and matching the riding stations in the single-side bill and corresponding riding time with the numerical value of the historical riding information of the passengers on a time level to obtain a first double-side bill;
module for obtaining a second double-sided bill based on single-sided bill extension: obtaining lost riding information of passengers, and forming a team according to riding stations in the unilateral bill, corresponding riding time and values of the lost riding information of the passengers on four layers of year, month, day and time to obtain a second bilateral bill;
And the deduction request module is used for: and sending a deduction request to a corresponding third party platform according to the first bilateral bill or the second bilateral bill.
The foregoing description of the preferred embodiment of the invention is not intended to limit the invention in any way, but rather to cover all modifications, equivalents, improvements and alternatives falling within the spirit and principles of the invention.