The invention discloses a
knowledge base-based
data identification method and device, equipment and a medium, and relates to the technical field of
data processing. The method comprises the following steps: constructing a
knowledge base which stores a data item field set, an enumeration type value definition, a
regular expression rule and a function identification rule; in response to the
data identification request, extracting a sample
data set based on a combined sampling strategy; for a sample
data set, matching field names of data items in the sample
data set with the data item field set, and if matching succeeds, marking the corresponding data items as sensitive data to be examined; calling an enumeration type value definition, a
regular expression rule and / or a custom function rule to identify the
data content of the marked data item so as to verify the
data type; generating and outputting an identification report based on the identification result; wherein the external rule update information and the updated
knowledge base version are received through the API so as to adjust the execution parameters of the recognition process. According to the method, the data can be identified more efficiently, accurately and adaptively.