CN111930736B - Data verification method and device - Google Patents

Data verification method and device Download PDF

Info

Publication number
CN111930736B
CN111930736B CN202011020935.8A CN202011020935A CN111930736B CN 111930736 B CN111930736 B CN 111930736B CN 202011020935 A CN202011020935 A CN 202011020935A CN 111930736 B CN111930736 B CN 111930736B
Authority
CN
China
Prior art keywords
questionnaire
sample data
survey
data
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011020935.8A
Other languages
Chinese (zh)
Other versions
CN111930736A (en
Inventor
黎惟春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tianwei Big Data Technology Co ltd
Original Assignee
Shenzhen Tianwei Big Data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tianwei Big Data Technology Co ltd filed Critical Shenzhen Tianwei Big Data Technology Co ltd
Priority to CN202011020935.8A priority Critical patent/CN111930736B/en
Publication of CN111930736A publication Critical patent/CN111930736A/en
Application granted granted Critical
Publication of CN111930736B publication Critical patent/CN111930736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a data verification method and a device, and the method comprises the following steps: receiving sample data of a questionnaire survey sent by terminal equipment, wherein the sample data contains position information collected by the terminal equipment when a representative investigator uses the questionnaire survey to carry out an in-house survey on a user; determining the region to which the sample data belongs according to the sample data; if the area to which the sample data belongs is in the target area of the questionnaire survey, determining that the sample data is available; according to available sample data, determining the survey result of the questionnaire survey. Compared with the prior art, the method and the device have the advantages that the sample data in the target area is screened out according to the position data of the terminal device when the sample data of the questionnaire survey is collected, so that the survey result of the questionnaire survey is determined by using the sample data in the target area, and the accuracy of the survey result of the questionnaire survey is improved.

Description

Data verification method and device
Technical Field
The present application relates to the field of information technology, and in particular, to a data verification method and apparatus.
Background
Questionnaires generally represent the overall data by sample data and are an important survey method. The questionnaire survey has strong operability and a strict sampling method, so that the representativeness of the obtained sample data is stronger.
In the conventional questionnaire survey method, sample information input by a person to be surveyed is acquired through terminal equipment, the sample information is uploaded, and a server of a questionnaire survey system analyzes and processes the sample data to obtain a questionnaire survey result.
However, the server may receive sample data collected from a non-target area, thereby causing inaccurate survey results of the determined questionnaire.
Disclosure of Invention
The application provides a data verification method and device, which are used for solving the problem that the survey result of questionnaire survey in the prior art is inaccurate.
A first aspect of the present application provides a data verification method, including:
receiving sample data of a questionnaire survey sent by terminal equipment, wherein the sample data contains position information collected by the terminal equipment when a representative investigator uses the questionnaire survey to carry out an in-house survey on a user;
according to the sample data, determining a region to which the sample data belongs;
if the area to which the sample data belongs is in the target area of the questionnaire survey, determining that the sample data is available;
and determining the survey result of the questionnaire survey according to the available sample data.
In an optional implementation manner, after the determining the area where the terminal device is located, the method further includes:
if the area to which the sample data belongs is not in the target area of the questionnaire, determining that the sample data is unavailable;
unusable sample data is discarded.
In an optional embodiment, after said determining that said sample data is available, said method further comprises:
acquiring the accumulated quantity of the sample data of the questionnaire survey;
and adjusting the quota of the sample data of the questionnaire to be acquired in the target area according to the accumulated quantity of the sample data of the questionnaire.
In an optional implementation manner, after the adjusting the quota of the sample data of the questionnaire to be acquired in the target area, the method further includes:
if the quota of the sample data of the questionnaire survey to be acquired in the target area is less than or equal to zero, sending first indication information to the terminal equipment, wherein the first indication information is used for indicating that the questionnaire survey stops being used for carrying out the in-house survey on the user.
In an optional implementation manner, before receiving sample data of a questionnaire survey sent by the terminal device, the method further includes:
receiving an authorization request triggered by the investigator and sent by the terminal equipment, wherein the authorization request comprises initial position data of the terminal equipment when the authorization request is triggered, and the authorization request is used for requesting the investigator to use the questionnaire survey to start an in-user survey for a user;
and if the initial position data of the terminal equipment is in the electronic fence corresponding to the target area of the questionnaire survey, sending second indication information to the terminal equipment, wherein the second indication information is used for indicating the investigator to use the questionnaire survey to start the in-house survey of the user.
In an optional embodiment, the sample data of the questionnaire includes verification data, and the verification data is used to verify whether the sample data is tampered.
In an alternative embodiment, the verification data is generated by encrypting questionnaire information filled in by a user in the questionnaire survey when the questionnaire survey is stored.
In an optional embodiment, the questionnaire information includes at least one of the following: the name of the questionnaire writer, the age of the questionnaire writer, the sex of the questionnaire writer, the certificate information of the questionnaire writer and the position data of the terminal device.
In an optional implementation manner, after receiving sample data of a questionnaire survey sent by the terminal device, the method further includes:
decrypting the verification data by adopting a secret key to obtain decrypted questionnaire information;
and if the decrypted questionnaire information is consistent with the questionnaire information in the sample data, determining that the sample data is not tampered.
In an optional embodiment, after the obtaining the decrypted questionnaire information, the method further comprises:
and if the decrypted questionnaire information is inconsistent with the questionnaire information in the sample data, determining that the sample data is tampered.
In an optional implementation manner, the location data of the terminal device includes a longitude and latitude where the terminal device is located.
A first aspect of the present application provides a data verification apparatus, including:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving sample data of a questionnaire survey sent by terminal equipment, and the sample data contains position information collected by the terminal equipment when a representative investigator uses the questionnaire survey to carry out an in-user survey on a user;
the processing module is used for determining the area to which the sample data belongs according to the sample data; if the area to which the sample data belongs is in the target area of the questionnaire survey, determining that the sample data is available; and determining the survey result of the questionnaire survey according to the available sample data.
In an optional implementation manner, the processing module is further configured to determine that the sample data is unavailable if the area to which the sample data belongs is not within the target area of the questionnaire; unusable sample data is discarded.
In an optional implementation manner, the processing module is further configured to obtain a cumulative number of sample data of the questionnaire survey; and adjusting the quota of the sample data of the questionnaire to be acquired in the target area according to the accumulated quantity of the sample data of the questionnaire.
In an alternative embodiment, the apparatus further comprises:
and the sending module is used for sending first indication information to the terminal equipment if the quota of the sample data of the questionnaire survey to be acquired in the target area is less than or equal to zero, wherein the first indication information is used for indicating that the questionnaire survey is stopped to be used for carrying out the in-house survey on the user.
In an optional implementation manner, the receiving module is further configured to receive an authorization request triggered by the surveyor and sent by the terminal device, where the authorization request includes initial location data of the terminal device when the authorization request is triggered, and the authorization request is used to request that the surveyor use the questionnaire survey to start an entrance survey on a user;
the sending module is further configured to send second indication information to the terminal device if the initial position data of the terminal device is in the electronic fence corresponding to the target area of the questionnaire survey, where the second indication information is used for indicating the questionnaire survey to start an in-house survey of the user by the investigator.
In an optional embodiment, the sample data of the questionnaire includes verification data, and the verification data is used to verify whether the sample data is tampered.
In an alternative embodiment, the verification data is generated by encrypting questionnaire information filled in by a user in the questionnaire survey when the questionnaire survey is stored.
In an optional embodiment, the questionnaire information includes at least one of the following: the name of the questionnaire writer, the age of the questionnaire writer, the sex of the questionnaire writer, the certificate information of the questionnaire writer and the position data of the terminal device.
In an optional implementation manner, the processing module is further configured to decrypt the verification data by using a key, and obtain decrypted questionnaire information; and if the decrypted questionnaire information is consistent with the questionnaire information in the sample data, determining that the sample data is not tampered.
In an optional implementation manner, the processing module is further configured to determine that the sample data is tampered if the decrypted questionnaire information is inconsistent with the questionnaire information in the sample data.
In an optional implementation manner, the location data of the terminal device includes a longitude and latitude where the terminal device is located.
A third aspect of the present application provides an electronic device comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the electronic device to perform the data verification method described above.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions, which, when executed by a processor, implement the above-mentioned data verification method.
The application provides a data verification method and a device, and the method comprises the following steps: receiving sample data of a questionnaire survey sent by terminal equipment, wherein the sample data contains position information collected by the terminal equipment when a representative investigator uses the questionnaire survey to carry out an in-house survey on a user; determining the region to which the sample data belongs according to the sample data; if the area to which the sample data belongs is in the target area of the questionnaire survey, determining that the sample data is available; according to available sample data, determining the survey result of the questionnaire survey. Compared with the prior art, the method and the device have the advantages that the sample data in the target area is screened out according to the position data of the terminal device when the sample data of the questionnaire survey is collected, so that the survey result of the questionnaire survey is determined by using the sample data in the target area, and the accuracy of the survey result of the questionnaire survey is improved.
Drawings
Fig. 1 is a schematic view of a scenario of a data verification method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data verification method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another data verification method according to an embodiment of the present application;
fig. 4 is a signaling interaction diagram of a data verification method according to an embodiment of the present application;
fig. 5 is a signaling interaction diagram of another data verification method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another data verification method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a data verification apparatus according to an embodiment of the present application;
fig. 8 is a structural schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the embodiments of the present application, and it is obvious that the described embodiments are some but not all of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Questionnaires generally represent the overall data by sample data and are an important survey method. The questionnaire survey has strong operability and a strict sampling method, so that the representativeness of the obtained sample data is stronger.
In the conventional questionnaire survey method, sample information input by a person to be surveyed is acquired through terminal equipment, the sample information is uploaded, and a server of a questionnaire survey system analyzes and processes the sample data to obtain a questionnaire survey result. However, the server may receive sample data collected from a non-target area, thereby causing inaccurate survey results of the determined questionnaire.
In order to solve the above problem, embodiments of the present application provide a data verification method and apparatus, where, compared with the prior art, sample data of a questionnaire uploaded by a terminal device in the present application includes location information, and it is determined that only sample data belonging to a target area is available through verification of the location information. Therefore, the sample data which does not belong to the target area is avoided, and the accuracy of the survey result of the questionnaire survey is improved.
The following describes a usage scenario of the present application.
Fig. 1 is a scene schematic diagram of a data verification method according to an embodiment of the present application. As shown in fig. 1, at least one terminal device 101 and a server 102 are included. When performing a questionnaire survey, a surveyor uses the questionnaire survey to perform an in-house survey on a user through the terminal device 101, and after the user fills in the questionnaire survey, the terminal device 101 acquires sample data of the questionnaire survey and uploads the sample data of the questionnaire survey to the server 102. After receiving the sample data of the questionnaire, the server 102 processes the sample data of the questionnaire to determine the survey result of the questionnaire. If the questionnaire is only for the target area, the terminal device 101 needs to collect sample data of the questionnaire in the target area. Similarly, when receiving sample data of a questionnaire, the server 102 needs to verify location information corresponding to the sample data to ensure that the sample data is available.
The terminal device 101 may be a mobile phone (mobile phone), a tablet (pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in smart home (smart home), and the like. In the embodiment of the present application, the apparatus for implementing the function of the terminal may be a terminal device, or may be an apparatus capable of supporting the terminal to implement the function, for example, a chip system, and the apparatus may be installed in the terminal device. In the embodiment of the present application, the chip system may be composed of a chip, and may also include a chip and other discrete devices.
Server 102 may be, but is not limited to, a single web server, a server farm of multiple web servers, or a cloud of numerous computers or web servers based on cloud computing. Cloud computing is a kind of distributed computing, and is a super virtual computer composed of a group of loosely coupled computers.
It should be noted that, the application scenarios related to the embodiment of the present application are not limited, and the data verification method provided in the embodiment of the present application may also be applied to any other scenarios that need to perform location verification.
It is to be understood that the data verification method may be implemented by the data verification apparatus provided in this embodiment of the application, and the data verification apparatus may be a part or all of a certain device, for example, a processor of the second server or the server.
The following takes a server integrated or installed with relevant execution codes as an example, and details the technical solution of the embodiment of the present application with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a schematic flow chart of a data verification method provided in an embodiment of the present application, and the embodiment of the method shown in fig. 2 relates to a specific process of how a server determines a survey result of a questionnaire survey. As shown in fig. 2, the data verification method includes:
s201, receiving sample data of the questionnaire survey sent by the terminal equipment, wherein the sample data contains position information which represents that the terminal equipment collects when a questionnaire survey is used by a surveyor to conduct an in-house survey on a user.
In the application, the investigator can use the questionnaire survey to conduct an in-house survey on the user, and after the user fills in the questionnaire survey, the investigator can upload sample data of the questionnaire survey filled in by the user to the server by using the terminal device.
It should be noted that sample data of a questionnaire in the present application includes location information acquired by a terminal device, where the location information may be acquired by using a third-party map application, or may be acquired by using an application of the questionnaire itself, and this is not limited in this embodiment of the present application.
In some embodiments, the location data of the terminal device includes a latitude and longitude at which the terminal device is located.
S202, determining the area to which the sample data belongs according to the sample data.
In this step, when the server receives sample data of the questionnaire transmitted by the terminal device, the area to which the sample data belongs may be determined according to the location information in the sample data.
The embodiment of the present application does not limit how to determine the region to which the sample data belongs according to the sample data. For example, if the sample data includes the longitude and latitude where the terminal device is located, the location of the terminal device on the map may be determined based on the longitude and latitude where the terminal device is located. Subsequently, based on the area of the questionnaire divided in advance, the area to which the sample data belongs is determined.
And S203, if the area to which the sample data belongs is in the target area of the questionnaire, determining that the sample data is available.
The target area of the questionnaire survey may be an area where a user of sample data to be collected by the questionnaire survey is located, for example, a certain office building, a certain residential area, a certain park, and the like.
In this step, after the server determines the area to which the sample data belongs according to the sample data, it may be determined whether the area to which the sample data belongs is within a target area of the questionnaire, and if so, it is determined that the sample data is available.
In other embodiments, if it is determined that the region to which the sample data belongs is not within the target region of the questionnaire, it may be determined that the sample data is not available, at which point the server may discard the unavailable sample data.
In the embodiment of the present application, how to determine whether the area to which the sample data belongs is in the target area of the questionnaire survey is not limited, and for example, the latitude and longitude range of the area to which the sample data belongs may be compared with the latitude and longitude range of the target area of the questionnaire survey. And if the longitude and latitude range of the area to which the sample data belongs is not within the longitude and latitude range of the target area, determining that the area to which the sample data belongs is not within the target area of the questionnaire.
In other optional embodiments, before determining that the sample data is available, it may be checked whether the sample data is tampered. For example, the sample data of the questionnaire also contains verification data, and the verification data is used for verifying whether the sample data is tampered. The verification data is generated by encrypting questionnaire information filled in by a user in the questionnaire survey when the questionnaire survey is stored. After receiving the sample data of the questionnaire survey sent by the terminal device, the server can decrypt the verification data by using the key to obtain the decrypted questionnaire information. And if the decrypted questionnaire information is consistent with the questionnaire information in the sample data, determining that the sample data is not tampered.
Wherein the questionnaire information comprises at least one of the following: the name of the person who fills out the questionnaire, the age of the person who fills out the questionnaire, the sex of the person who fills out the questionnaire, the certificate information of the person who fills out the questionnaire, and the position data of the terminal device.
And S204, determining the survey result of the questionnaire survey according to the available sample data.
In this step, when it is determined whether the sample data is available, the server may determine the survey result of the questionnaire based on the available sample data after completing the collection of all available sample data.
In the embodiment of the present application, how to determine the survey result of the questionnaire survey is not limited, and a common sample data processing method may be adopted, for example, statistics, comparison, and calculation of target questionnaire information in sample data.
According to the data verification method, sample data of the questionnaire survey sent by the terminal device is received, and the sample data contains position information collected by the terminal device when a representative investigator uses the questionnaire survey to carry out an in-house survey on a user; determining the region to which the sample data belongs according to the sample data; if the area to which the sample data belongs is in the target area of the questionnaire survey, determining that the sample data is available; according to available sample data, determining the survey result of the questionnaire survey. Compared with the prior art, the method and the device have the advantages that the sample data in the target area is screened out according to the position data of the terminal device when the sample data of the questionnaire survey is collected, so that the survey result of the questionnaire survey is determined by using the sample data in the target area, and the accuracy of the survey result of the questionnaire survey is improved.
On the basis of the above embodiment, a specific description is given below as to how the server checks sample data of a questionnaire survey. Fig. 3 is a schematic flow chart of another data verification method provided in the embodiment of the present application, and as shown in fig. 3, the data verification method includes:
s301, receiving sample data of the questionnaire survey sent by the terminal equipment, wherein the sample data contains position information which represents that the terminal equipment collects when a questionnaire survey is used by a surveyor to conduct an in-house survey on a user.
S302, determining the area to which the sample data belongs according to the sample data.
S303, determining whether the area to which the sample data belongs is in the target area of the questionnaire survey.
If yes, executing steps S304-S305, otherwise executing steps S306-S307
S304, determining that the sample data is available.
S305, determining the survey result of the questionnaire survey according to the available sample data.
S306, determining that the sample data is unavailable.
And S307, discarding the unavailable sample data.
On the basis of the above embodiment, after the available sample data is determined, the quota of the sample data of the questionnaire can be further regulated by using the available sample data. The following is a detailed description of how to govern the quota of sample data for a questionnaire. Fig. 4 is a signaling interaction diagram of a data verification method provided in an embodiment of the present application, and as shown in fig. 4, the data verification method includes:
s401, the terminal equipment sends sample data of the questionnaire survey to the server, wherein the sample data contains position information which represents that the terminal equipment collects when the questionnaire survey is used by a surveyor to conduct an entrance survey on a user.
S402, the server determines the area to which the sample data belongs according to the sample data.
And S403, if the area to which the sample data belongs is in the target area of the questionnaire, the server determines that the sample data is available.
The technical terms, technical effects, technical features, and alternative embodiments of S401 to S403 can be understood with reference to S201 to S203 shown in fig. 2, and repeated descriptions thereof will not be repeated here.
S404, the server acquires the accumulated quantity of sample data of the questionnaire survey.
The accumulated amount of sample data may be the total amount of available sample data already stored by the server.
In this step, after determining that the sample data is available, the server may update the cumulative number of sample data and then obtain the cumulative number of sample data for the questionnaire survey.
It should be understood that, in the embodiment of the present application, there is no limitation on the frequency of obtaining the accumulated quantity of sample data of the questionnaire by the server, and in an alternative implementation, the server may obtain the accumulated quantity of sample data at a preset time interval, where the preset time interval is five minutes, for example. In another optional implementation, the server obtains the cumulative number of sample data once after determining that the sample data is available and updating the cumulative number of sample data each time.
S405, the server adjusts quota of sample data of the questionnaire to be acquired in the target area according to the accumulated quantity of the sample data of the questionnaire.
In this step, after the server obtains the cumulative number of sample data of the questionnaire, the server may adjust the quota of the sample data of the questionnaire to be obtained in the target area according to the cumulative number of sample data of the questionnaire.
It should be understood that the quota of sample data for a questionnaire may be the number of sample data for the questionnaire that remains to be acquired for the target area.
The embodiment of the application does not limit how to adjust the quota of the sample data of the questionnaire to be acquired in the target area. For example, the total amount of sample data of a questionnaire to be acquired may be preset in the server, and the server may subtract the accumulated number of sample data of the questionnaire from the total amount of sample data of the questionnaire to be acquired to determine a quota of sample data of a current questionnaire.
S406, if the quota of the sample data of the questionnaire survey to be acquired in the target area is less than or equal to zero, the server sends first indication information to the terminal equipment, wherein the first indication information is used for indicating that the questionnaire survey is stopped to carry out the in-house survey on the user.
In this step, after the server adjusts the quota of the sample data of the questionnaire to be acquired in the target area, if the quota of the sample data of the questionnaire to be acquired in the target area is less than or equal to zero, it may be determined that the server has acquired enough sample data, and at this time, the server may send first indication information to the terminal device, and instruct the terminal device to stop using the questionnaire survey to perform user-entry survey on the user.
According to the data verification method and device provided by the embodiment of the application, after the server determines available sample data, the accumulated quantity of the sample data of the questionnaire survey can be acquired. And then, the server adjusts the quota of the sample data of the questionnaire to be acquired in the target area according to the accumulated quantity of the sample data of the questionnaire. If the quota of the sample data of the questionnaire survey to be acquired in the target area is less than or equal to zero, the server sends first indication information to the terminal equipment, wherein the first indication information is used for indicating that the questionnaire survey is stopped to carry out the in-house survey on the user. By the mode, the server can adjust the quota of the sample data of the questionnaire in real time based on the available sample data which is checked, and the questionnaire is indicated to be stopped when the quota of the sample data of the questionnaire is less than or equal to zero, so that the generation of extra workload is avoided.
On the basis of the above embodiments, in order to ensure that the user of the questionnaire survey is always within the target area, the server may further check initial location data where the terminal device is located when starting the questionnaire survey, and only if the initial location of the terminal device is within the target area, the server may authorize the investigator using the terminal device to start the user-in survey using the questionnaire survey. Fig. 5 is a signaling interaction diagram of another data verification method provided in an embodiment of the present application, and as shown in fig. 5, the data verification method includes:
s501, the terminal device sends an authorization request triggered by an investigator to the server, the authorization request comprises initial position data of the terminal device when the authorization request is triggered, and the authorization request is used for requesting the investigator to use questionnaire survey to start an in-house survey for a user.
In the present application, before the investigator starts to perform the in-house investigation on the user by using questionnaire investigation, the terminal device needs to be used to obtain authorization from the server.
For example, the questionnaire application may be opened by a questionnaire staff, an authorization button on an interface of the questionnaire application is clicked, and after detecting that the questionnaire clicks the authorization button, the terminal device may send an authorization request triggered by the questionnaire to the server to request the questionnaire staff to start an in-user survey on the user by using the questionnaire. The authorization request comprises initial position data of the terminal equipment when the authorization request is triggered.
And S502, if the initial position data of the terminal device is in the electronic fence corresponding to the target area of the questionnaire survey, the server sends second indication information to the terminal device, wherein the second indication information is used for indicating a surveyor to start an entrance survey for the user by using the questionnaire survey.
In the application, the server can set the electronic fence on a map in the server according to the target area of the questionnaire survey of the pre-device group. After the server receives the authorization request, the initial position data of the terminal equipment in the authorization request can be marked on the map, so that whether the initial position data are in the electronic fence corresponding to the target area of the questionnaire survey or not is judged. If yes, the server sends second indication information to the terminal device, and the investigator is instructed to use the questionnaire survey to start the user-in survey.
And S503, the terminal equipment sends sample data of the questionnaire survey to the server, wherein the sample data contains position information which represents that the terminal equipment collects when the questionnaire survey is used by a surveyor to conduct an entrance survey on the user.
S504, the server determines the area to which the sample data belongs according to the sample data.
And S505, if the area to which the sample data belongs is in the target area of the questionnaire, the server determines that the sample data is available.
S506, according to the available sample data, the server determines the survey result of the questionnaire survey.
The technical terms, technical effects, technical features and alternative embodiments of S503 to S506 can be understood by referring to S201 to S204 shown in fig. 2, and repeated descriptions thereof will not be repeated here.
According to the data verification method provided by the embodiment of the application, the terminal device sends an authorization request triggered by an investigator to the server, the authorization request comprises initial position data of the terminal device when the authorization request is triggered, and the authorization request is used for requesting the investigator to use questionnaire survey to start to perform user-in survey on a user. And if the initial position data of the terminal equipment is in the electronic fence corresponding to the target area of the questionnaire survey, the server sends second indication information to the terminal equipment, wherein the second indication information is used for the investigator to start the in-house survey on the user by using the questionnaire survey. By the method, the initial position of the surveyor can be verified before the surveyor starts to survey, so that the survey result of the questionnaire survey can be further ensured to be determined by only using the sample data in the target area, and the accuracy of the survey result of the questionnaire survey is improved.
On the basis of the above embodiment, in order to ensure that the questionnaire survey is not tampered with, the sample data provided in the embodiment of the present application further includes verification data. Fig. 6 is a schematic flow chart of another data verification method provided in an embodiment of the present application, where an execution main body of the embodiment is a server, and as shown in fig. 6, the data verification method includes:
s601, receiving sample data of the questionnaire sent by the terminal equipment, wherein the sample data of the questionnaire comprises verification data, and the verification data is used for verifying whether the sample data is tampered.
The verification data is generated by encrypting questionnaire information filled by users in the questionnaire during storage of the questionnaire. The questionnaire information includes at least one of the following: the name of the person who fills out the questionnaire, the age of the person who fills out the questionnaire, the sex of the person who fills out the questionnaire, the certificate information of the person who fills out the questionnaire, and the position data of the terminal device.
S602, decrypting the verification data by adopting the key to obtain the decrypted questionnaire information.
The embodiment of the application does not limit how to decrypt the verification data by using the key, and a common mode can be used according to actual conditions.
And S603, determining whether the decrypted questionnaire information is consistent with the questionnaire information in the sample data.
In this step, after obtaining the decrypted questionnaire information, the server may compare the decrypted questionnaire information with the questionnaire information in the sample data, and determine whether the decrypted questionnaire information is consistent with the questionnaire information in the sample data.
If yes, go to S604, otherwise go to S605.
S604, determining that the sample data is not tampered.
And S605, determining that the sample data is tampered.
According to the data verification method provided by the embodiment of the application, the sample data of the questionnaire comprises the verification data, and after the server receives the sample data, the verification data can be decrypted by adopting the secret key to obtain the decrypted questionnaire information. Then, the server determines whether the decrypted questionnaire information matches the questionnaire information in the sample data. And if so, determining that the sample data is not tampered. If not, the sample data is determined to be tampered. By the method, the sample data can be falsified, the information safety is improved, and the accuracy of the survey result of the questionnaire survey is further improved.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 7 is a schematic structural diagram of a data verification apparatus according to an embodiment of the present application. The data verification device may be implemented by software, hardware or a combination of the two, and may be, for example, a server or a chip of the server in the above embodiments, to perform the verification method in the above embodiments. As shown in fig. 7, the verification apparatus 700 includes:
the receiving module 701 is used for receiving sample data of the questionnaire survey sent by the terminal equipment, wherein the sample data contains position information which represents that when an investigator uses the questionnaire survey to perform an entrance survey on a user, the terminal equipment collects the sample data;
a processing module 702, configured to determine, according to sample data, an area to which the sample data belongs; if the area to which the sample data belongs is in the target area of the questionnaire survey, determining that the sample data is available; according to available sample data, determining the survey result of the questionnaire survey.
In an optional implementation manner, the processing module 702 is further configured to determine that the sample data is unavailable if the area to which the sample data belongs is not in the target area of the questionnaire survey; unusable sample data is discarded.
In an optional implementation, the processing module 702 is further configured to obtain a cumulative number of sample data of the questionnaire; and adjusting the quota of the sample data of the questionnaire to be acquired in the target area according to the accumulated quantity of the sample data of the questionnaire.
In an optional implementation, the verification apparatus 700 further includes:
the sending module 703 is configured to send, to the terminal device, first indication information if a quota of sample data of a questionnaire to be acquired in the target area is less than or equal to zero, where the first indication information is used to indicate that the questionnaire survey is stopped to perform an in-user survey on a user.
In an optional implementation manner, the receiving module 701 is further configured to receive an authorization request triggered by an investigator and sent by a terminal device, where the authorization request includes initial location data of the terminal device when the authorization request is triggered, and the authorization request is used to request the investigator to perform an entrance investigation on a user by using a questionnaire survey;
the sending module 703 is further configured to send second indication information to the terminal device if the initial position data of the terminal device is in the electronic fence corresponding to the target area of the questionnaire survey, where the second indication information is used to indicate that the questionnaire survey is used by a surveyor to start an entrance survey for the user.
In an optional implementation manner, the sample data of the questionnaire includes verification data, and the verification data is used for verifying whether the sample data is tampered.
In an alternative embodiment, the verification data is generated by encrypting questionnaire information filled in by a user in the questionnaire while the questionnaire is stored.
In an alternative embodiment, the questionnaire information includes at least one of the following: the name of the person who fills out the questionnaire, the age of the person who fills out the questionnaire, the sex of the person who fills out the questionnaire, the certificate information of the person who fills out the questionnaire, and the position data of the terminal device.
In an optional implementation manner, the processing module 702 is further configured to decrypt the verification data by using a secret key, and obtain decrypted questionnaire information; and if the decrypted questionnaire information is consistent with the questionnaire information in the sample data, determining that the sample data is not tampered.
In an optional implementation manner, the processing module is further configured to determine that the sample data is tampered if the decrypted questionnaire information is inconsistent with the questionnaire information in the sample data.
In an optional implementation manner, the location data of the terminal device includes a longitude and latitude where the terminal device is located.
The principle and technical effect of the data verification apparatus provided in this embodiment are similar to those of the data verification method, and are not described herein again.
Fig. 8 is a structural schematic diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 8, the electronic device may include: at least one processor 801 and a memory 802. Fig. 8 shows an electronic device as an example of a processor.
The memory 802 stores programs. In particular, the program may include program code including computer operating instructions.
Memory 802 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 801 is configured to execute computer-executable instructions stored in the memory 802 to implement the above data verification method;
the processor 801 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application.
Alternatively, in a specific implementation, if the communication interface, the memory 802 and the processor 801 are implemented independently, the communication interface, the memory 802 and the processor 801 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. Buses may be classified as address buses, data buses, control buses, etc., but do not represent only one bus or type of bus.
Alternatively, in a specific implementation, if the communication interface, the memory 802 and the processor 801 are integrated into a chip, the communication interface, the memory 802 and the processor 801 may complete communication through an internal interface.
The embodiment of the application also provides a chip which comprises a processor and an interface. Wherein the interface is used for inputting and outputting data or instructions processed by the processor. The processor is configured to perform the methods provided in the above method embodiments. The chip can be applied to a data verification device.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, are specifically, the computer-readable storage medium stores program information, and the program information is used in the data verification method.
Embodiments of the present application further provide a program, which when executed by a processor, is configured to perform the data verification method provided in the above method embodiments.
Embodiments of the present application further provide a program product, such as a computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the data verification method provided by the above method embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (14)

1. A method for data verification, comprising:
receiving an authorization request triggered by an investigator and sent by terminal equipment, wherein the authorization request comprises initial position data of the terminal equipment when the authorization request is triggered, and the authorization request is used for requesting the investigator to use questionnaire survey to start an in-user survey for a user;
if the initial position data of the terminal device is in an electronic fence corresponding to the target area of the questionnaire survey, sending second indication information to the terminal device, wherein the second indication information is used for indicating the investigator to use the questionnaire survey to start the user entering the questionnaire survey, and the electronic fence is used for determining the target area of the questionnaire survey on an electronic map;
receiving sample data of a questionnaire survey sent by terminal equipment, wherein the sample data contains position information collected by the terminal equipment when a representative investigator uses the questionnaire survey to carry out an in-house survey on a user;
according to the sample data, determining a region to which the sample data belongs;
if the area to which the sample data belongs is in the target area of the questionnaire survey, determining that the sample data is available;
acquiring the accumulated quantity of available sample data of the questionnaire;
adjusting the quota of the sample data of the questionnaire to be acquired in the target area according to the accumulated quantity of the available sample data of the questionnaire;
if the quota of the sample data of the questionnaire survey to be acquired in the target area is less than or equal to zero, sending first indication information to the terminal equipment, wherein the first indication information is used for indicating that the questionnaire survey is stopped to carry out the in-house survey on the user;
determining the survey result of the questionnaire survey according to available sample data;
wherein, the sample data of the questionnaire survey contains verification data, and the verification data is used for verifying whether the sample data is tampered; the verification data is generated by encrypting questionnaire information filled in by a user in the questionnaire survey when the questionnaire survey is stored.
2. The method of claim 1, wherein after the determining the area in which the terminal device is located, the method further comprises:
if the area to which the sample data belongs is not in the target area of the questionnaire, determining that the sample data is unavailable;
unusable sample data is discarded.
3. The method of claim 1, wherein the questionnaire information comprises at least one of: the name of the questionnaire writer, the age of the questionnaire writer, the sex of the questionnaire writer, the certificate information of the questionnaire writer and the position data of the terminal device.
4. The method according to claim 1 or 3, wherein after receiving sample data of a questionnaire transmitted by the terminal device, the method further comprises:
decrypting the verification data by adopting a secret key to obtain decrypted questionnaire information;
and if the decrypted questionnaire information is consistent with the questionnaire information in the sample data, determining that the sample data is not tampered.
5. The method of claim 4, wherein after the obtaining the decrypted questionnaire information, the method further comprises:
and if the decrypted questionnaire information is inconsistent with the questionnaire information in the sample data, determining that the sample data is tampered.
6. The method according to claim 1 or 2, characterized in that the location data of the terminal device comprises the latitude and longitude of the terminal device.
7. A data verification apparatus, comprising:
the system comprises a receiving module, a receiving module and a processing module, wherein the receiving module is used for receiving an authorization request triggered by an investigator and sent by a terminal device, the authorization request comprises initial position data of the terminal device when the authorization request is triggered, and the authorization request is used for requesting the investigator to use questionnaire survey to start an in-house survey on a user;
the sending module is further configured to send second indication information to the terminal device if the initial position data of the terminal device is in an electronic fence corresponding to a target area of the questionnaire survey, where the second indication information is used for indicating the questionnaire survey to start an entrance survey for a user by using the questionnaire survey, and the electronic fence is used for determining the target area of the questionnaire survey on an electronic map;
the receiving module is further used for receiving sample data of the questionnaire survey sent by the terminal equipment, wherein the sample data contains position information collected by the terminal equipment when a representative investigator uses the questionnaire survey to carry out an in-house survey on a user;
the processing module is used for determining the area to which the sample data belongs according to the sample data; if the area to which the sample data belongs is in the target area of the questionnaire survey, determining that the sample data is available; acquiring the accumulated quantity of available sample data of the questionnaire; adjusting the quota of the sample data of the questionnaire to be acquired in the target area according to the accumulated quantity of the available sample data of the questionnaire; determining the survey result of the questionnaire survey according to available sample data;
the sending module is further configured to send first indication information to the terminal device if a quota of sample data of the questionnaire survey to be acquired in the target area is less than or equal to zero, where the first indication information is used to indicate that the questionnaire survey is stopped being used for conducting an in-house survey on a user;
wherein, the sample data of the questionnaire survey contains verification data, and the verification data is used for verifying whether the sample data is tampered; the verification data is generated by encrypting questionnaire information filled in by a user in the questionnaire survey when the questionnaire survey is stored.
8. The apparatus according to claim 7, wherein the processing module is further configured to determine that the sample data is unavailable if the area to which the sample data belongs is not within the target area of the questionnaire; unusable sample data is discarded.
9. The apparatus of claim 7, wherein the questionnaire information comprises at least one of: the name of the questionnaire writer, the age of the questionnaire writer, the sex of the questionnaire writer, the certificate information of the questionnaire writer and the position data of the terminal device.
10. The apparatus according to claim 7 or 9, wherein the processing module is further configured to decrypt the verification data with a key to obtain decrypted questionnaire information; and if the decrypted questionnaire information is consistent with the questionnaire information in the sample data, determining that the sample data is not tampered.
11. The apparatus according to claim 10, wherein the processing module is further configured to determine that the sample data is tampered with if the decrypted questionnaire information is inconsistent with questionnaire information in the sample data.
12. The apparatus according to claim 7 or 8, wherein the location data of the terminal device comprises a latitude and longitude in which the terminal device is located.
13. An electronic device, comprising: a memory, a processor, and a transceiver;
the processor is used for being coupled with the memory, reading and executing the instructions in the memory to realize the method of any one of claims 1-6;
the transceiver is coupled to the processor, and the processor controls the transceiver to transmit and receive messages.
14. A computer-readable storage medium having computer instructions stored thereon which, when executed by a computer, cause the computer to perform the method of any of claims 1-6.
CN202011020935.8A 2020-09-25 2020-09-25 Data verification method and device Active CN111930736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011020935.8A CN111930736B (en) 2020-09-25 2020-09-25 Data verification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011020935.8A CN111930736B (en) 2020-09-25 2020-09-25 Data verification method and device

Publications (2)

Publication Number Publication Date
CN111930736A CN111930736A (en) 2020-11-13
CN111930736B true CN111930736B (en) 2021-06-01

Family

ID=73334197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011020935.8A Active CN111930736B (en) 2020-09-25 2020-09-25 Data verification method and device

Country Status (1)

Country Link
CN (1) CN111930736B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113159629A (en) * 2021-05-13 2021-07-23 平安国际智慧城市科技股份有限公司 Questionnaire statistical method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001358853A (en) * 2000-06-09 2001-12-26 Akihiko Uto Questionnaire method utilizing portable telephone and system thereof
CN1630259A (en) * 2003-12-15 2005-06-22 松下电器产业株式会社 Home agent apparatus, mobile router, communication system, and communication method
CN1729477A (en) * 2002-12-26 2006-02-01 日本烟草产业株式会社 Analyzing system, analyzing method in that system, and system for collecting examination results used for analyzing
CN109637122A (en) * 2018-10-19 2019-04-16 天津易华录信息技术有限公司 A kind of data processing method, equipment and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794491B (en) * 2010-01-20 2012-06-20 彭建学 Mobile target wireless tracking and positioning electronic fence system and tracking and positioning method thereof
CN102354422B (en) * 2011-10-19 2013-09-25 北京国创科视科技有限公司 Perimeter protection-oriented method for monitoring suspicious target
CN104794350A (en) * 2015-04-23 2015-07-22 中国科学院地理科学与资源研究所 System and method for evaluating comprehensive carrying capacity of region
CN105025036B (en) * 2015-08-07 2018-08-17 北京环度智慧智能技术研究所有限公司 A kind of Cognitive Aptitude Test value Internet-based encryption and transmission method
CN106570809A (en) * 2016-11-09 2017-04-19 长江工程监理咨询有限公司(湖北) Multi-characteristic-based electronic questionnaire system for reservoir region immigration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001358853A (en) * 2000-06-09 2001-12-26 Akihiko Uto Questionnaire method utilizing portable telephone and system thereof
CN1729477A (en) * 2002-12-26 2006-02-01 日本烟草产业株式会社 Analyzing system, analyzing method in that system, and system for collecting examination results used for analyzing
CN1630259A (en) * 2003-12-15 2005-06-22 松下电器产业株式会社 Home agent apparatus, mobile router, communication system, and communication method
CN109637122A (en) * 2018-10-19 2019-04-16 天津易华录信息技术有限公司 A kind of data processing method, equipment and system

Also Published As

Publication number Publication date
CN111930736A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN110691085B (en) Login method, login device, password management system and computer readable medium
JP5870471B2 (en) Method, apparatus, and system for sharing software between terminals
KR101785481B1 (en) Method for providing scraping service, server and system thereof
CN109474603B (en) Data packet grabbing processing method and terminal equipment
CN111861804A (en) Community management method, system, user terminal and management terminal
CN112953791B (en) Network detection method and device, electronic equipment and computer readable storage medium
CN111930736B (en) Data verification method and device
CN109491908B (en) Page detection method and device, electronic equipment and storage medium
CN110278273B (en) Multimedia file uploading method, device, terminal, server and storage medium
CN112511739B (en) Interactive information generation method and equipment
CN112631879A (en) Data acquisition method and device, computer readable medium and electronic equipment
CN112202739B (en) Flow monitoring method and device
CN108280024B (en) Flow distribution strategy testing method and device and electronic equipment
CN110781066B (en) User behavior analysis method, device, equipment and storage medium
CN109190396A (en) A kind of data automatic verification method, device and equipment
CN111090879B (en) Data processing method, device, readable storage medium, electronic equipment and system
US20210227277A1 (en) Generic streaming media device configured as set top box
CN115021916A (en) Data format verification method, device and system
US11283884B2 (en) Methods for the sharing of location data between a source device of a user and a third party's destination device, corresponding server, source device of a user, third party's destination device, and computer program
CN113010587A (en) Data source configuration method, device, terminal, server and medium
KR20150069182A (en) Mobile Forensics Integrity Proof and Evidence Management Method using Network Server
CN111047229A (en) Order distribution information processing method and system
CN116527284B (en) Data storage security determination method, device, equipment and storage medium
CN104813273A (en) Content display method, program, and content display system
CN112261659B (en) Control method and device for terminal and server, terminal and storage medium

Legal Events

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