CN113590982B - Verification problem generation method, device, equipment and storage medium - Google Patents

Verification problem generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113590982B
CN113590982B CN202110913870.8A CN202110913870A CN113590982B CN 113590982 B CN113590982 B CN 113590982B CN 202110913870 A CN202110913870 A CN 202110913870A CN 113590982 B CN113590982 B CN 113590982B
Authority
CN
China
Prior art keywords
template
information
object set
address information
target
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
CN202110913870.8A
Other languages
Chinese (zh)
Other versions
CN113590982A (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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202110913870.8A priority Critical patent/CN113590982B/en
Publication of CN113590982A publication Critical patent/CN113590982A/en
Application granted granted Critical
Publication of CN113590982B publication Critical patent/CN113590982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Remote Sensing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of data analysis, and provides a method, a device, equipment and a storage medium for generating verification problems. The method comprises the following steps: analyzing latitude and longitude information of an input address, searching a first object set in a first distance range of the latitude and longitude information according to problem information of a problem template, selecting a first target object of the problem template, searching a second object set which is outside the first distance range and is inside a second distance range corresponding to a central point according to the problem information of the problem template by taking an object outside the first target object in the first object set as a center, selecting a second target object of the problem template, filling the target object to an option position of the problem template, generating a target verification problem and feeding back the target verification problem to a user. The invention can generate verification problems according to the address input by the user, thereby accurately verifying the authenticity of the address. The invention also relates to the technical field of blockchain, and the target verification problem can be stored in a node of a blockchain.

Description

Verification problem generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data analysis, and in particular, to a method, an apparatus, a device, and a storage medium for generating a verification problem.
Background
Currently, in many business scenarios, for example, verification of the authenticity of the information input by the user is required, in the prior art, verification of the address information generally determines whether the address information input by the user exists in the electronic map, so as to determine the authenticity of the address, however, the method only can determine whether the address exists objectively, but cannot determine whether the address is the real address of the user, and how to generate a verification problem according to the address input by the user to verify the authenticity of the address becomes a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the foregoing, the present invention provides a method, apparatus, device, and storage medium for generating a verification problem, which aim to realize generation of the verification problem according to an address input by a user, thereby verifying the authenticity of the address.
To achieve the above object, the present invention provides a method for generating a verification problem, the method comprising:
when address information input by a user on a preset interface is received, analyzing the address information to obtain standard address information, and obtaining longitude and latitude information corresponding to the standard address information;
Reading a problem template from a preset template library, searching a first object set corresponding to problem information in the problem template in a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
searching a second object set which is outside the first distance range and corresponds to the problem information in the problem template in a second distance range by taking objects outside the first target object in the first object set as centers, and selecting a second target object of the problem template from the second object set;
And filling the first target object and the second target object to the option positions corresponding to the problem template, generating a target verification problem and feeding back the target verification problem to the user.
Preferably, the parsing the address information to obtain standard address information includes:
Inputting the address information into a preset electronic map, searching for specific position information of the address information in the electronic map, and acquiring names of all levels of administrative regions in an administrative region standard library where the address information is located according to the specific position information to obtain standard format address information corresponding to the address information.
Preferably, the problem template includes a first type problem template and/or a second type problem template, the searching for a first object set corresponding to the longitude and latitude information in a first distance range according to problem information of the problem template, and selecting a first target object of the problem template from the first object set includes:
Searching a first type object set corresponding to the longitude and latitude information in a first distance range according to the problem information of the first type problem template, acquiring the search heat value of each object in the first type object set, sorting, and selecting an object with the largest search heat value as a first target object of the first type problem template according to the sorting order; and/or
Searching a second type object set corresponding to the longitude and latitude information in a first distance range according to the problem information of the second type problem template, and randomly selecting an object from the second type object set as a first target object of the second type problem template.
Preferably, the method further comprises:
And when the longitude and latitude information is taken as the center and the first object set corresponding to the problem information in the problem template in the first distance range is not found, the problem template is reselected from the template library until the first object set corresponding to the problem template is found.
Preferably, the method further comprises:
When a second object set which is outside the first distance range and corresponds to the problem information in the problem template and is within a second distance range is not found by taking the objects which are outside the first target object in the first object set as the center, searching a second object set which is outside the second distance range and corresponds to the problem information in the problem template and is within a third distance range;
and when the second object set which is outside the second distance range and corresponds to the problem information in the problem template in the third distance range is not found, re-selecting the problem template from the template library until the second object set corresponding to the problem template is found.
Preferably, the selecting the second target object of the problem template from the second object set includes:
And executing the de-duplication operation on each object of the second object set based on a similarity algorithm, and randomly selecting a preset number of objects from the second object set after the de-duplication operation as the second target objects.
Preferably, the method further comprises:
Receiving an option selected by a user based on the target verification problem, entering a preset service interface for the user to handle subsequent services when the option selected by the user is a correct answer, and feeding back preset prompt information to the user when the option selected by the user is a wrong answer.
In order to achieve the above object, the present invention also provides a generation device of a verification problem, the generation device of the verification problem including:
and an analysis module: when receiving address information input by a user on a preset interface, analyzing the address information to obtain standard address information, and obtaining longitude and latitude information corresponding to the standard address information;
A first search module: the method comprises the steps of reading a problem template from a preset template library, searching a first object set corresponding to problem information of the problem template in a first distance range by taking longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
And a second searching module: the method comprises the steps of searching a second object set which is outside the first distance range and corresponds to problem information in the problem template in a second distance range by taking objects outside a first target object in the first object set as the center, and selecting a second target object of the problem template from the second object set;
The generation module is used for: and the first target object and the second target object are used for filling the first target object and the second target object into the option positions corresponding to the problem template, generating a target verification problem and feeding the target verification problem back to the user.
To achieve the above object, the present invention also provides an electronic device including:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a program executable by the at least one processor to enable the at least one processor to perform any steps of the method of generating a verification problem as described above.
In order to achieve the above object, the present invention also provides a computer-readable storage medium storing a generation program of an authentication problem, which when executed by a processor, implements any step of the generation method of an authentication problem as described above.
According to the method, the device, the equipment and the storage medium for generating the verification problem, the user inputs the longitude and latitude information of the address information and the problem template, the surrounding POI points or the road information are searched, and the verification problem is generated for the user to answer according to the search result and the problem template, so that the authenticity of the address information input by the user can be verified more accurately.
Drawings
FIG. 1 is a flow chart illustrating a preferred embodiment of a method for generating verification problems according to the present invention;
FIG. 2 is a block diagram of a preferred embodiment of a verification problem generating apparatus according to the present invention;
FIG. 3 is a schematic diagram of an electronic device according to a preferred embodiment of the present invention;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. 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 invention provides a method for generating verification problems. Referring to fig. 1, a method flow diagram of an embodiment of a method for generating a verification problem according to the present invention is shown. The method may be performed by an electronic device, which may be implemented in software and/or hardware. The generation method of the verification problem comprises the following steps:
step S10: when address information input by a user on a preset interface is received, the address information is analyzed to obtain standard address information, and longitude and latitude information corresponding to the standard address information is obtained.
In this embodiment, an interactive interface of related services is provided by a preset terminal (e.g., a self-service machine) for a user to transact services, so that in order to prevent information input by the user when transacting related services from being false information, verification of information (e.g., address information) input by the user is required. It can be understood that the practical application scenario of the scheme is not limited to this, but may be other business scenarios that need to check the authenticity of the address.
The business interaction interface is provided with an editing column for a user to input an address, when the address information input by the user in the editing column of the interface is received, the address information is analyzed, longitude and latitude information corresponding to the address information is obtained, and for example, the address information of the user is converted into longitude and latitude data through a geographic information system (Geographic Information System, GIS).
In one embodiment, said parsing said address information to obtain standard address information comprises:
Inputting the address information into a preset electronic map, searching for specific position information of the address information in the electronic map, and acquiring names of all levels of administrative regions in an administrative region standard library where the address information is located according to the specific position information to obtain standard format address information corresponding to the address information.
Because the address input by the user may be an address with an irregular format, the address information may be standardized, specifically, the text address input by the user is read out and input into a preset electronic map, the specific position of the address information in the electronic map is found, the names of all levels of administrative regions in the administrative region standard library where the address is located are obtained according to the position information, the names of all levels of administrative regions where the address is located are obtained, and the address standardization is completed to obtain the address information with a standard format. And then analyzing the standard address information to obtain longitude and latitude information corresponding to the address information, specifically, inputting the address information into the electronic map, namely, transmitting the standard address into a geographic information coding interface of the electronic map. And searching the longitude and latitude of the position where the address is located, and obtaining the longitude and latitude information of the address input by the user.
Further, the method further comprises: when the address information is failed to be analyzed, a preset prompt message is fed back to the user so as to remind the user to input the address information again.
Because the address information input by the user may have wrongly written words, the latitude and longitude information of the address cannot be analyzed, when the analysis of the address information fails, preset prompt information is fed back to the user, for example, "the address input by you may be wrong, please input the correct address again", so as to remind the user of inputting the address information again.
Step S20: reading a problem template from a preset template library, searching a first object set corresponding to problem information in the problem template in a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set.
In this embodiment, after acquiring latitude and longitude information corresponding to the address information of the user, the problem templates are read randomly from a template library, where relevant problem templates are stored, for example, "what scenic spots are near the address information", "what streets are near the address", and so on. The object may include POI information or road information, and according to the problem information of the problem template, the latitude and longitude information is taken as a center point, all POIs and road information corresponding to a first distance range (for example, a range of 3 km) corresponding to the latitude and longitude information are searched, and the points of interest (Point of Interest, POIs) in the geographic information system may be a house, a shop, a mailbox, a bus stop, and the like. For example, the problem of the problem template is "what business is about 3 km near the address information you input", and then a business within 3 km of the address is found.
Since the set of POIs found may include multiple types of POIs, e.g., businesses, industries, restaurants, utilities, etc., the road found may also include multiple roads. Therefore, any one object from all the searched POIs and road names can be randomly selected as the first target object, and the first target object is used as the correct option corresponding to the problem template in the embodiment, so that only one object from the first object set is needed to be selected as the first target object of the problem template.
In one embodiment, the problem template includes a first type problem template and/or a second type problem template, the searching for a first object set corresponding to the longitude and latitude information in a first distance range according to problem information of the problem template, and selecting a first target object of the problem template from the first object set includes:
Searching a first type object set corresponding to the longitude and latitude information in a first distance range according to the problem information of the first type problem template, acquiring the search heat value of each object in the first type object set, sorting, and selecting an object with the largest search heat value as a first target object of the first type problem template according to the sorting order; and/or
Searching a second type object set corresponding to the longitude and latitude information in a first distance range according to the problem information of the second type problem template, and randomly selecting an object from the second type object set as a first target object of the second type problem template.
The template library comprises a first type of question template and a second type of question template, wherein the questions corresponding to the first type of question template can be questions which a user has to answer, and the second type of question template can be questions which the user has not to answer. The question that the user has to answer may be street information, for example, when the question of the first type of question template is "what street is there near the address information you input? And searching all corresponding street information in a first distance range (within 3 km) corresponding to the longitude and latitude information, acquiring and sequencing the search heat values of all the streets in the corresponding street information, and selecting the street with the largest heat value as the correct option of the first type of problem template.
The questions that the user does not have to answer may be school information, bank information, etc., for example, when the question of the second type of question template is "what banks are near the address information you input? And searching all banks corresponding to the longitude and latitude information within the first distance range according to the problem information of the second type problem template, and randomly selecting one bank from the searched banks as a correct option of the second type problem template.
In one embodiment, the method further comprises:
And when the longitude and latitude information is taken as the center and the first object set corresponding to the problem information in the problem template in the first distance range is not found, the problem template is reselected from the template library until the first object set corresponding to the problem template is found.
Because the problem read randomly from the template library may not find the related object at the distance corresponding to the latitude and longitude information, for example, the residence area is not scenic spots near the latitude and longitude information, and when the problem is "what scenic spots are near the address information", the problem template needs to be reselected from the template library until the first object set corresponding to the problem template is found.
Step S30: and searching a second object set which is outside the first distance range and corresponds to the problem information in the problem template in a second distance range by taking the objects outside the first target object in the first object set as the center, and selecting a second target object of the problem template from the second object set.
In this embodiment, after the first target object is selected as the correct option corresponding to the problem template, the incorrect option corresponding to the problem template needs to be found, specifically, any object other than the first target object in the first object set is taken as a center point, and a second object set outside the first distance range (outside 3 km) and within the second distance range (for example, within 6 km) corresponding to the center point is found according to the problem information of the problem template. For example, the question of the question template is "what business is 3 km around the address information you input? Searching business circles within the range of 6 km of the address, deleting business circles within the range of 3 km of the center point from the searched result to obtain a second object set, wherein the second object set is a business circle set within 6 km of the first target object outside 3 km, and randomly selecting a preset number (3) of second target objects from the business circle set to serve as error options corresponding to the problem template. Further, the second distance may be an integer multiple of the first distance, and the second object set that is found may be stored in a preset database.
In one embodiment, the method further comprises:
When a second object set which is outside the first distance range and corresponds to the problem information in the problem template and is within a second distance range is not found by taking the objects which are outside the first target object in the first object set as the center, searching a second object set which is outside the second distance range and corresponds to the problem information in the problem template and is within a third distance range;
and when the second object set which is outside the second distance range and corresponds to the problem information in the problem template in the third distance range is not found, re-selecting the problem template from the template library until the second object set corresponding to the problem template is found.
And when the second object is not found out in the first distance range corresponding to the center point and the second distance range is not found out, the searching point is continuously expanded outwards to search the second object set out of the second distance range and in the third distance range corresponding to the center point, and if the second object set is not found out, the problem of reading from the template library again is solved, so that excessive time consumption is avoided.
In one embodiment, the selecting the second target object of the problem template from the second object set includes:
And executing the de-duplication operation on each object of the second object set based on a similarity algorithm, and randomly selecting a preset number of objects from the second object set after the de-duplication operation as the second target objects.
Since the second object set found may have repetitive objects, for example, the problem of the problem template "what banks are 3 km around the address information you input? As a result, the duplicate objects need to be subjected to the deduplication operation, specifically, the similarity between every two objects may be calculated by using a cosine similarity algorithm, if the similarity is greater than a preset threshold (for example, 90%), only one of the objects of the same objects is reserved, and then a preset number (3) of objects are randomly selected from the second object set after the duplicate objects as the second target objects.
Step S40: and filling the first target object and the second target object to the option positions corresponding to the problem template, generating a target verification problem and feeding back the target verification problem to the user.
In this embodiment, the first target object corresponding to the correct option and the second target object corresponding to the wrong option are filled into the option position corresponding to the problem template to obtain the target verification problem and fed back to the user, so that the address information input by the user is audited according to the option selected by the user, and whether the information input by the user is false address information or wrong address information is determined.
In one embodiment, the method further comprises:
Receiving an option selected by a user based on the target verification problem, entering a preset service interface for the user to handle subsequent services when the option selected by the user is a correct answer, and feeding back preset prompt information to the user when the option selected by the user is a wrong answer.
When the option selected by the user is a correct answer, the user is allowed to transact the subsequent service, when the option selected by the user is a wrong answer, the user is fed back with preset prompt information, wherein the prompt information can be 'the option selected by the user is not consistent with the address input by the user', and if the error rate of the answer of the user is higher, the address filled by the user is likely to be an unreal address.
Referring to fig. 2, a functional block diagram of a verification problem generating apparatus 100 according to the present invention is shown.
The verification problem generating apparatus 100 of the present invention may be installed in an electronic device. Depending on the implementation, the verification problem generating device 100 may include an parsing module 110, a first searching module 120, a second searching module 130, and a generating module 140. The module of the present invention may also be referred to as a unit, meaning a series of computer program segments capable of being executed by the processor of the electronic device and of performing fixed functions, stored in the memory of the electronic device.
In the present embodiment, the functions concerning the respective modules/units are as follows:
and an analysis module: when receiving address information input by a user on a preset interface, analyzing the address information to obtain standard address information, and obtaining longitude and latitude information corresponding to the standard address information;
A first search module: the method comprises the steps of reading a problem template from a preset template library, searching a first object set corresponding to problem information of the problem template in a first distance range by taking longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
And a second searching module: the method comprises the steps of searching a second object set which is outside the first distance range and corresponds to problem information in the problem template in a second distance range by taking objects outside a first target object in the first object set as the center, and selecting a second target object of the problem template from the second object set;
The generation module is used for: and the first target object and the second target object are used for filling the first target object and the second target object into the option positions corresponding to the problem template, generating a target verification problem and feeding the target verification problem back to the user.
In one embodiment, said parsing said address information to obtain standard address information comprises:
Inputting the address information into a preset electronic map, searching for specific position information of the address information in the electronic map, and acquiring names of all levels of administrative regions in an administrative region standard library where the address information is located according to the specific position information to obtain standard format address information corresponding to the address information.
In one embodiment, the problem template includes a first type problem template and/or a second type problem template, the searching for a first object set corresponding to the longitude and latitude information in a first distance range according to problem information of the problem template, and selecting a first target object of the problem template from the first object set includes:
Searching a first type object set corresponding to the longitude and latitude information in a first distance range according to the problem information of the first type problem template, acquiring the search heat value of each object in the first type object set, sorting, and selecting an object with the largest search heat value as a first target object of the first type problem template according to the sorting order; and/or
Searching a second type object set corresponding to the longitude and latitude information in a first distance range according to the problem information of the second type problem template, and randomly selecting an object from the second type object set as a first target object of the second type problem template.
In one embodiment, the first lookup module 120 is further configured to:
And when the longitude and latitude information is taken as the center and the first object set corresponding to the problem information in the problem template in the first distance range is not found, the problem template is reselected from the template library until the first object set corresponding to the problem template is found.
In one embodiment, the second lookup module 130 is further configured to:
When a second object set which is outside the first distance range and corresponds to the problem information in the problem template and is within a second distance range is not found by taking the objects which are outside the first target object in the first object set as the center, searching a second object set which is outside the second distance range and corresponds to the problem information in the problem template and is within a third distance range;
and when the second object set which is outside the second distance range and corresponds to the problem information in the problem template in the third distance range is not found, re-selecting the problem template from the template library until the second object set corresponding to the problem template is found.
In one embodiment, the selecting the second target object of the problem template from the second object set includes:
And executing the de-duplication operation on each object of the second object set based on a similarity algorithm, and randomly selecting a preset number of objects from the second object set after the de-duplication operation as the second target objects.
In one embodiment, the generating module 140 is further configured to:
Receiving an option selected by a user based on the target verification problem, entering a preset service interface for the user to handle subsequent services when the option selected by the user is a correct answer, and feeding back preset prompt information to the user when the option selected by the user is a wrong answer.
Referring to fig. 3, a schematic diagram of a preferred embodiment of an electronic device 1 according to the present invention is shown.
The electronic device 1 includes, but is not limited to: memory 11, processor 12, display 13, and network interface 14. The electronic device 1 is connected to a network through a network interface 14 to obtain the original data. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, or a call network.
The memory 11 includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are equipped with the electronic device 1. Of course, the memory 11 may also comprise both an internal memory unit of the electronic device 1 and an external memory device. In this embodiment, the memory 11 is generally used to store an operating system and various application software installed in the electronic device 1, such as program codes of the verification problem generating program 10. Further, the memory 11 may be used to temporarily store various types of data that have been output or are to be output.
Processor 12 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 12 is typically used for controlling the overall operation of the electronic device 1, e.g. performing data interaction or communication related control and processing, etc. In this embodiment, the processor 12 is configured to execute the program code stored in the memory 11 or process data, such as the program code of the generating program 10 for verification problem.
The display 13 may be referred to as a display screen or a display unit. The display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch device, or the like in some embodiments. The display 13 is used for displaying information processed in the electronic device 1 and for displaying a visual work interface, for example displaying the results of data statistics.
The network interface 14 may alternatively comprise a standard wired interface, a wireless interface, such as a WI-FI interface, which network interface 14 is typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
Fig. 3 shows only the electronic device 1 with components 11-14 and the generation program 10 of the verification problem, but it should be understood that not all shown components are required to be implemented, and that more or fewer components may alternatively be implemented.
Optionally, the electronic device 1 may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
The electronic device 1 may further comprise Radio Frequency (RF) circuits, sensors and audio circuits etc., which are not described here.
In the above embodiment, the processor 12 may implement the following steps when executing the generation program 10 of the verification problem stored in the memory 11:
when address information input by a user on a preset interface is received, analyzing the address information to obtain standard address information, and obtaining longitude and latitude information corresponding to the standard address information;
Reading a problem template from a preset template library, searching a first object set corresponding to problem information in the problem template in a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
searching a second object set which is outside the first distance range and corresponds to the problem information in the problem template in a second distance range by taking objects outside the first target object in the first object set as centers, and selecting a second target object of the problem template from the second object set;
And filling the first target object and the second target object to the option positions corresponding to the problem template, generating a target verification problem and feeding back the target verification problem to the user.
The storage device may be the memory 11 of the electronic device 1, or may be another storage device communicatively connected to the electronic device 1.
For a detailed description of the above steps, please refer to the functional block diagram of the embodiment of the verification problem generation apparatus 100 shown in fig. 2 and the flowchart of the embodiment of the verification problem generation method shown in fig. 1.
Furthermore, the embodiment of the invention also provides a computer readable storage medium, which can be nonvolatile or volatile. The computer readable storage medium may be any one or any combination of several of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disc read-only memory (CD-ROM), a USB memory, etc. The computer readable storage medium includes a storage data area storing data created according to use of blockchain nodes and a storage program area storing a generation program 10 of a verification problem, the generation program 10 of the verification problem realizing the following operations when executed by a processor:
when address information input by a user on a preset interface is received, analyzing the address information to obtain standard address information, and obtaining longitude and latitude information corresponding to the standard address information;
Reading a problem template from a preset template library, searching a first object set corresponding to problem information in the problem template in a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
searching a second object set which is outside the first distance range and corresponds to the problem information in the problem template in a second distance range by taking objects outside the first target object in the first object set as centers, and selecting a second target object of the problem template from the second object set;
And filling the first target object and the second target object to the option positions corresponding to the problem template, generating a target verification problem and feeding back the target verification problem to the user.
The embodiment of the computer readable storage medium of the present invention is substantially the same as the embodiment of the generation method of the verification problem, and will not be described herein.
In another embodiment, in the method for generating a verification problem according to the present invention, to further ensure privacy and security of all the data that appear, all the data may also be stored in a node of a blockchain. Such as a first object set and target verification problem, etc., which may be stored in the blockchain node.
It should be noted that, the blockchain referred to in the present invention is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It should be noted that, the foregoing reference numerals of the embodiments of the present invention are merely for describing the embodiments, and do not represent the advantages and disadvantages of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, an electronic device, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A method of generating a verification problem, the method comprising:
When address information input by a user on a preset interface is received, analyzing the address information to obtain standard address information, and obtaining latitude and longitude information corresponding to the standard address information, wherein analyzing the address information to obtain the standard address information comprises the following steps: inputting the address information into a preset electronic map, searching for specific position information of the address information in the electronic map, and acquiring each level of administrative division names in an administrative division standard library where the address information is located according to the specific position information to obtain standard address information corresponding to the address information;
Reading a problem template from a preset template library, centering on the longitude and latitude information, wherein the problem template comprises a first type problem template and/or a second type problem template, searching a first type object set corresponding to the first type problem template in a first distance range corresponding to the longitude and latitude information according to the problem information of the first type problem template, acquiring search heat values of all objects in the first type object set, and sorting, and selecting an object with the largest search heat value as a first target object of the first type problem template according to the sorting order; and/or searching a second type object set corresponding to the longitude and latitude information within a first distance range according to the problem information of the second type problem template, and randomly selecting an object from the second type object set to serve as a first target object of the second type problem template, wherein the first target object serves as a correct option corresponding to the problem template;
Searching a second object set which is outside the first distance range and corresponds to the problem information in the problem template by taking the objects outside the first target object in the first object set as the center, selecting a second target object of the problem template from the second object set, wherein the selecting the second target object of the problem template from the second object set comprises: calculating the similarity between every two objects in the second object set by using a cosine similarity algorithm, if the similarity is larger than a preset threshold value, only preserving one of the objects of the same object, and randomly selecting a preset number of objects from the second object set after de-duplication to serve as second target objects, wherein the second target objects serve as error options corresponding to the problem template;
And filling the first target object and the second target object to the option positions corresponding to the problem template, generating a target verification problem and feeding back the target verification problem to the user.
2. The method of generating a verification problem as claimed in claim 1, wherein the method further comprises:
And when the longitude and latitude information is taken as the center and the first object set corresponding to the problem information in the problem template in the first distance range is not found, the problem template is reselected from the template library until the first object set corresponding to the problem template is found.
3. The method of generating a verification problem as claimed in claim 1, wherein the method further comprises:
When a second object set which is outside the first distance range and corresponds to the problem information in the problem template and is within a second distance range is not found by taking the objects which are outside the first target object in the first object set as the center, searching a second object set which is outside the second distance range and corresponds to the problem information in the problem template and is within a third distance range;
and when the second object set which is outside the second distance range and corresponds to the problem information in the problem template in the third distance range is not found, re-selecting the problem template from the template library until the second object set corresponding to the problem template is found.
4. The method of claim 1, wherein the selecting a second target object of the question template from the second object set comprises:
And executing the de-duplication operation on each object of the second object set based on a similarity algorithm, and randomly selecting a preset number of objects from the second object set after the de-duplication operation as the second target objects.
5. The method of generating a verification problem as claimed in any one of claims 1 to 4, further comprising:
Receiving an option selected by a user based on the target verification problem, entering a preset service interface for the user to handle subsequent services when the option selected by the user is a correct answer, and feeding back preset prompt information to the user when the option selected by the user is a wrong answer.
6. An apparatus for generating a verification problem, the apparatus comprising:
And an analysis module: when receiving address information input by a user on a preset interface, analyzing the address information to obtain standard address information, and obtaining latitude and longitude information corresponding to the standard address information, wherein the analyzing the address information to obtain the standard address information comprises the following steps: inputting the address information into a preset electronic map, searching for specific position information of the address information in the electronic map, and acquiring each level of administrative division names in an administrative division standard library where the address information is located according to the specific position information to obtain standard address information corresponding to the address information;
A first search module: the problem template is used for reading a problem template from a preset template library, taking the longitude and latitude information as a center, the problem template comprises a first type problem template and/or a second type problem template, a first type object set corresponding to the first distance range corresponding to the longitude and latitude information is searched according to the problem information of the first type problem template, the search heat value of each object in the first type object set is obtained and ordered, and the object with the largest search heat value is selected as a first target object of the first type problem template according to the ordering order; and/or searching a second type object set corresponding to the longitude and latitude information within a first distance range according to the problem information of the second type problem template, and randomly selecting an object from the second type object set to serve as a first target object of the second type problem template, wherein the first target object serves as a correct option corresponding to the problem template;
and a second searching module: searching a second object set which is outside the first distance range and corresponds to the problem information in the problem template by taking the objects outside the first target object in the first object set as the center, wherein the second target object of the problem template is selected from the second object set, and the second target object of the problem template is selected from the second object set comprises the following steps: calculating the similarity between every two objects in the second object set by using a cosine similarity algorithm, if the similarity is larger than a preset threshold value, only preserving one of the objects of the same object, and randomly selecting a preset number of objects from the second object set after de-duplication to serve as second target objects, wherein the second target objects serve as error options corresponding to the problem template;
The generation module is used for: and the first target object and the second target object are used for filling the first target object and the second target object into the option positions corresponding to the problem template, generating a target verification problem and feeding the target verification problem back to the user.
7. An electronic device, the electronic device comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a program executable by the at least one processor to enable the at least one processor to perform the method of generating a verification problem as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium storing a generation program of an authentication problem, which when executed by a processor, implements the generation method of an authentication problem according to any one of claims 1 to 5.
CN202110913870.8A 2021-08-10 2021-08-10 Verification problem generation method, device, equipment and storage medium Active CN113590982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110913870.8A CN113590982B (en) 2021-08-10 2021-08-10 Verification problem generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110913870.8A CN113590982B (en) 2021-08-10 2021-08-10 Verification problem generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113590982A CN113590982A (en) 2021-11-02
CN113590982B true CN113590982B (en) 2024-05-17

Family

ID=78256920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110913870.8A Active CN113590982B (en) 2021-08-10 2021-08-10 Verification problem generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113590982B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095205A (en) * 2014-04-17 2015-11-25 阿里巴巴集团控股有限公司 Method and device for address location
CN108763345A (en) * 2018-05-14 2018-11-06 平安好房(上海)电子商务有限公司 Method of calibration, user equipment, storage medium and the device of cell longitude and latitude
CN109815313A (en) * 2018-12-28 2019-05-28 考拉征信服务有限公司 Personalization technology survey data processing method, device, equipment and storage medium
CN112347792A (en) * 2020-11-20 2021-02-09 深圳季连科技有限公司 Anti-fraud verification identification method and system based on relationship extraction
CN112966076A (en) * 2021-02-25 2021-06-15 中国平安人寿保险股份有限公司 Intelligent question and answer generating method and device, computer equipment and storage medium
CN113221529A (en) * 2021-05-25 2021-08-06 支付宝(杭州)信息技术有限公司 Event investigation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168880A1 (en) * 2006-01-19 2007-07-19 Hoberman Gary A Method and system for question tracking and information presentation
US9607035B2 (en) * 2014-05-21 2017-03-28 International Business Machines Corporation Extensible validation framework for question and answer systems

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095205A (en) * 2014-04-17 2015-11-25 阿里巴巴集团控股有限公司 Method and device for address location
CN108763345A (en) * 2018-05-14 2018-11-06 平安好房(上海)电子商务有限公司 Method of calibration, user equipment, storage medium and the device of cell longitude and latitude
CN109815313A (en) * 2018-12-28 2019-05-28 考拉征信服务有限公司 Personalization technology survey data processing method, device, equipment and storage medium
CN112347792A (en) * 2020-11-20 2021-02-09 深圳季连科技有限公司 Anti-fraud verification identification method and system based on relationship extraction
CN112966076A (en) * 2021-02-25 2021-06-15 中国平安人寿保险股份有限公司 Intelligent question and answer generating method and device, computer equipment and storage medium
CN113221529A (en) * 2021-05-25 2021-08-06 支付宝(杭州)信息技术有限公司 Event investigation method and device

Also Published As

Publication number Publication date
CN113590982A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN107656913B (en) Map interest point address extraction method, map interest point address extraction device, server and storage medium
JP6594988B2 (en) Method and apparatus for processing address text
EP3001332A1 (en) Target user determination method, device and network server
CN104866542A (en) POI data verification method and device
KR20160010278A (en) Method and apparatus for displaying point of interest
CN111695439A (en) Image structured data extraction method, electronic device and storage medium
CN109493087B (en) Method for checking real estate registration information based on two-dimensional code, computer device and computer readable storage medium
CN109783589B (en) Method, device and storage medium for resolving address of electronic map
KR20150104700A (en) Method and apparatus for conducting mobile payment service
JP2005242636A (en) System and method for update of search data
CN110796060B (en) High-speed driving route determining method, device, equipment and storage medium
CN112131049A (en) Data storage method and device based on cloud storage, computer equipment and storage medium
CN110909110B (en) Address standardization method and device, storage medium and processor
CN111177568A (en) Object pushing method based on multi-source data, electronic device and storage medium
CN113590982B (en) Verification problem generation method, device, equipment and storage medium
US20090070028A1 (en) Computer-implemented method, system and computer program product for transmission of feedback information
CN110852620B (en) Logistics order processing method and device, electronic equipment and storage medium
CN107247716B (en) Method and device for increasing electronic eye information, navigation chip and server
CN110688995B (en) Map query processing method, computer-readable storage medium and mobile terminal
CN112836497A (en) Address correction method, device, electronic equipment and storage medium
WO2018116154A1 (en) System and method for providing a unique postal digital address code for a location
CN110674233B (en) Method and equipment for generating operation view based on electronic map
CN111896016A (en) Position information processing method and device, storage medium and terminal
CN107084728B (en) Method and device for detecting digital map
CN112685439B (en) Count making method, system, device and storage medium for wind control system

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