The invention discloses a large-scale embedded index data desensitization method suitable for a
forestry database, and belongs to the technical field of data desensitization, and the method comprises the steps: obtaining a
forestry data description document D1, splitting the document D1 into sentences, and
processing the sentences into embedded vectors; a user customizes a query
sentence containing the desensitization word, and a query vector is generated; performing
hash coding on the embedded vector and the query vector to obtain a corresponding
hash function cluster; searching data to be desensitized through
cosine similarity calculation; and inputting to-be-desensitized data and the selected desensitization method into the large
language model to generate desensitized data, and replacing the corresponding sentences in the D1 to obtain a desensitized
forestry data description document D2. According to the method, the input data is converted into the high-dimensional vector through the embedding layer, so that the semantic features of the data can be effectively expressed in the vector space, the retrieval speed and accuracy of large-scale data are improved by means of the
locality sensitive hashing technology, the calculation overhead is reduced, and a technical guarantee is provided for real-time desensitization
processing of a large-scale
data set.