Method, device and system for tracing the origin of cultural relics based on blockchain technology
By constructing a sequence of cultural relics circulation times in the blockchain, screening and denoising abnormal data, the error of cultural relics circulation times caused by market influence is solved, and the accuracy and efficiency of cultural relics traceability are improved.
Patent Information
- Application Number
- CN202411329903.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-24
AI Technical Summary
In blockchain, the number of cultural relics circulation data is missing or forged due to market influence, affecting the accuracy of traceability.
By building a blockchain, we can obtain the traceability of the number of cultural relics circulation sequences, filter out the number of suspected abnormal circulations, analyze market volatility, denoising the final abnormal circulations, optimize the number of circulation sequences and encrypt the storage.
It improves the accuracy and efficiency of cultural relics traceability, eliminates abnormal data caused by market influence, and ensures the accuracy of the number of circulations in the blockchain.
Smart Images

Figure CN118863927B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain data protection technology, and in particular to a method, device and system for tracing the circulation of cultural relics based on blockchain technology. Background Art
[0002] The circulation of cultural relics is divided into multiple stages, such as appraisal, circulation, and exhibition. To accurately trace the circulation of cultural relics, blockchain technology can be used to encrypt and store each stage of cultural relic circulation. Using blockchain technology for cultural relic traceability not only improves the transparency and traceability of circulation, but also helps protect cultural relics from illegal circulation, improving the efficiency and security of the entire circulation process.
[0003] However, when storing circulation counts on the blockchain, private collectors' non-public circulation counts are included. This process lacks official circulation records, leading to missing or falsified circulation count data on the blockchain. This is because the influence of the cultural relic circulation market can lead to errors in the circulation count data on the blockchain, which in turn affects the accuracy of cultural relic traceability. Summary of the Invention
[0004] In order to solve the technical problem that blockchain does not take into account the market influence when encrypting and storing the circulation data of cultural relics, resulting in errors in the circulation data and affecting the accuracy of cultural relics traceability, the purpose of the present invention is to provide a method, device and system for cultural relics circulation traceability based on blockchain technology. The technical solutions adopted are as follows:
[0005] The present invention proposes a method for tracing the origin of cultural relics based on blockchain technology, which includes:
[0006] Build a blockchain based on the circulation data of cultural relics and circulation nodes, and include the circulation times of each cultural relic in the blockchain;
[0007] Obtaining the traceability authenticity rate of each element based on the deviation between each element in the circulation number sequence and the element before it;
[0008] Screening suspected abnormal circulation times from the circulation times sequence based on the traceability authenticity rate; for each suspected abnormal circulation time, analyzing the difference between the circulation times before and after the suspected abnormal circulation time in the time sequence, and determining the market volatility at the time of each suspected abnormal circulation time in combination with the corresponding traceability authenticity rate;
[0009] screening out final abnormal circulation times from the suspected abnormal circulation times based on the market volatility; performing denoising on the final abnormal circulation times in the circulation times sequence to obtain an optimized circulation times sequence; and encrypting and storing the optimized circulation times sequence in a blockchain;
[0010] Trace the source based on the encrypted data.
[0011] Furthermore, the method for obtaining the traceability authenticity rate includes:
[0012] In the circulation number sequence, the local deviation of each element is obtained according to the difference in the circulation number between each element and the element before it in the time sequence, and the overall deviation of each element relative to other elements is obtained; the local deviation and the overall deviation are negatively correlated and mapped respectively, and the product of the negative correlation mapping result of the local deviation and the negative correlation mapping result of the overall deviation is used as the traceability authenticity rate.
[0013] Furthermore, the method for obtaining the local deviation includes:
[0014] Any element in the circulation number sequence is used as a target element, and a preset number of consecutive elements before the target element are used as local elements; the circulation number differences between the target element and each of the local elements are accumulated to obtain the local deviation.
[0015] Furthermore, the method for obtaining the overall deviation includes:
[0016] The difference between the target element and the average circulation number in the circulation number sequence is taken as the overall deviation.
[0017] Furthermore, the screening method for suspected abnormal circulation times includes:
[0018] In the circulation times sequence, the element whose traceability authenticity rate is less than a preset authenticity rate threshold is taken as the suspected abnormal circulation times.
[0019] Furthermore, the method for obtaining market volatility includes:
[0020] For each of the suspected abnormal circulation times, the suspected abnormal circulation times are used as endpoints, and a search is performed before and after the time sequence with a preset sequence length to obtain a comparison sequence before the time sequence and a comparison sequence after the time sequence in sequence;
[0021] The difference in average circulation times between the pre-time sequence comparison sequence and the post-time sequence comparison sequence is taken as the overall variability; the cumulative value of the difference in circulation times between adjacent elements in the pre-time sequence comparison sequence is taken as the pre-time sequence difference; the cumulative value of the difference in circulation times between two adjacent elements in the post-time sequence comparison sequence is taken as the post-time sequence difference;
[0022] The similarity between the difference before the time series and the difference after the time series is obtained, the product of the similarity and the overall volatility is used as the initial market volatility, and the ratio of the initial market volatility to the traceability authenticity rate of the suspected abnormal circulation times is used as the market volatility.
[0023] Furthermore, the method for obtaining the final number of abnormal circulation times includes:
[0024] The number of suspected abnormal circulations in which the market volatility is less than the preset volatility threshold is taken as the final abnormal circulation number.
[0025] Furthermore, the method for denoising the final abnormal circulation times includes:
[0026] The final abnormal circulation times are arranged into an abnormal data sequence in chronological order, and the abnormal data sequence is smoothed using a moving average method to obtain a denoising result for each of the final abnormal circulation times.
[0027] The present invention also proposes a cultural relic circulation traceability device based on blockchain technology, which includes:
[0028] The blockchain construction module is used to construct a blockchain based on the circulation data of cultural relics and circulation nodes, and the blockchain contains the circulation times of each cultural relic in time sequence;
[0029] a traceability authenticity rate acquisition module, configured to obtain the traceability authenticity rate of each element based on the deviation between each element in the circulation number sequence and the element before it;
[0030] A market volatility analysis module is configured to screen out suspected abnormal circulation times from the circulation time sequence based on the traceability authenticity rate; for each suspected abnormal circulation time, analyze the difference between the circulation times before and after the suspected abnormal circulation time in the time sequence, and determine the market volatility of each suspected abnormal circulation time at the time instant in combination with the corresponding traceability authenticity rate;
[0031] a blockchain data encryption module, configured to screen out final abnormal circulation times from the suspected abnormal circulation times based on the market volatility; denoise the final abnormal circulation times in the circulation times sequence to obtain an optimized circulation times sequence; and encrypt and store the optimized circulation times sequence in the blockchain;
[0032] The traceability module is used to trace the source based on the encrypted data.
[0033] The present invention also proposes a cultural relic circulation traceability system based on blockchain technology, including a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, it implements any one of the steps of the cultural relic circulation traceability method based on blockchain technology.
[0034] The present invention has the following beneficial effects:
[0035] The embodiment of the present invention takes into account that there may be abnormal data caused by market influence in the circulation number sequence of cultural relics. Considering that the circulation number sequence is a time series sequence and the abnormality of the circulation number will cause deviations between the data, the traceability authenticity rate is obtained to quantify the true situation of each circulation number data in the blockchain. The traceability authenticity rate can be used to screen out suspected abnormal circulation times, and further reflect market changes based on the changes in the circulation number in the neighborhood of the suspected abnormal circulation number time series to obtain market volatility, and then accurately screen out the final abnormal circulation number. The final abnormal circulation number is denoised to obtain an optimized circulation number sequence. The optimized circulation number sequence eliminates abnormal data with low traceability efficiency and traceability failure. Therefore, the optimized circulation number sequence is encrypted and stored in the blockchain, and accurate traceability of cultural relic circulation can be achieved based on the encrypted data. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 A flowchart of a method for tracing the circulation of cultural relics based on blockchain technology provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0038] To further illustrate the technical means and effectiveness of the present invention to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, describes in detail the specific implementation, structure, features, and effectiveness of a blockchain-based cultural relic circulation traceability method proposed by the present invention. In the following description, different references to "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
[0039] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0040] The following describes in detail a method for tracing the origin of cultural relics based on blockchain technology provided by the present invention with reference to the accompanying drawings.
[0041] See also Figure 1 , which shows a flow chart of a method for tracing the provenance of cultural relics based on blockchain technology provided by one embodiment of the present invention, the method comprising:
[0042] Step S1: Construct a blockchain based on the cultural relic circulation data and circulation nodes, and include the time series of circulation times of each cultural relic in the blockchain.
[0043] The circulation process of cultural relics mainly includes the following stages:
[0044] (1) Collection and identification: The cultural relics are first discovered and collected, and then identified by experts to confirm their historical value and authenticity. The data generated in this stage is text data.
[0045] (2) Archival Records: Detailed data of the artifacts, such as age, origin, and historical significance, will be recorded and archived. The data generated at this stage is numerical data.
[0046] (3) Circulation frequency: During this stage, cultural relics may be bought, sold, or exchanged between different owners, museums, private collectors, etc. The circulation frequency data generated during this stage is numerical data.
[0047] (4) Exhibition and loan: During this stage, cultural relics will be displayed in different exhibitions and museums. The data generated during this stage is text data.
[0048] (5) Restoration and maintenance: Cultural relics require regular restoration and maintenance to maintain their condition and value. This stage generates text data.
[0049] To accurately trace the origin of cultural relics during their circulation, blockchain technology will be used to securely encrypt and record data during their circulation. Blockchain provides a timestamp function and an interlinked data structure, ensuring that once data is entered into the system, it cannot be tampered with, thereby increasing data reliability and transparency. The blockchain records all circulation times and is open to all participants, allowing each circulation time of cultural relics to be tracked and audited, thereby achieving traceability of cultural relics.
[0050] It should be noted that the blockchain algorithm for tracing cultural relics is well known to those skilled in the art. Here, a blockchain construction process according to one embodiment of the present invention is briefly described:
[0051] (1) Blockchain network: Public blockchains can provide the broadest transparency, so the present invention uses a public blockchain architecture. Market participants such as museums, auction houses, and private collectors join the blockchain network as nodes, which are responsible for verifying circulation times and maintaining the integrity of the network.
[0052] (2) Circulation frequency records and smart contracts: Every time a cultural relic is sold or transferred, it will be recorded on the blockchain. The recorded information includes a detailed description of the cultural relic, the identities of the seller and buyer, the transaction price, the date, etc. The circulation frequency clauses are automatically executed through smart contracts, such as automatic verification of cultural relic authenticity, payment, ownership transfer, etc. Smart contracts ensure that once recorded on the blockchain, the circulation frequency clauses cannot be changed.
[0053] (3) Cultural Relic Identification System: Each cultural relic needs a unique digital identifier that is tied to the physical condition of the cultural relic. The physical condition can include its history, origin, and authenticity certificate. Using technologies such as NFC chips, RFID tags, or QR codes, the physical cultural relic is associated with its digital identifier to ensure consistency between the physical and the data.
[0054] (4) Security and Privacy: Advanced encryption standards are used to protect data stored on the blockchain to prevent unauthorized access. Technologies such as zero-knowledge proof are used to verify the legitimacy of the circulation times without revealing specific details.
[0055] (5) User interface and access control: First, it is necessary to ensure that only authorized users can access specific circulation records and sensitive information. In addition, an intuitive user interface should be provided for all participants to query the history and verification information of cultural relics, so as to promote users' easy use and understanding of the system.
[0056] Because the circulation count stage is susceptible to the influence of the private circulation market, and abnormal data in it has the greatest impact on traceability efficiency, this embodiment of the present invention focuses on analyzing circulation count information. Data from other stages needs to be converted into vector information through hot encoding and then decrypted by blockchain technology in the existing technology. The circulation count information is a circulation count sequence composed of the circulation count values of each cultural relic in time series.
[0057] It should be noted that data must be normalized before being stored in the blockchain network. This means that the data is simply data, without any dimension effects. Normalization is a well-known technical method for those skilled in the art and will not be elaborated here.
[0058] Step S2: Obtain the traceability authenticity rate of each element based on the deviation between each element in the circulation number sequence and the element before it in the time sequence.
[0059] At different stages of cultural relics circulation, the number of circulations will be difficult to trace or fail to trace due to the non-publicity of the circulation number process and the falsification or fabrication of the circulation number values. In order to reduce the probability of tracing failure and improve the tracing effect, it is first necessary to filter out such influencing data. Therefore, the embodiment of the present invention chooses to analyze and filter the original circulation number data to obtain the authenticity rate of each circulation number in the circulation number sequence. Due to the niche nature of cultural relics circulation, the circulation number within the local time series range should be stable in time series. If a significant difference suddenly occurs at a certain moment relative to the local time series range, it can be proved that there is a high probability that it is caused by private circulation or data tampering at that moment. Therefore, the embodiment of the present invention will analyze the deviation between each element in the circulation number sequence and the previous element in the time series, that is, the greater the deviation, the more likely the element is an abnormal circulation number, and the smaller the traceability authenticity rate.
[0060] Preferably, in one embodiment of the present invention, the method for obtaining the traceability authenticity rate includes:
[0061] In the circulation number sequence, the local deviation of each element is obtained according to the difference in the circulation number between each element and the element before it in the time series. Based on the local deviation, the present invention takes into account that the abnormality of each element can also be quantified in combination with the overall deviation, so it is necessary to obtain the overall deviation of each element relative to other elements. That is, the larger the local deviation is, the more abnormal the element is relative to other elements in the local range of the time series, and the overall deviation represents the deviation of the element relative to the overall element. The larger the deviation is, the lower the true rate is. Therefore, the local deviation and the overall deviation can be combined, and the local deviation and the overall deviation can be negatively correlated and mapped respectively, and the product of the negative correlation mapping result of the local deviation and the negative correlation mapping result of the overall deviation is used as the traceability true rate.
[0062] As an example, the traceability authenticity rate in the embodiment of the present invention can be expressed as:
[0063] ;in is the traceability authenticity rate of the nth element, is the overall deviation of the nth element, is the local deviation of the nth element.
[0064] In the traceability authenticity formula, the overall deviation and local deviation are negatively correlated in the form of an inverse. At the same time, in order to avoid the denominator being 0, a positive integer 1 is added to the denominator.
[0065] Preferably, in one embodiment of the present invention, the method for obtaining the local deviation includes:
[0066] Any element in the circulation count sequence is used as the target element, and a preset number of consecutive elements preceding the target element are used as local elements. The difference in circulation counts between the target element and each local element is accumulated to obtain the local deviation. In this embodiment of the present invention, the preset number is set to 10, that is, for the target element, the first ten elements in the time sequence are used as the elements within its local range. As an example, the local deviation is expressed as: ;in is the number of local elements, is the circulation number value corresponding to the nth element, is the circulation count value corresponding to the ni-th element.
[0067] Preferably, in one embodiment of the present invention, the method for obtaining the overall deviation includes:
[0068] The difference between the target element and the average circulation count in the circulation count sequence is taken as the overall deviation. That is, the overall deviation is expressed as: ;in is the average number of circulations in the circulation frequency sequence.
[0069] Step S3: Filter out suspected abnormal circulation times in the circulation times sequence based on the traceability authenticity rate; for each suspected abnormal circulation time, determine the market volatility at the moment of each suspected abnormal circulation time based on the difference between the circulation times before the suspected abnormal circulation time and the circulation times after the suspected abnormal circulation time in the time sequence, and in combination with the corresponding traceability authenticity rate.
[0070] The embodiments of the present invention take into account that the traceability authenticity rate is only the authenticity rate represented by the circulation number value. A lower traceability authenticity rate indicates that the corresponding circulation number is different from other circulation numbers. In addition, the circulation number of cultural relics can also be affected by the market. For example, cultural relic policy restrictions, circulation difficulties, major breakthroughs in historical research, and so on can cause the value of a cultural relic to change, thereby affecting its circulation number. In such cases, the corresponding circulation number is not erroneous or tampered data. Therefore, it is necessary to filter out suspected abnormal circulation numbers in the circulation number sequence based on the traceability authenticity rate and then further process the suspected abnormal circulation numbers.
[0071] The embodiment of the present invention takes into account that the volatility of the market has a certain time delay. For example, if a certain cultural relic is freed from circulation restrictions at a certain moment, it will produce a relatively stable and more extensive circulation situation in the following period of time, that is, the number of circulations will be significantly larger than before the opening, and the larger number of circulations will last for a longer time. Therefore, for each suspected abnormal circulation number, the market volatility of each suspected abnormal circulation number is determined based on the difference between the circulation number before the suspected abnormal circulation number and the circulation number after the suspected abnormal circulation number. That is, the greater the difference, the more likely the suspected abnormal circulation number is due to market fluctuations, and the greater the market volatility; further combined with its traceability authenticity rate, the lower the traceability authenticity rate, the greater the impact of the market, and the greater the market volatility.
[0072] Preferably, in one embodiment of the present invention, the method for screening suspected abnormal circulation times includes:
[0073] In the circulation number sequence, the elements whose traceability authenticity rate is less than the preset authenticity rate threshold are regarded as suspected abnormal circulation times. In the embodiment of the present invention, after the traceability authenticity rate is normalized by range normalization, the preset authenticity rate threshold is set to 0.4.
[0074] Preferably, in one embodiment of the present invention, the method for obtaining market volatility includes:
[0075] For each suspected abnormal circulation count, the suspected abnormal circulation count is used as an endpoint, and a search is performed toward the front and back of the time sequence with a preset sequence length, respectively, to obtain a pre-time sequence comparison sequence and a post-time sequence comparison sequence. In this embodiment of the present invention, the preset sequence length is set to 10, that is, the pre-time sequence comparison sequence and the post-time sequence comparison sequence are both sequences of length 10.
[0076] The difference in average circulation times between the pre-time series and the post-time series is taken as the overall volatility. The greater the overall volatility, the more likely the suspected abnormal circulation times are due to market influence.
[0077] The cumulative value of the differences in circulation counts between adjacent elements in the pre-series comparison sequence is used as the pre-series difference; the cumulative value of the differences in circulation counts between two adjacent elements in the post-series comparison sequence is used as the post-series difference. The pre-series and post-series differences represent the data variation trend within the sequence. If the suspected abnormal circulation count is caused by normal market fluctuations, then within the local time series, the data variation trend before and after the time series should be stable. Therefore, the similarity between the pre-series and post-series differences is obtained, and the product of the similarity and overall volatility is used as the initial market volatility. The greater the similarity and the greater the overall volatility, the more likely the suspected abnormal circulation count is due to a lowered true rate caused by market fluctuations, and the greater the initial market volatility. Furthermore, combined with the traceability authenticity rate, the ratio of the initial market volatility to the traceability authenticity rate of the suspected abnormal circulation count is used as the market volatility. The lower the traceability authenticity rate, the greater the initial market volatility, indicating greater market volatility.
[0078] As an example, the market volatility in the embodiment of the present invention is expressed by the formula:
[0079] ;in is the market volatility of the mth suspected abnormal circulation number, is the overall variability of the number of suspected abnormal circulations of the mth item, is the similarity between the difference before and after the time series of the mth suspected abnormal circulation times, is the traceability authenticity rate of the mth suspected abnormal circulation number.
[0080] In one embodiment of the present invention, the similarity between the pre-sequence difference and the post-sequence difference of the mth suspected abnormal circulation times is expressed as follows:
[0081] ;in is the difference in the number of circulations between the jth pair of adjacent elements in the pre-sequential comparison sequence, is the number of pairs of elements consisting of two adjacent elements in the comparison sequence before and after the time series, is the difference in the number of circulations between the jth pair of adjacent elements in the time-series comparison sequence.
[0082] In the similarity formula, the ratio of the difference before and after the time series is obtained. The closer the ratio is to 1, the more similar the two differences are. Therefore, the difference between the ratio and 1 is calculated. The greater the difference from 1, the smaller the similarity. Therefore, the inverse form is used for negative correlation mapping. In order to avoid the denominator being 0, 1 is added to the denominator for adjustment.
[0083] Step S4: Screen out the final abnormal circulation times from the suspected abnormal circulation times based on market volatility; denoise the final abnormal circulation times in the circulation times sequence to obtain an optimized circulation times sequence; and encrypt and store the optimized circulation times sequence in the blockchain.
[0084] After obtaining market volatility, suspected abnormal circulation times can be further screened to identify the final abnormal circulation times. Specifically, by performing two rounds of screening on the circulation times, combined with market characteristics, the present invention can identify the final abnormal circulation times that truly exhibit anomalies. Furthermore, the final abnormal circulation times are de-noised within the blockchain, eliminating the influence of abnormal data within the circulation times sequence and improving traceability accuracy. Specifically, the optimized circulation times after eliminating the abnormal data are encrypted and stored within the blockchain.
[0085] Preferably, in one embodiment of the present invention, the number of suspected abnormal circulations with market volatility less than a preset volatility threshold is used as the final abnormal circulation number. In this embodiment of the present invention, the market volatility is normalized using range normalization and the volatility threshold is set to 0.8.
[0086] Preferably, in one embodiment of the present invention, the method for denoising the final abnormal circulation times includes:
[0087] In the circulation count sequence, the final abnormal circulation count is smoothed using the moving average method to obtain a denoised result for each final abnormal circulation count. The denoised result and the remaining circulation counts other than the final abnormal circulation count are combined to form an optimized circulation count sequence. It should be noted that the moving average method is a well-known technique for those skilled in the art, and the specific moving range can be set as desired and is not limited or elaborated upon here.
[0088] In other embodiments of the present invention, the final abnormal circulation times in the circulation times sequence may also be interpolated to obtain an optimized circulation times sequence.
[0089] Step S5: Tracing the source based on the encrypted data.
[0090] Because the optimized circulation count sequence after denoising eliminates the impact of some forged and erroneous circulation count data on circulation count traceability, the accurate traceability of cultural relics circulation can be achieved using conventional blockchain traceability technology.
[0091] In summary, the embodiment of the present invention obtains the traceability authenticity rate of each element in the circulation number sequence based on the deviation between each element and the previous element in the time series; the traceability authenticity rate can be used to screen out suspected abnormal circulation times, and the changes in circulation times in the neighborhood of the suspected abnormal circulation times in the time series are used to reflect market changes, obtain market volatility, and screen out the final abnormal circulation times. The final abnormal circulation times are denoised to obtain an optimized circulation number sequence, and the optimized circulation number sequence is encrypted and stored in the blockchain to achieve accurate traceability of the circulation of cultural relics. The embodiment of the present invention ensures the accuracy of the circulation times in the blockchain by eliminating abnormal circulation times in the blockchain, thereby ensuring the accuracy of the traceability of the circulation of cultural relics.
[0092] The present invention also proposes a cultural relic circulation traceability device based on blockchain technology, which includes:
[0093] The blockchain construction module is used to construct a blockchain based on the circulation data of cultural relics and circulation nodes, and the blockchain contains the circulation times of each cultural relic in time sequence;
[0094] a traceability authenticity rate acquisition module, configured to obtain the traceability authenticity rate of each element based on the deviation between each element in the circulation number sequence and the element before it;
[0095] A market volatility analysis module is configured to screen out suspected abnormal circulation times from the circulation time sequence based on the traceability authenticity rate; for each suspected abnormal circulation time, analyze the difference between the circulation times before and after the suspected abnormal circulation time in the time sequence, and determine the market volatility of each suspected abnormal circulation time at the time instant in combination with the corresponding traceability authenticity rate;
[0096] a blockchain data encryption module, configured to screen out final abnormal circulation times from the suspected abnormal circulation times based on the market volatility; denoise the final abnormal circulation times in the circulation times sequence to obtain an optimized circulation times sequence; and encrypt and store the optimized circulation times sequence in the blockchain;
[0097] The traceability module is used to trace the source based on the encrypted data.
[0098] It should be noted that the specific implementation process of each module in a cultural relics circulation traceability device based on blockchain technology has been described in an embodiment of a cultural relics circulation traceability method based on blockchain technology, and will not be repeated here.
[0099] The present invention also proposes a cultural relic circulation traceability system based on blockchain technology, including a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, it implements any one of the steps of a cultural relic circulation traceability method based on blockchain technology.
[0100] It should be noted that the order in which the embodiments of the present invention are described above is for illustrative purposes only and does not necessarily represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0101] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.
Claims
1. A method for tracing the origin of cultural relics based on blockchain technology. It is characterized in that The method comprises: Build a blockchain based on the circulation data of cultural relics and circulation nodes, and include the circulation times of each cultural relic in the blockchain; Obtaining the traceability authenticity rate of each element according to the deviation between each element in the circulation number sequence and the previous element in the time sequence; Screen out suspected abnormal circulation times in the circulation times sequence according to the traceability authenticity rate; for each of the suspected abnormal circulation times, analyze the difference between the circulation times before the suspected abnormal circulation times in the time sequence and the circulation times after the suspected abnormal circulation times in the time sequence, and determine the market volatility at the time of each of the suspected abnormal circulation times in combination with the corresponding traceability authenticity rate; Screening out the final abnormal circulation times from the suspected abnormal circulation times according to the market volatility; denoising the final abnormal circulation times in the circulation times sequence to obtain an optimized circulation times sequence; and encrypting and storing the optimized circulation times sequence in the blockchain; Trace the source based on the encrypted data; The method for obtaining the traceability authenticity rate includes: In the circulation number sequence, the local deviation of each element is obtained according to the difference in the circulation number between each element and the element before the time sequence, and the overall deviation of each element relative to other elements is obtained; the local deviation and the overall deviation are respectively negatively correlated, and the product of the negative correlation mapping result of the local deviation and the negative correlation mapping result of the overall deviation is used as the traceability authenticity rate; The method for obtaining the local deviation includes: Any one element in the circulation frequency sequence is used as a target element, and a preset number of other consecutive elements before the target element are used as local elements; the circulation frequency differences between the target element and each of the local elements are accumulated to obtain the local deviation; The method for obtaining the overall deviation includes: taking the difference between the target element and the average circulation number in the circulation number sequence as the overall deviation; The method for obtaining the market volatility includes: For each of the suspected abnormal circulation times, the suspected abnormal circulation times are used as endpoints, and a search is performed before and after the timing sequence with a preset sequence length to obtain a comparison sequence before the timing sequence and a comparison sequence after the timing sequence in sequence; The difference in average circulation times between the pre-time sequence comparison sequence and the post-time sequence comparison sequence is taken as the overall variability; the cumulative value of the difference in circulation times between adjacent elements in the pre-time sequence comparison sequence is taken as the pre-time sequence difference; the cumulative value of the difference in circulation times between two adjacent elements in the post-time sequence comparison sequence is taken as the post-time sequence difference; The similarity between the difference before the time series and the difference after the time series is obtained, the product of the similarity and the overall volatility is taken as the initial market volatility, and the ratio of the initial market volatility to the traceability authenticity rate of the suspected abnormal circulation times is taken as the market volatility.
2. According to claim 1, a method for tracing the circulation of cultural relics based on blockchain technology, It is characterized in that The screening method for the suspected abnormal circulation times includes: In the circulation times sequence, the element whose traceability authenticity rate is less than a preset authenticity rate threshold is taken as the suspected abnormal circulation times.
3. According to claim 1, a method for tracing the origin of cultural relics based on blockchain technology, It is characterized in that The method for obtaining the final abnormal circulation times includes: The number of suspected abnormal circulations where the market volatility is less than the preset volatility threshold is taken as the final abnormal circulation number.
4. According to claim 1, a method for tracing the origin of cultural relics based on blockchain technology, It is characterized in that The method for denoising the final abnormal circulation times includes: The final abnormal circulation times are arranged into an abnormal data sequence in chronological order, and the abnormal data sequence is smoothed using a moving average method to obtain a denoising result for each of the final abnormal circulation times.
5. A cultural relic circulation traceability device based on blockchain technology, It is characterized in that The device comprises: The blockchain construction module is used to construct a blockchain based on the circulation data of cultural relics and circulation nodes, and the blockchain contains the circulation times of each cultural relic in time sequence; A traceability authenticity rate acquisition module, used to obtain the traceability authenticity rate of each element according to the deviation between each element in the circulation number sequence and the previous element in the time sequence; A market volatility analysis module is used to screen out suspected abnormal circulation times in the circulation times sequence according to the traceability authenticity rate; for each of the suspected abnormal circulation times, analyze the difference between the circulation times before the suspected abnormal circulation times in the time sequence and the circulation times after the time sequence, and determine the market volatility of each of the suspected abnormal circulation times at the time in combination with the corresponding traceability authenticity rate; A blockchain data encryption module, used for screening out the final abnormal circulation times from the suspected abnormal circulation times according to the market volatility; denoising the final abnormal circulation times in the circulation times sequence to obtain an optimized circulation times sequence; and encrypting and storing the optimized circulation times sequence in the blockchain; The traceability module is used to trace the source based on the encrypted data; The method for obtaining the traceability authenticity rate includes: In the circulation number sequence, the local deviation of each element is obtained according to the difference in the circulation number between each element and the element before the time sequence, and the overall deviation of each element relative to other elements is obtained; the local deviation and the overall deviation are respectively negatively correlated, and the product of the negative correlation mapping result of the local deviation and the negative correlation mapping result of the overall deviation is used as the traceability authenticity rate; The method for obtaining the local deviation includes: Any one element in the circulation frequency sequence is used as a target element, and a preset number of other consecutive elements before the target element are used as local elements; the circulation frequency differences between the target element and each of the local elements are accumulated to obtain the local deviation; The method for obtaining the overall deviation includes: taking the difference between the target element and the average circulation number in the circulation number sequence as the overall deviation; The method for obtaining the market volatility includes: For each of the suspected abnormal circulation times, the suspected abnormal circulation times are used as endpoints, and a search is performed before and after the timing sequence with a preset sequence length to obtain a comparison sequence before the timing sequence and a comparison sequence after the timing sequence in sequence; The difference in average circulation times between the pre-time sequence comparison sequence and the post-time sequence comparison sequence is taken as the overall variability; the cumulative value of the difference in circulation times between adjacent elements in the pre-time sequence comparison sequence is taken as the pre-time sequence difference; the cumulative value of the difference in circulation times between two adjacent elements in the post-time sequence comparison sequence is taken as the post-time sequence difference; The similarity between the difference before the time series and the difference after the time series is obtained, the product of the similarity and the overall volatility is taken as the initial market volatility, and the ratio of the initial market volatility to the traceability authenticity rate of the suspected abnormal circulation times is taken as the market volatility.
6. A cultural relic circulation traceability system based on blockchain technology, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. It is characterized in that When the processor executes the computer program, the steps of a method for tracing the circulation of cultural relics based on blockchain technology are implemented as described in any one of claims 1 to 4.
