An artifact image processing method, device and equipment based on age inference

By identifying the damaged areas in cultural relic images and utilizing the temporal continuity constraints of multimodal features and dating inference models, restored cultural relic images are generated and their details are enhanced. This solves the problems of insufficient restoration accuracy and inaccurate dating in existing technologies, and achieves efficient cultural relic image processing.

CN122636693BActive Publication Date: 2026-11-24BEIJING AEROSPACE GEOTECHN ENG INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610738289.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-05-27
Publication Date
2026-11-24
Estimated Expiration
2046-05-27

AI Technical Summary

Technical Problem

Existing technologies in the processing of cultural relic images suffer from problems such as insufficient restoration accuracy, inaccurate dating, unreasonable reference matching, and fragmented processing flow, resulting in low historical authenticity and efficiency of restoration results.

Method used

By identifying the damaged areas in the images of cultural relics, combining the age inference model with multimodal cultural relic characteristics and temporal continuity constraints, images of restored cultural relics are generated, and appropriate reference cultural relic data are selected from the cultural relic database for detail enhancement, forming a unified processing workflow.

Benefits of technology

It improves the precision of restoration and the accuracy of dating, ensuring the historical authenticity of restoration results and processing efficiency, and is suitable for digital preservation of cultural relics and auxiliary research.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122636693B_ABST
    Figure CN122636693B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, and device for image processing of cultural relics based on age inference, relating to the fields of digital preservation of cultural relics and computer vision technology. Specifically, it includes: identifying the missing regions of a target cultural relic in an image to be processed, and determining the information of the missing regions and the degree of damage; repairing the missing regions based on the degree of damage information, generating a repaired image of the cultural relic; extracting corresponding multimodal cultural relic features based on the repaired image and detection information corresponding to the target cultural relic, and determining the age information of the cultural relic using an age inference model; determining reference cultural relic data from a cultural relic database based on the multimodal cultural relic features and the age information; and enhancing the details of the repaired image based on the reference cultural relic data and the missing region information, obtaining a detailed enhanced image of the cultural relic. This invention improves the accuracy of restoration, the accuracy of dating, and the processing efficiency, helping to ensure the historical authenticity of the restoration results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of digital preservation of cultural relics and computer vision technology, and in particular to a method, apparatus and equipment for image processing of cultural relics based on age inference. Background Technology

[0002] As irreplaceable carriers of history and culture, the digital preservation of cultural relics is an important means of cultural heritage transmission. However, in the process of acquiring and processing images of cultural relics, problems such as incomplete images and blurred information often occur due to their age, improper preservation, or limitations in acquisition conditions.

[0003] Existing technologies face numerous challenges in addressing these issues: First, in image restoration, while traditional methods can fill in defects, they often result in structural shifts or texture distortions because they fail to consider the unique structural priors of artifacts, such as symmetry and periodicity. Deep learning-based methods, on the other hand, are prone to fabricating features that contradict historical evidence, damaging the historical authenticity of the artifacts. Second, in dating, traditional methods typically analyze single features such as shape, decoration, and color in isolation, ignoring the inherent connections between these features and failing to utilize the inherent temporal continuity of the artifacts' dates, leading to obvious errors in dating across dynasties. Third, to enhance the realism of restored images, images of contemporary and similar artifacts are often referenced for detail enhancement. However, existing matching methods often rely on simple structural or local feature similarities, failing to comprehensively consider multi-dimensional information such as age, type, and material. This may result in matching unsuitable reference samples, leading to a final restoration effect that deviates significantly from the artifact's historical appearance. Finally, existing technical solutions often focus on optimizing single steps such as repair, dating, and matching, lacking an automated and collaborative workflow that organically connects these steps. This not only results in low efficiency but also makes it easy for new errors to be introduced due to human judgment.

[0004] Therefore, existing technologies in the processing of cultural relic images generally suffer from technical problems such as insufficient restoration accuracy, inaccurate dating, unreasonable reference matching, and fragmented and inefficient processing procedures. Summary of the Invention

[0005] In order to overcome the shortcomings of the prior art, the present invention provides a method, apparatus and equipment for image processing of cultural relics based on age inference.

[0006] According to a first aspect of the present invention, a method for processing cultural relic images based on dating inference is provided, comprising: identifying a missing region of a target cultural relic in an image of a cultural relic to be processed, determining information on the missing region and the degree of missingness of the target cultural relic; the degree of missingness information including slight missingness and severe missingness; repairing the missing region based on the degree of missingness information and the missing region information to generate a repaired cultural relic image; extracting corresponding multimodal cultural relic features based on the repaired cultural relic image and detection information corresponding to the target cultural relic, and inputting the multimodal cultural relic features into a dating inference model with time continuity constraints, so as to determine the dating information of the cultural relic by the dating inference model; determining reference cultural relic data from a cultural relic database based on the multimodal cultural relic features and the cultural relic dating information; and enhancing the details of the repaired cultural relic image based on the reference cultural relic data and the missing region information to obtain a detailed enhanced cultural relic image.

[0007] Optionally, identifying the missing regions of the target cultural relic in the image of the cultural relic to be processed, and determining the missing region information and the degree of missing information of the target cultural relic, includes: performing noise suppression and contrast enhancement on the image of the cultural relic to be processed to obtain a preprocessed cultural relic image; identifying the target cultural relic from the preprocessed cultural relic image and determining the area of ​​the main body region of the cultural relic; segmenting the missing regions of the preprocessed cultural relic image to generate a missing region mask; determining the missing region information based on the missing region mask; the missing region information includes the location, shape, and area of ​​the missing region; and determining the degree of missing information based on a preset degree of missing threshold and the ratio between the area of ​​the missing region and the area of ​​the main body region of the cultural relic.

[0008] Optionally, based on the degree of damage information, the damaged area is repaired according to the damaged area information to generate a repaired cultural relic image, including: when the degree of damage information corresponding to the image of the cultural relic to be processed is slightly damaged, generating pixel similarity weights according to the effective area pixel distribution in the image of the cultural relic to be processed; performing symmetry structure detection and ornamentation periodicity detection on the image of the cultural relic to be processed to determine the symmetry axis, ornamentation periodicity direction or ornamentation periodicity position of the cultural relic; generating structural prior weights according to the symmetry axis, ornamentation periodicity direction or ornamentation periodicity position of the cultural relic; calculating the pixel value of the damaged area using a non-negative constraint iterative solution method according to the pixel similarity weights, structural prior weights and damaged area information to obtain an initial repaired image; performing texture consistency verification between the ornamentation area and the effective ornamentation area in the initial repaired image; when the texture consistency is lower than the preset texture consistency threshold, adjusting the structural prior weights and iterating again until the preset texture consistency threshold is met to obtain the repaired cultural relic image.

[0009] Optionally, based on the degree of damage information, the damaged area is repaired according to the damaged area information to generate a repaired cultural relic image, including: when the degree of damage information corresponding to the image of the cultural relic to be processed is severely damaged, the type of the target cultural relic is determined according to the image of the cultural relic to be processed; a low-resolution overall contour repair result is generated according to the damaged area information and the type of cultural relic; according to the type of cultural relic, the deep features of the corresponding reference cultural relic are determined from the reference cultural relic feature library, and the deep features are fused with the low-resolution overall contour repair result to generate a high-resolution repair result; based on the high-resolution repair result, the morphological authenticity judgment result and the local detail rationality judgment result are determined; when both the morphological authenticity judgment result and the local detail rationality judgment result are characterized as passing, the repaired cultural relic image is obtained.

[0010] Optionally, based on the image of the restored cultural relic and the detection information corresponding to the target cultural relic, corresponding multimodal cultural relic features are extracted, including: detecting the shape and structure points of the restored cultural relic image, calculating the proportional relationship between different structural parts of the cultural relic based on the detected shape and structure points, and generating shape features; extracting features from the decorative areas in the image of the restored cultural relic, and enhancing the response to age-sensitive decorative edges, decorative density, and texture distribution areas through channel attention processing and spatial attention processing, generating decorative features; converting the image of the restored cultural relic to a color representation space and extracting color features; acquiring spectral data corresponding to the target cultural relic, and combining the spectral data with the color features to generate color and material features; detecting text areas in the image of the restored cultural relic, cropping the detected text areas and extracting font, stroke, and text structure features to generate text features; determining the corresponding association weights based on the shape features, decorative features, color and material features, and text features, and generating multimodal cultural relic features based on the association weights.

[0011] Optionally, the dating inference model is pre-trained as follows: For each of the pre-divided consecutive dating intervals, a corresponding expert network is set up, and an initial model is constructed based on a pre-determined gating network; Dating interval classification constraints are applied to the interval-labeled samples in the artifact samples, and precise dating regression constraints are applied to the precisely dated samples in the artifact samples, generating a training sample set; each training sample in the training sample set includes at least the multimodal features of the artifact sample and corresponding dating label information, including dating interval labels and / or precise dating labels; the expert network in the initial model is pre-trained using the training sample set to obtain a pre-trained model; the expert network and gating network in the pre-trained model are jointly trained using the training sample set and pre-defined time continuity constraints to obtain the dating inference model.

[0012] Optionally, reference cultural relic data is determined from a cultural relic database based on multimodal cultural relic features and cultural relic dating information. This includes: using cultural relic dating information as a time filtering condition and combining it with multimodal cultural relic features to select multiple candidate reference cultural relic data from the cultural relic database; calculating the multimodal similarity, subdivision similarity, and material similarity between the multimodal cultural relic features and the corresponding features of each candidate reference cultural relic; wherein, subdivision similarity includes pattern similarity, color and material similarity, and text similarity; weighting the multimodal similarity, subdivision similarity, and material similarity according to preset weights to obtain the matching score of each candidate reference cultural relic; sorting the candidate reference cultural relic data according to the matching score, selecting the top-ranked candidate reference cultural relic data, and using its corresponding cultural relic data as the initial reference cultural relic data; and filtering the initial reference cultural relic data for material anomalies, removing candidate reference cultural relic data whose material feature similarity is lower than a preset material threshold to obtain the reference cultural relic data.

[0013] Optionally, based on reference artifact data and information about the damaged areas, detail enhancement is performed on the image of the restored artifact to obtain an enhanced image. This includes: extracting local feature points from the restored artifact image and the reference image in the reference artifact data, and matching the local feature points; estimating the geometric transformation relationship between the restored artifact image and the reference image based on the matched local feature points, and registering the reference image to the restored artifact image; selecting intact area information corresponding to the damaged area information from the registered reference image; and extracting high-frequency detail features from the intact area information. These high-frequency detail features include decorative edges, character strokes, and texture patterns. At least one of the following methods is used: constrained by the local gradient continuity of the restored cultural relic image, high-frequency detail features are fused into the damaged, blurred, or uncertain areas of the restored cultural relic image to obtain a preliminary enhanced image; the enhanced areas in the preliminary enhanced image are compared with the corresponding areas in multiple reference cultural relic data to obtain a multi-reference consistency evaluation result; when the multi-reference consistency evaluation result of a certain enhanced area does not meet the preset consistency requirements, the enhanced area is marked as a questionable restoration area, and the questionable restoration area is locally refused or replaced until the preset consistency requirements are met to obtain a cultural relic image with enhanced details.

[0014] According to a second aspect of the present invention, an image processing apparatus for cultural relics based on age inference is provided, comprising: a defect recognition module, configured to identify defective regions of a target cultural relic in an image of a cultural relic to be processed, and determine defective region information and defect severity information of the target cultural relic; the defect severity information includes mild defect and severe defect; an image restoration module, configured to restore the defective regions based on the defect severity information and the defective region information, thereby generating a restored cultural relic image; an age inference module, configured to extract corresponding multimodal cultural relic features based on the restored cultural relic image and detection information corresponding to the target cultural relic, and input the multimodal cultural relic features into an age inference model with time continuity constraints, so that the age inference model can determine the age information of the cultural relic; a reference determination module, configured to determine reference cultural relic data from a cultural relic database based on the multimodal cultural relic features and the age information of the cultural relic; and an image enhancement module, configured to enhance the details of the restored cultural relic image based on the reference cultural relic data and the defective region information, thereby obtaining a detailed enhanced cultural relic image.

[0015] According to a third aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of the first aspect or any optional embodiment of the first aspect.

[0016] By adopting the above technical solution, the present invention can improve the accuracy of restoration, dating accuracy and processing efficiency, and help ensure the historical authenticity of the restoration results. Attached Figure Description

[0017] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating the image processing method for cultural relics based on age inference in an embodiment of the present invention. Figure 2 This is a schematic diagram of the architecture of the multimodal feature fusion network in an embodiment of the present invention; Figure 3 This is a schematic diagram of the architecture of the age inference model in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of the artifact image processing device based on age inference in an embodiment of the present invention; Figure 5 This is a specific example diagram of an electronic device in an embodiment of the present invention. Detailed Implementation

[0019] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0020] In this document, the term "and / or" merely describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. The term "at least one" in this document indicates any combination of at least two of a plurality of elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C. The terms "first" and "second" in this document refer to and distinguish between multiple similar technical terms, not to restrict the order or to limit there to only two. For example, "first feature" and "second feature" refer to two categories / two features; the first feature can be one or more, and the second feature can also be one or more.

[0021] Furthermore, to better illustrate the present invention, numerous specific details are provided in the following detailed embodiments. Those skilled in the art should understand that the present invention can be practiced without certain specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art have not been described in detail in order to highlight the spirit of the invention.

[0022] Before introducing the technical solutions of the embodiments of the present invention, the technical terms that may be used in the present invention will be further explained: Damage severity information refers to information used to characterize the severity of damage to the target cultural relic, including at least two levels: minor damage and severe damage. Determining this information is a prerequisite for implementing adaptive restoration strategies. The specific determination can be based on a comparison of the ratio of the damaged area to the main area of ​​the cultural relic with a preset damage severity threshold. For example, when the ratio is less than or equal to 15%, it can be defined as minor damage; when the ratio is greater than 15%, it can be defined as severe damage.

[0023] Multimodal cultural relic features refer to a combination of various types of features extracted from images of cultural relics and related physical or chemical testing information, which can collectively characterize the age attributes of cultural relics. Unlike traditional methods that rely solely on single visual features, multimodal features can provide richer and more essential dating evidence. In an embodiment of the present invention, preferably, these features may include shape features, decorative features, color and material features, and textual features, which are effectively integrated through a specific fusion network.

[0024] A dating inference model is a pre-trained computational model that can receive multimodal artifact features as input and output artifact dating information. This model aims to solve the problems of inaccurate dating and logical inconsistencies in traditional methods. In the embodiments of this invention, a hybrid expert model with temporal continuity constraints is preferred, whose internal structure and training mechanism are specifically designed to ensure the accuracy of dating inference and the continuity of historical logic.

[0025] Reference cultural relic data refers to a set or more sets of known cultural relic data that are highly similar to the cultural relic to be processed, selected from a large-scale, structured cultural relic database based on its age, type, and multimodal characteristics using a specific matching algorithm. This data includes not only reference images but also detailed feature vectors, material analysis reports, etc. Its core function is to provide a historically accurate and verifiable "blueprint" for enhancing and refining the details of the restored cultural relic images.

[0026] This invention provides a method for image processing of cultural relics based on dating. Figure 1 This is a flowchart illustrating a method for processing cultural relic images based on dating, according to an embodiment of the present invention. This method can be applied to a device for processing cultural relic images based on dating. The device is located in an electronic device. This electronic device includes, but is not limited to, fixed devices and / or mobile devices. For example, fixed devices include, but are not limited to, servers, which can be cloud servers or ordinary servers. In some possible implementations, the method for processing cultural relic images based on dating can also be implemented by a processor calling computer-readable instructions stored in memory. Figure 1 As shown, this method for processing cultural relic images based on age inference includes: S101. Identify the damaged areas of the target cultural relic in the image of the cultural relic to be processed, and determine the information on the damaged areas and the degree of damage of the target cultural relic.

[0027] S102. Based on the degree of damage information, repair the damaged area according to the damaged area information and generate a restored cultural relic image.

[0028] S103. Based on the restored cultural relic image and the detection information corresponding to the target cultural relic, extract the corresponding multimodal cultural relic features, and input the multimodal cultural relic features into an age inference model with time continuity constraints, so as to determine the age information of the cultural relic by the age inference model.

[0029] S104. Based on the characteristics of multimodal cultural relics and the information on the age of cultural relics, determine the reference cultural relic data from the cultural relic database.

[0030] S105. Based on the reference cultural relic data and information on the damaged areas, the image of the restored cultural relic is enhanced to obtain the enhanced image of the cultural relic.

[0031] In this embodiment of the invention, an image of the cultural relic to be processed can be acquired first. This image can be a photograph of a museum artifact, an image collected at an archaeological site, or a digitized image of a historical archive. Subsequently, the target cultural relic in the image can be identified, and further, the damaged areas of the target cultural relic can be identified to determine the corresponding damaged area information and degree of damage information. The damaged area information can include the location, boundary contour, area, and shape characteristics of the damaged area, while the degree of damage information includes at least two categories: minor damage and severe damage.

[0032] In this embodiment of the invention, after determining the degree of damage, a corresponding repair strategy can be invoked based on the degree of damage. For example, for slightly damaged areas, a repair method based on local image texture extension and structural constraints can be used to restore the continuity of the damaged area; for severely damaged areas, the missing part can be reconstructed by combining prior knowledge of the cultural relic type, reference cultural relic features, and overall contour generation results, thereby generating a repaired cultural relic image.

[0033] In this embodiment of the invention, after obtaining the image of the restored cultural relic, multimodal cultural relic features can be extracted by combining the detection information corresponding to the target cultural relic. The detection information may include spectral detection results, material detection results, surface texture detection results, or text recognition auxiliary information; the multimodal cultural relic features may cover multiple dimensions such as shape features, decorative features, color and material features, and text features. Subsequently, the multimodal cultural relic features are input into a dating model with temporal continuity constraints to determine the age information of the target cultural relic.

[0034] In this embodiment of the invention, after obtaining the age information of the cultural relic, reference cultural relic data with high correlation to the target cultural relic can be screened from the cultural relic database based on multimodal cultural relic characteristics and age information. The cultural relic database can pre-store standard cultural relic images, spectral information, material descriptions, and related archaeological records from different periods, types, and geographical origins. Finally, based on the screened reference cultural relic data and the aforementioned information on the missing areas, the image of the restored cultural relic can be enhanced to supplement details such as the edges of patterns, surface textures, and strokes of characters in the restored area, resulting in a detailed enhanced image. The final detailed enhanced image can be used for subsequent digital display and can also provide auxiliary evidence for cultural relic dating, type comparison, and manual restoration.

[0035] The technical solution provided by this invention organically combines defect identification, graded restoration, multimodal feature extraction, dating, reference artifact matching, and detail enhancement into a unified processing flow. This not only improves the completeness of the restoration of damaged areas of cultural relics but also enhances the historical rationality and morphological authenticity of the restored content by leveraging dating information and database reference results. Compared to processing methods that solely rely on image completion, this approach simultaneously considers image visual continuity, consistency of archaeological attributes, and interpretability of restoration results, making it more suitable for digital preservation and auxiliary research scenarios for cultural relics.

[0036] In some embodiments, identifying the missing regions of a target cultural relic in an image of a cultural relic to be processed, and determining the missing region information and the degree of missingness information of the target cultural relic, includes: performing noise suppression and contrast enhancement on the image of the cultural relic to be processed to obtain a preprocessed cultural relic image; identifying the target cultural relic from the preprocessed cultural relic image and determining the area of ​​the main body region of the cultural relic; segmenting the missing regions of the preprocessed cultural relic image to generate a missing region mask; determining the missing region information based on the missing region mask; the missing region information includes the location, shape, and area of ​​the missing region; and determining the degree of missingness information based on a preset degree of missingness threshold and the ratio between the area of ​​the missing region and the area of ​​the main body region of the cultural relic.

[0037] In this embodiment of the invention, the image of the cultural relic to be processed can first be preprocessed. For example, median filtering, bilateral filtering, or wavelet denoising can be used to suppress the acquisition noise in the image, and histogram equalization, adaptive contrast enhancement, or gamma correction can be used to enhance the contrast between the target cultural relic area and the background area in the image, so as to obtain the preprocessed cultural relic image.

[0038] In this embodiment of the invention, a target cultural relic can be identified from a preprocessed image of the relic, and the area of ​​the main body region of the relic can be determined. For example, the main body region of the relic can be identified using a target detection model, an instance segmentation model, or a segmentation method based on the fusion of edge contours and semantic information. The pixel area of ​​the main body region of the relic can then be calculated based on the segmentation results, providing an area benchmark for subsequent determination of the degree of damage.

[0039] In this embodiment of the invention, the preprocessed cultural relic image can be segmented into incomplete regions to generate incomplete region masks. These incomplete regions can manifest as areas with broken boundaries, local gaps, surface erosion, or missing patterns. By analyzing abrupt changes in image brightness, interruptions in texture continuity, incomplete contours, and areas with abnormal surface materials, corresponding incomplete region masks can be obtained. Based on the incomplete region masks, incomplete region information can be further determined, including the location, shape, and area of ​​the incomplete region.

[0040] In this embodiment of the invention, the degree of damage can be determined based on a preset damage threshold, according to the ratio between the area of ​​the damaged region and the area of ​​the main body of the cultural relic. For example, when the ratio is lower than a first threshold, it can be determined as slightly damaged; when the ratio is higher than or equal to the first threshold, it can be determined as severely damaged. In particular, the degree of damage information can be further corrected by considering the number of damaged areas, whether they are located in critical structural parts, and the complexity of their boundaries, so as to make the selection of subsequent restoration strategies more accurate.

[0041] Thus, by preprocessing, identifying the subject, segmenting the damaged areas, and analyzing the area proportions of the cultural relics images, the damaged areas can be located relatively accurately and the degree of damage can be quantified, providing a reliable basis for subsequent differentiated restoration. At the same time, this avoids the subjectivity and errors caused by relying solely on human experience or single image features for damage assessment, helping to improve the stability of damage identification results and the accuracy of restoration strategy matching.

[0042] In some embodiments, based on the degree of damage information, the damaged area is repaired according to the damaged area information to generate a repaired cultural relic image, including: when the degree of damage information corresponding to the cultural relic image to be processed is slightly damaged, generating pixel similarity weights according to the effective area pixel distribution in the cultural relic image to be processed; performing symmetry structure detection and ornamentation periodicity detection on the cultural relic image to be processed to determine the cultural relic's symmetry axis, ornamentation periodicity direction, or ornamentation periodicity position; generating structural prior weights according to the cultural relic's symmetry axis, ornamentation periodicity direction, or ornamentation periodicity position; calculating the pixel values ​​of the damaged area using a non-negative constraint iterative solution method based on the pixel similarity weights, structural prior weights, and damaged area information to obtain an initial repaired image; performing texture consistency verification between the ornamentation area and the effective ornamentation area in the initial repaired image; when the texture consistency is lower than a preset texture consistency threshold, adjusting the structural prior weights and iterating again until the preset texture consistency threshold is met to obtain the repaired cultural relic image.

[0043] In this embodiment of the invention, pixel similarity weights can be generated by statistically analyzing the color distribution, brightness distribution, texture gradient, and local pattern repetition patterns in the neighborhood surrounding the missing area based on the effective pixel distribution in the image of the cultural relic to be processed. The pixel similarity weights characterize the reference contribution of each effective pixel to the pixel value to be determined in the missing area. Subsequently, symmetry structure detection and pattern periodicity detection can be performed on the image of the cultural relic to be processed. For example, for cultural relics with obvious symmetrical shapes, such as pottery, bronzes, and jades, their axis of symmetry can be detected; for cultural relics with continuous decorative bands, repeating patterns, or periodic decorative structures, the direction or position of the pattern period can be detected. Based on the above detection results, prior structural weights are further generated to enhance the constraint ability on areas that conform to the symmetry relationship of the shape and the pattern repetition pattern.

[0044] In this embodiment of the invention, the pixel values ​​of the missing regions can be calculated using a non-negative constraint iterative solution method based on pixel similarity weights, structural prior weights, and information about the missing regions, to obtain an initial restored image. The non-negative constraint ensures that the obtained pixel results remain within a reasonable range of image values, avoiding abnormal grayscale or color values. Subsequently, texture consistency verification can be performed between the decorative regions and the effective decorative regions in the initial restored image. For example, verification indicators may include local texture direction consistency, decorative edge continuity, periodic repetition error, and differences in texture statistical distribution. When the texture consistency is lower than a preset texture consistency threshold, the structural prior weights are adjusted, and the iterative solution is repeated until the preset texture consistency threshold is met, ultimately obtaining the restored cultural relic image.

[0045] Thus, for images of slightly damaged cultural relics, restoration can be achieved by comprehensively utilizing the effective pixel distribution of the area and the inherent symmetrical structure and periodic features of the relics. This approach maintains the local realism of the image while enhancing the consistency between the restored area and the surrounding area in terms of decorative patterns, structural layout, and texture distribution. By introducing a texture consistency verification and feedback adjustment mechanism, restoration artifacts and structural mismatches can be further reduced, thereby improving the naturalness and credibility of the restoration results for slightly damaged relics.

[0046] In some embodiments, based on the degree of damage information, the damaged area is repaired according to the damaged area information to generate a repaired cultural relic image, including: when the degree of damage information corresponding to the cultural relic image to be processed is severely damaged, the type of the target cultural relic is determined according to the cultural relic image to be processed; a low-resolution overall contour repair result is generated according to the damaged area information and the cultural relic type; according to the cultural relic type, the deep features of the corresponding reference cultural relic are determined from the reference cultural relic feature library, and the deep features are fused with the low-resolution overall contour repair result to generate a high-resolution repair result; based on the high-resolution repair result, the morphological authenticity judgment result and the local detail rationality judgment result are determined; when both the morphological authenticity judgment result and the local detail rationality judgment result are characterized as passed, the repaired cultural relic image is obtained.

[0047] In this embodiment of the invention, the type of the target cultural relic can be determined based on the image of the relic to be processed. For example, the type of relic may include pottery, bronzes, porcelain, jade, stone carvings, etc. Further, the determination of the type of relic can be based on the shape outline, surface material characteristics, typical decorative style, color features, or existing museum collection classification labels. Subsequently, a low-resolution overall outline restoration result can be generated based on the information of the missing area and the type of relic. Specifically, the focus at this stage is on restoring the general shape boundaries, overall proportions, and main functional structural parts of the target cultural relic, so that the overall outline of the relic tends to be complete.

[0048] In this embodiment of the invention, after obtaining the low-resolution overall contour restoration result, the deep features of the corresponding reference artifact can be determined from the reference artifact feature database according to the artifact type. These deep features can be learned by a pre-trained feature extraction network from a large number of similar artifact samples, and can characterize the high-level semantic information of that type of artifact in terms of structure, decoration, proportion, and surface style. Furthermore, the deep features are fused with the low-resolution overall contour restoration result to generate a high-resolution restoration result, thus ensuring that the restoration result possesses both overall contour rationality and rich local appearance information.

[0049] In this embodiment of the invention, based on the high-resolution restoration results, the results for morphological authenticity assessment and the results for local detail rationality assessment can be determined separately. Morphological authenticity assessment focuses on evaluating whether the outer contour, structural proportions, and key component locations of the artifact conform to the typical characteristics of this type of artifact; while local detail rationality assessment focuses on evaluating whether the transition of patterns, surface details, and material representation match the type of artifact. When both the morphological authenticity assessment and the local detail rationality assessment results are deemed satisfactory, the restored artifact image is obtained. Specifically, if either assessment result fails, deeper features of the reference artifact can be reselected or the fusion parameters adjusted to further optimize the restoration results.

[0050] Thus, for images of severely damaged cultural relics, a phased restoration mechanism can effectively solve the problem that traditional partial restoration methods are insufficient to restore the overall form under conditions of large-area loss. This not only helps to reconstruct the overall structure and shape characteristics of the cultural relic, but also improves the reliability of the restoration results in terms of archaeology through a dual judgment of authenticity and rationality, avoiding distorted restorations that significantly deviate from the original type and characteristics of the cultural relic.

[0051] In some embodiments, based on the image of the restored cultural relic and the detection information corresponding to the target cultural relic, corresponding multimodal cultural relic features are extracted, including: detecting the shape and structure points of the restored cultural relic image, calculating the proportional relationship between different structural parts of the cultural relic based on the detected shape and structure points, and generating shape features; extracting features from the decorative areas in the image of the restored cultural relic, and enhancing the response to age-sensitive decorative edges, decorative density, and texture distribution areas through channel attention processing and spatial attention processing, and generating decorative features; converting the image of the restored cultural relic to a color representation space and extracting color features; acquiring spectral data corresponding to the target cultural relic, and combining the spectral data with the color features to generate color and material features; detecting text areas in the image of the restored cultural relic, cropping the detected text areas and extracting font, stroke, and text structure features to generate text features; determining the corresponding association weights based on the shape features, decorative features, color and material features, and text features, and generating multimodal cultural relic features based on the association weights.

[0052] In this embodiment of the invention, structural points of the artifact can be detected in the image of the artifact being restored. These structural points may include the rim turning point, the point of maximum outward expansion of the belly, the edge of the base, the connection point of the ear, and the transition point of the shoulder, etc. Furthermore, based on the detected structural points, the proportional relationships between different structural parts of the artifact can be calculated, such as the ratio of mouth diameter to belly diameter, the ratio of body height to base diameter, and the ratio of neck height to overall height, and then the artifact's shape features can be generated.

[0053] In this embodiment of the invention, feature extraction can be performed on the decorative regions in images of restored cultural relics. For example, edge, density, distribution patterns, and repeating unit information in the decorative regions can be extracted using convolutional neural networks or local texture description operators. During the extraction process, channel attention processing enhances the response of decorative categories highly correlated with age determination, while spatial attention processing emphasizes the degree of attention paid to age-sensitive decorative edges, density, and texture distribution areas, thereby generating decorative features.

[0054] In this embodiment of the invention, the image of the cultural relic to be restored can be converted to a color representation space to extract color features. Simultaneously, spectral data corresponding to the target cultural relic can be acquired, and the spectral data can be combined with the color features to generate color material features. These color material features not only reflect the color appearance of the cultural relic's surface but also characterize its material composition, glaze properties, oxidation level, or surface aging characteristics.

[0055] In this embodiment of the invention, text regions in images of restored cultural relics can be detected, the detected text regions can be cropped, and font, stroke, and text structure features can be extracted to generate text features. These text features can be used to assist in determining the style of inscriptions, the characteristics of the writing era, or the characteristics of the manufacturing process.

[0056] In this embodiment of the invention, the correlation weights can be determined based on the degree of correlation between shape features, decorative features, color and material features, and text features, and multimodal cultural relic features can be generated based on the correlation weights. In particular, the correlation weights can be adaptively adjusted for different types of cultural relics. For example, the weight of text features can be increased for inscribed cultural relics, and the weight of color and material features can be increased for glaze-sensitive cultural relics.

[0057] Thus, by jointly extracting multi-dimensional information such as shape, decoration, color, material, and text, a more comprehensive multimodal expression of cultural relic features is constructed. Compared with analysis based solely on the appearance features of a single image, this approach can more fully reflect the comprehensive attributes of cultural relics in terms of form, decoration, material, and text style, thereby providing richer and more accurate evidence for subsequent dating and matching with reference cultural relics, significantly improving the accuracy of cultural relic identification and analysis results.

[0058] In some embodiments, the dating inference model is pre-trained as follows: For each of the pre-divided consecutive dating intervals, a corresponding expert network is set up, and an initial model is constructed based on a pre-determined gating network; Dating interval classification constraints are applied to the interval-labeled samples in the cultural relic samples, and precise dating regression constraints are applied to the precisely dated samples in the cultural relic samples, generating a training sample set; each training sample in the training sample set includes at least the multimodal features of the cultural relic sample and corresponding dating label information, the dating label information including dating interval labels and / or precise dating labels; the expert network in the initial model is pre-trained using the training sample set to obtain a pre-trained model; the expert network and gating network in the pre-trained model are jointly trained using the training sample set and a pre-defined time continuity constraint to obtain the dating inference model.

[0059] In this embodiment of the invention, corresponding expert networks can be set up for each of the pre-divided consecutive chronological intervals, and an initial model can be constructed based on a pre-determined gating network. For example, according to the dating conventions in archaeological research, the chronology of cultural relics can be divided into several consecutive historical periods, with each historical period corresponding to an expert network used to learn the feature distribution of cultural relics in that period in terms of shape, decoration, material, and inscription. The gating network is used to dynamically allocate the output weights of each expert network based on the multimodal features of the input cultural relic sample.

[0060] In this embodiment of the invention, a chronological interval classification constraint can be applied to interval-labeled samples in the cultural relic samples, and a precise chronological regression constraint can be applied to precisely dated samples in the cultural relic samples to generate a training sample set. Each training sample in the training sample set includes at least the multimodal features of the cultural relic sample and the corresponding chronological label information, which includes chronological interval labels and / or precise chronological labels. For cultural relic samples whose approximate chronological range can only be determined, interval classification training can be used; for cultural relic samples with clear chronological basis, precise chronological regression training can be used.

[0061] In this embodiment of the invention, the expert networks in the initial model can be pre-trained using a training sample set. Each expert network first learns the characteristic patterns of cultural relics samples within its corresponding chronological interval, resulting in a pre-trained model. Based on this, the expert networks and gating networks in the pre-trained model are jointly trained using the training sample set and a preset temporal continuity constraint to obtain the chronological inference model. The temporal continuity constraint is used to restrict the model output to maintain a smooth transition between adjacent chronological intervals, making the chronological inference results more consistent with the continuous laws of historical evolution and avoiding the problem of excessive fragmentation of features between adjacent eras.

[0062] In this embodiment of the invention, after the model training is completed, for the cultural relic sample to be tested, its multimodal cultural relic features are input, and the model can output the corresponding age range results and / or accurate age results.

[0063] Thus, by setting up multiple expert networks and gating networks, and combining interval classification constraints, precise chronology regression constraints, and temporal continuity constraints for joint training, the chronology inference model can adapt to the actual data situation where the granularity of the artifact chronology labels is inconsistent, while also taking into account the continuous evolutionary relationship between historical periods. This approach helps improve the accuracy, stability, and interpretability of chronology inference results, and is particularly suitable for artifact analysis tasks with a large chronological span and diverse sample labeling types.

[0064] In some embodiments, determining reference cultural relic data from a cultural relic database based on multimodal cultural relic features and cultural relic dating information includes: using cultural relic dating information as a time filtering condition and combining it with multimodal cultural relic features to select and determine multiple candidate reference cultural relic data from the cultural relic database; calculating the multimodal similarity, subdivision similarity, and material similarity between the multimodal cultural relic features and the corresponding features of each candidate reference cultural relic; wherein, subdivision similarity includes pattern similarity, color and material similarity, and text similarity; weighting and summing the multimodal similarity, subdivision similarity, and material similarity according to preset weights to obtain the matching score of each candidate reference cultural relic; sorting the candidate reference cultural relic data according to the matching score, selecting the top-ranked candidate reference cultural relic data, and using its corresponding cultural relic data as initial reference cultural relic data; filtering the initial reference cultural relic data for material anomalies, removing candidate reference cultural relic data whose material feature similarity is lower than a preset material threshold, and obtaining the reference cultural relic data.

[0065] In this embodiment of the invention, the age information of cultural relics can be used as a time-based filtering condition, and combined with multimodal cultural relic features, multiple candidate reference cultural relics can be selected from the cultural relic database. Specifically, the database search scope can be limited first, retaining only samples that are in the same or similar age range as the target cultural relic, and then a preliminary similarity search can be performed based on multimodal features such as shape, decoration, color, material, and text to obtain a set of candidate reference cultural relics.

[0066] In this embodiment of the invention, multimodal similarity, subdivision similarity, and material similarity can be calculated between the multimodal cultural relic features and the corresponding features of each candidate reference cultural relic. Multimodal similarity reflects the overall feature matching degree; subdivision similarity can be further refined into pattern similarity, color / material similarity, and text similarity to assess the correspondence at different attribute levels; and material similarity can be specifically used to assess the consistency between the target cultural relic and candidate cultural relic in terms of material composition, spectral response, or surface aging characteristics.

[0067] In this embodiment of the invention, multimodal similarity, subdivision similarity, and material similarity can be weighted and combined according to preset weights to obtain the data matching score of each candidate reference artifact. The weights can be adjusted according to the type of artifact; for example, the weight of text similarity can be reduced for artifacts with less text, while the weight of material similarity can be increased for artifacts whose material differences significantly affect the restoration result. Then, the candidate reference artifacts are sorted according to the matching scores, and the top-ranked candidate reference artifacts are selected, with their corresponding artifact data used as the initial reference artifact data.

[0068] In this embodiment of the invention, material anomaly filtering can be performed on the initial reference artifact data to remove candidate reference artifacts whose material feature similarity is lower than a preset material threshold, thus obtaining the final reference artifact data. This step avoids interference from artifact samples that, although similar in appearance, have significant differences in material origin or craftsmanship during the restoration and enhancement process.

[0069] Thus, by combining chronological information with multimodal features for the selection of reference artifacts, and further performing material anomaly filtering after matching and scoring, the relevance and reliability of the reference artifact data can be significantly improved. Compared with similarity retrieval based solely on image appearance, this method effectively reduces the risk of false matches, thereby providing a more realistic and accurate reference for subsequent detail enhancement.

[0070] In some embodiments, detail enhancement is performed on the restored cultural relic image based on reference cultural relic data and information on the missing areas to obtain a detail-enhanced cultural relic image. This includes: extracting local feature points from the restored cultural relic image and the reference image in the reference cultural relic data, and matching the local feature points; estimating the geometric transformation relationship between the restored cultural relic image and the reference image based on the matched local feature points, and registering the reference image to the restored cultural relic image; selecting intact area information corresponding to the missing area information from the registered reference image; and extracting high-frequency detail features from the intact area information. High-frequency detail features include decorative edges, character strokes, and material textures. At least one of the following textures; constrained by the local gradient continuity of the restored cultural relic image, high-frequency detail features are fused into the damaged, blurred, or uncertain areas of the restored cultural relic image to obtain a preliminary enhanced image; the enhanced areas in the preliminary enhanced image are compared with the corresponding areas in multiple reference cultural relic data to obtain a multi-reference consistency evaluation result; when the multi-reference consistency evaluation result of a certain enhanced area does not meet the preset consistency requirements, the enhanced area is marked as a questionable restoration area, and the questionable restoration area is locally refused or replaced until the preset consistency requirements are met to obtain a cultural relic image with enhanced details.

[0071] In this embodiment of the invention, local feature points can be extracted from the restored cultural relic image and the reference image in the reference cultural relic data, and then matched. Local feature points can be obtained using scale-invariant features, corner features, or deep learning feature description methods to improve matching stability under conditions of viewpoint variation, scale variation, and local wear.

[0072] In this embodiment of the invention, the geometric transformation relationship between the restored artifact image and the reference image can be estimated based on the matched local feature points, and the reference image can be registered to the restored artifact image. The geometric transformation relationship may include translation, rotation, scaling, and perspective transformation, so that the corresponding region in the reference image can be aligned spatially with the target region in the restored artifact image.

[0073] In this embodiment of the invention, after registration is completed, intact region information corresponding to the missing region information can be selected from the registered reference image. The intact region information should correspond as closely as possible to the damaged parts of the target artifact in terms of structural location, decorative pattern layout, and material properties. Subsequently, high-frequency detail features are extracted from the intact region information. These high-frequency detail features include at least one of decorative edges, character strokes, and material texture. These high-frequency detail features can be extracted using high-pass filtering, edge detection, detail decomposition, or deep feature enhancement methods.

[0074] In this embodiment of the invention, high-frequency detail features can be fused into the damaged, blurred, or uncertain areas of the restored artifact image, constrained by the local gradient continuity, to obtain a preliminary enhanced image. By constraining the local gradient continuity, the edge transitions after enhancement become more natural, avoiding obvious splicing marks or abrupt changes in detail. Then, the enhanced areas in the preliminary enhanced image are compared with corresponding areas in multiple reference artifact data to obtain multi-reference consistency evaluation results. When the multi-reference consistency evaluation result of a certain enhanced area does not meet the preset consistency requirements, the enhanced area is marked as a questionable restoration area, and the questionable restoration area is locally re-fused or replaced until the preset consistency requirements are met, ultimately obtaining the artifact image with enhanced details.

[0075] Thus, by employing steps such as reference image registration, high-frequency detail extraction, gradient constraint fusion, and multi-reference consistency evaluation, detail enhancement of restored cultural relic images can further improve the representation of patterns, text, and material textures in damaged and blurred areas while maintaining the overall stability of the original restoration results as much as possible. Furthermore, by setting up multi-reference consistency verification and a reprocessing mechanism for questionable areas, the problem of erroneous detail implantation caused by the bias of a single reference sample can be effectively reduced, thereby improving the reliability and historical plausibility of the detail enhancement results.

[0076] In some implementations, an interactive interface can be used to receive an image of a damaged artifact from a user. The input image can then be denoised using a combination of Gaussian and median filtering, and contrast enhanced using adaptive histogram equalization to obtain a clear pre-processed image. Further, the proportion of the damaged area to the main body of the artifact can be calculated through image segmentation, and this proportion can be compared with a preset damage threshold. For example, the preset damage threshold can be 15%. When the proportion of the damaged area to the main body of the artifact is less than 15%, it can be classified as "slightly damaged," and vice versa.

[0077] In some implementations, when the target artifact has only minor damage, a weighted non-negative constrained least squares approach with structural priors can be used to repair the damaged area. For example, a preprocessed image of the damaged area can be used as input, and the axis of symmetry of the target artifact can be detected through Hough transform, thereby generating a structural prior weight matrix. Pixels along this axis of symmetry are assigned a relatively high weight, for example, 1.5. Simultaneously, a mask matrix identifying the gap locations can be generated. Furthermore, it can be... and The objective function is iteratively solved using a weighted non-negative least squares (W-NNLS) optimization method with structured priors. This objective function can be expressed by the following formula:

[0078]

[0079] in, Let be the pixel matrix of the restored cultural relic image to be solved; The original image of the cultural relic is a pixel matrix; It is a mask matrix; This is the pixel similarity weight matrix; The structural prior weight matrix; For symmetric / periodic structure mapping functions; This is the regularization parameter, and its value can range from 0.3 to 0.5; Multiply corresponding elements of two matrices with the same dimension; The square of the L2 norm; These are the current pixel coordinates.

[0080] Furthermore, the pixel similarity weight matrix It can be calculated using the following formula:

[0081] Calculation, where For the neighboring pixel coordinates, The value can range from 1.5 to 2.5.

[0082] After obtaining the preliminary restoration results, to further determine the texture continuity and ornamentation consistency between the restored area and the original effective area, the normalized cross-correlation coefficient between the restored ornamentation area and the effective ornamentation area can be calculated. It can be represented as:

[0083] in, Indicates the image of the repaired area. Represents the effective region image. This represents the covariance between the two. and These represent the standard deviations of the restored region image and the effective region image, respectively. When... When it is less than a preset threshold, for example If the current repair result does not meet the requirements in terms of texture consistency, the system will automatically adjust the prior structural weight matrix and re-execute the non-negative constraint iteration solution until the requirements are met. This allows for the production of restored artifact images with superior texture continuity.

[0084] In some implementations, when the target artifact is severely damaged, a multi-scale generative restoration network can be used to fuse the low-resolution overall contour restoration result with the deep features of the reference artifact to obtain a high-resolution restoration result. For example, to balance the global realism, local structural rationality, and naturalness of the restoration result, this generative restoration network can employ the following weighted total loss function. Conduct training:

[0085] in, This indicates adversarial loss, used to improve the realism of the generated results; This represents the perceptual loss, used to constrain the proximity between the generated image and the target image in the deep semantic feature space; This indicates a loss of style and is used to maintain the consistency of the texture and style of the restored area with the overall texture of the artifact. This represents morphological loss, used to constrain the reasonableness of the repair results in terms of edge contours and structural morphology. , , and These represent the weights corresponding to each loss. It can be calculated based on the Gram matrix of the feature map. The calculation can be performed based on the edge feature extraction results. Through joint optimization of the above loss functions, a better balance can be achieved between overall shape restoration and local detail generation in the restoration of severely damaged parts.

[0086] In some implementations, after obtaining images of the restored cultural relics, multimodal cultural relic features can be further extracted through a multimodal fusion network. Figure 2 This diagram illustrates the architecture of the multimodal feature fusion network in an embodiment of the present invention. Figure 2 As shown, images of restored cultural relics can be input into separate branches for feature extraction: shape, decoration, color and spectrum, and text. The shape branch employs the HRNet-W48 network to perform multi-stage feature extraction on the input image, combining convolutional operations and residual connections to extract structural point features. Finally, the shape features are obtained through fully connected layers. Meanwhile, the ornamentation branch employs a ResNet-50 backbone network to extract layered features from the cropped ornamentation regions in the artifact images. Channel attention and spatial attention modules are introduced in the intermediate layers to enhance the response to age-sensitive ornamentation edges, density, and texture distribution areas, ultimately yielding the ornamentation features. Furthermore, the color and spectral branch takes both the input image of the cultural relic and the spectral data collected by the ground hyperspectral imager as input. It first converts the image to the Lab color space, extracts the hue histogram, luminance variance, and color features, and then combines these with spectral peak vectors and XRF elemental composition features for joint characterization, generating color and spectral features. Color and spectral features can be considered a specific implementation of the color material features mentioned earlier. Furthermore, the text branch first identifies and crops the text region using the EAST text detector, then inputs the cropped text tiles into a visual model based on a transformer architecture (VisualTransformer-Base, ViT-Base) to extract text features, which are then reduced in dimensionality by a fully connected layer to obtain the final text features. Furthermore, in addition to features such as shape, decoration, color, material, and text, multimodal cultural relic features can also employ a cross-attention mechanism to model the degree of correlation between different modalities, thereby generating unified and integrated features. Specifically, a cross-attention layer can be set after each modal feature extraction branch. By constructing a 4×4 correlation weight matrix, the response relationship between different modalities can be weighted and calculated, thereby highlighting feature information that contributes more to the age inference. For color and material features, image color features can be combined with hyperspectral data, point spectral data, Raman spectral features, and X-ray fluorescence (XRF) elemental composition features from the detection information to enhance the characterization ability of material properties and surface process features. Among them, Raman spectral features can be used to characterize pigment or mineral composition information, and XRF elemental composition features can be used to characterize the elemental composition features of Ca, Fe, Cu, Pb, Mn, etc. Through the above fusion method, multimodal cultural relic features can simultaneously possess image appearance attributes and detection data attributes, thereby improving the accuracy of subsequent age inference and reference cultural relic selection.

[0087] Furthermore, when inputting multimodal cultural relic features into a dating model with temporal continuity constraints for dating, in order to balance the tasks of chronological interval classification and accurate chronological regression, the following total loss function can be adopted. Conduct training:

[0088] in, Indicates the classification loss for the time interval. Indicates the loss due to precise date regression. This represents the loss due to time continuity constraints. and This represents the weighting coefficient. The time continuity constraint loss is used to ensure the model output remains continuously variable between adjacent historical periods, thereby reducing the probability of abrupt misclassifications across different decades. Thus, the dating model can output not only date ranges or precise date results, but also corresponding date confidence information to provide a reference for subsequent manual analysis.

[0089] In this embodiment of the invention, the age inference model with time continuity constraints can be implemented using a hybrid expert structure that combines a gated network with multiple expert networks working together. Figure 3 A schematic diagram of the architecture of the age inference model in an embodiment of the present invention is shown, such as... Figure 3 As shown, the fused features obtained earlier through the multimodal fusion network can be... As model input. Specifically, to improve the stability of different sample input distributions, the fused features can be processed first. Perform batch normalization processing, and then input the data into the gating network and expert network respectively.

[0090] The gating network can be constructed using a two-layer fully connected network. The first fully connected layer maps the 1104-dimensional input to 512-dimensional features and performs a nonlinear transformation using the Rectified Linear Unit (ReLU) activation function. The second fully connected layer outputs weight values ​​corresponding to the preset number of time intervals, which are then normalized using the Softmax activation function to obtain the weights corresponding to multiple expert networks. In this embodiment, the time intervals are pre-divided into 5 consecutive time intervals. Therefore, the gating network outputs 5 expert weights w1, w2, w3, w4, and w5, satisfying the following condition: w1 + w2 + w3 + w4 + w5 = w1 + w2 + w3 + w4 + w5 = w1 + w2 + w3 + w4 + w5 = w1 + w2 + w3 + w4 + w5

[0091] Correspondingly, the model employs five identical expert networks, each corresponding to a continuous chronological interval. Each expert network utilizes a three-layer fully connected structure to sequentially perform dimensionality reduction mapping and nonlinear feature extraction on the input features, outputting a two-dimensional result. One dimension represents the interval prediction probability for the corresponding chronological interval, while the other dimension represents the precise chronological prediction value for that interval. In other words, each expert network simultaneously undertakes both chronological interval classification and precise chronological regression tasks.

[0092] Furthermore, after obtaining the outputs of each expert network, the fusion layer performs weighted fusion of the outputs of the five expert networks based on the expert weights output by the gating network, to obtain the final age interval prediction probability, accurate age prediction value, and confidence level information. Specifically, the age interval prediction result can be determined based on the maximum weighted interval probability, the accurate age result can be obtained by weighting the accurate age prediction values ​​output by each expert network, and the confidence level can be calculated from the fused interval probability distribution.

[0093] In this embodiment of the invention, during model training, the corresponding loss calculation method can be set according to the label type of the training samples. For samples with date range labels, the date range classification loss can be calculated. For samples with precise date labels, the precise date regression loss can be calculated. Meanwhile, to ensure that the model output conforms to the continuous evolution of historical periods, the time continuity constraint loss can also be calculated. Ultimately, the total loss can be obtained by weighted summation of the losses mentioned above, thus completing the joint training of the gating network and the various expert networks.

[0094] In some implementations, when selecting reference artifact data from an artifact database based on multimodal artifact characteristics and artifact dating information, a quantitative scoring method can be further used to rank the candidate reference artifacts. In one optional implementation, a matching score... It can be calculated using the following formula:

[0095] in, This represents the fusion feature vector of the target cultural relic. Indicates the first The fused feature vectors corresponding to each candidate reference artifact This represents the detailed feature vector of the target cultural relic. Indicates the first The detailed feature vectors corresponding to each candidate reference artifact. A diagram showing the material characteristics of the target artifact. Indicates the first Material feature diagrams corresponding to each candidate reference artifact. Represents the cosine similarity function. This represents the normalized cross-correlation coefficient. After ranking the candidate reference artifacts based on the above scores, material anomaly filtering can be performed, such as filtering the material features. Candidate samples with a value less than 0.7 were removed to improve the consistency of the final reference cultural relic data in terms of material origin and craftsmanship.

[0096] Furthermore, after restoration, dating, and detail enhancement are completed, the processing results can be automatically assessed for quality and managed. Specifically, structural similarity and... The image quality before and after restoration is quantitatively compared, and combined with the confidence results output by the dating inference model, a comprehensive evaluation of the processing results is formed. Simultaneously, a heatmap of the contribution of each modal feature is generated to show the influence of type features, decorative features, color and material features, and text features on the dating inference results. Finally, the images before and after processing, reference artifact numbers, matching scores, fusion region coordinates, dating inference results, confidence information, and multimodal feature contribution information are all included in the processing report for subsequent archiving, review, and manual assisted judgment.

[0097] The technical solution in this embodiment can further introduce restoration convergence control, joint loss optimization, multimodal cross-attention fusion, quantitative matching scoring, and result quality assessment mechanisms on the basis of existing defect identification, restoration, dating inference, reference cultural relic selection, and detail enhancement processes, thereby improving the stability, accuracy, and interpretability of cultural relic image processing results.

[0098] This invention also discloses an image processing device for cultural relics based on dating, such as... Figure 4 As shown, the device includes: a defect recognition module 401, used to identify the defective areas of the target cultural relic in the image of the cultural relic to be processed, and to determine the defective area information and defect severity information of the target cultural relic; the defect severity information includes mild defect and severe defect; an image restoration module 402, used to restore the defective areas based on the defect severity information and the defective area information, and generate a restored cultural relic image; an age inference module 403, used to extract the corresponding multimodal cultural relic features based on the restored cultural relic image and the detection information corresponding to the target cultural relic, and input the multimodal cultural relic features into an age inference model with time continuity constraints, so that the age inference model can determine the age information of the cultural relic; a reference determination module 404, used to determine reference cultural relic data from the cultural relic database based on the multimodal cultural relic features and the age information of the cultural relic; and an image enhancement module 405, used to enhance the details of the restored cultural relic image based on the reference cultural relic data and the defective area information, and obtain a detailed enhanced cultural relic image.

[0099] The artifact image processing device based on chronology inference provided in this invention organically combines defect identification, graded restoration, multimodal feature extraction, chronology inference, reference artifact matching, and detail enhancement into a unified processing flow. This not only improves the completeness of restored defective areas but also enhances the historical plausibility and morphological authenticity of the restored content by leveraging chronology information and database reference results. Compared to processing methods that solely rely on image completion, this device simultaneously considers image visual continuity, consistency of archaeological attributes, and interpretability of restoration results, making it more suitable for digital preservation and auxiliary research scenarios for cultural relics.

[0100] For a detailed description of the functions of the artifact image processing device based on age inference provided in this embodiment of the invention, please refer to the description of the artifact image processing method based on age inference in the above embodiments.

[0101] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0102] like Figure 5As shown, device 500 includes a computing unit 501, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 502 or a computer program loaded from storage unit 508 into random access memory (RAM) 503. RAM 503 may also store various programs and data required for the operation of device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

[0103] Multiple components in device 500 are connected to I / O interface 505, including: input unit 506, such as keyboard, mouse, etc.; output unit 507, such as various types of monitors, speakers, etc.; storage unit 508, such as disk, optical disk, etc.; and communication unit 509, such as network card, modem, wireless transceiver, etc. Communication unit 509 allows device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0104] The computing unit 501 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the age-inferred artifact image processing method. For example, in some embodiments, the age-inferred artifact image processing method can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the age-inferred artifact image processing method described above can be performed. Alternatively, in other embodiments, computing unit 501 may be configured by any other suitable means (e.g., by means of firmware) to perform an artifact image processing method based on age inference.

[0105] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for image processing of cultural relics based on dating, characterized in that, The method includes: Identify the damaged areas of the target cultural relic in the image of the cultural relic to be processed, and determine the damaged area information and the degree of damage information of the target cultural relic; the degree of damage information includes slight damage and severe damage; Based on the degree of damage information, the damaged area is repaired according to the damaged area information to generate a restored cultural relic image; Based on the restored cultural relic image and the detection information corresponding to the target cultural relic, the corresponding multimodal cultural relic features are extracted, and the multimodal cultural relic features are input into an age inference model with time continuity constraints, so that the age information of the cultural relic can be determined by the age inference model; the detection information includes at least one of spectral detection results, material detection results, surface texture detection results, and character recognition auxiliary information; Based on the multimodal cultural relic characteristics and the cultural relic dating information, reference cultural relic data are determined from the cultural relic database; Based on the reference cultural relic data and the information on the damaged area, the image of the restored cultural relic is enhanced in detail to obtain an enhanced image of the cultural relic. The age inference model is pre-trained in the following manner: For each of the pre-divided consecutive time intervals, a corresponding expert network is set up, and an initial model is constructed based on a pre-determined gating network. An age range classification constraint is applied to the interval-labeled samples in the cultural relic samples, and an accurate age regression constraint is applied to the accurate date samples in the cultural relic samples to generate a training sample set. Each training sample in the training sample set includes at least the multimodal features of the cultural relic sample and the corresponding age label information, and the age label information includes age range labels and / or accurate age labels. Using the training sample set, the expert network in the initial model is pre-trained to obtain a pre-trained model; Using the training sample set and preset time continuity constraints, the expert network and the gating network in the pre-trained model are jointly trained to obtain the age inference model.

2. The method according to claim 1, characterized in that, The process of identifying the damaged areas of the target cultural relic in the image to be processed, and determining the damaged area information and degree of damage information of the target cultural relic, includes: The image of the cultural relic to be processed is subjected to noise suppression and contrast enhancement to obtain a preprocessed image of the cultural relic; Identify the target cultural relic from the preprocessed cultural relic image and determine the area of ​​the main body region of the cultural relic; The preprocessed cultural relic image is segmented into missing regions to generate a missing region mask; The missing region information is determined based on the missing region mask; the missing region information includes the location, shape, and area of ​​the missing region. Based on a preset threshold for the degree of damage, the degree of damage information is determined according to the ratio between the area of ​​the damaged area and the area of ​​the main body of the cultural relic.

3. The method according to claim 1, characterized in that, The step of repairing the damaged area based on the degree of damage information and the damaged area information to generate a restored cultural relic image includes: When the degree of damage information corresponding to the image of the cultural relic to be processed is slightly damaged, a pixel similarity weight is generated based on the effective region pixel distribution in the image of the cultural relic to be processed. The image of the cultural relic to be processed is subjected to symmetry structure detection and ornamentation period detection to determine the axis of symmetry, ornamentation period direction or ornamentation period position of the cultural relic; The structural prior weights are generated based on the symmetry axis, the direction of the decorative pattern period, or the position of the decorative pattern period of the artifact. Based on the pixel similarity weight, the structural prior weight, and the missing region information, the pixel value of the missing region is calculated using a non-negative constraint iterative solution method to obtain the initial repaired image; The texture consistency of the textured regions and the effective textured regions in the initial repaired image is verified. When the texture consistency is lower than the preset texture consistency threshold, the prior weights of the structure are adjusted and the iteration is performed again until the preset texture consistency threshold is met, and the image of the restored cultural relic is obtained.

4. The method according to claim 1, characterized in that, The step of repairing the damaged area based on the degree of damage information and the damaged area information to generate a restored cultural relic image includes: When the degree of damage information corresponding to the image of the cultural relic to be processed is severely damaged, the type of the target cultural relic is determined based on the image of the cultural relic to be processed. Based on the information of the damaged area and the type of cultural relic, a low-resolution overall outline restoration result is generated; Based on the type of cultural relic, the deep features of the corresponding reference cultural relic are determined from the reference cultural relic feature library, and the deep features are fused with the low-resolution overall contour restoration result to generate a high-resolution restoration result; Based on the high-resolution restoration results, the results for determining morphological authenticity and the results for determining the reasonableness of local details are determined. When both the morphological authenticity judgment result and the local detail rationality judgment result are deemed as passing, the image of the restored cultural relic is obtained.

5. The method according to claim 1, characterized in that, The step of extracting corresponding multimodal artifact features based on the restored artifact image and the detection information corresponding to the target artifact includes: The image of the restored cultural relic is subjected to shape and structure point detection. Based on the detected shape and structure points, the proportional relationship between different structural parts of the cultural relic is calculated, and shape features are generated. Feature extraction is performed on the decorative areas in the images of the restored cultural relics, and the response to age-sensitive decorative edges, decorative density, and texture distribution areas is enhanced by channel attention processing and spatial attention processing to generate decorative features. The images of the restored cultural relics are converted to a color representation space, and color features are extracted. Acquire the spectral data corresponding to the target cultural relic, and combine the spectral data with the color features to generate color material features; The text regions in the image of the restored cultural relic are detected, and the detected text regions are cropped and the font, stroke and text structure features are extracted to generate text features; Based on the shape features, decorative features, color and material features, and text features, the corresponding association weights are determined, and the multimodal cultural relic features are generated based on the association weights.

6. The method according to claim 1, characterized in that, The step of determining reference artifact data from the artifact database based on the multimodal artifact characteristics and the artifact dating information includes: Using the age information of the cultural relics as a time filtering condition, and combining it with the multimodal cultural relic characteristics, multiple candidate reference cultural relics are selected from the cultural relic database. Calculate the multimodal similarity, subdivision similarity, and material similarity between the multimodal cultural relic features and the corresponding features of each candidate reference cultural relic; wherein, the subdivision similarity includes pattern similarity, color and material similarity, and text similarity; The multimodal similarity, the subdivision similarity, and the material similarity are weighted and combined according to preset weights to obtain the matching score of each candidate reference cultural relic; The candidate reference cultural relics are sorted according to the matching score, and the candidate reference cultural relics with the highest ranking are selected, and their corresponding cultural relic data are used as the initial reference cultural relic data. The initial reference artifact data is filtered for material anomalies, and candidate reference artifacts with material feature similarity lower than a preset material threshold are removed to obtain the reference artifact data.

7. The method according to claim 1, characterized in that, The step of enhancing the details of the restored artifact image based on the reference artifact data and the information on the damaged area to obtain an enhanced artifact image includes: Local feature points are extracted from the restored cultural relic image and the reference image in the reference cultural relic data, respectively, and the local feature points are matched. Based on the local feature points obtained from the matching, the geometric transformation relationship between the restored cultural relic image and the reference image is estimated, and the reference image is registered to the restored cultural relic image; Select the intact region information corresponding to the missing region information from the registered reference image; High-frequency detail features are extracted from the intact area information; the high-frequency detail features include at least one of ornamentation edges, text strokes, and material textures. Constrained by the local gradient continuity of the restored cultural relic image, the high-frequency detail features are fused into the damaged areas, blurred areas, or uncertain restoration areas of the restored cultural relic image to obtain a preliminary enhanced image; The enhanced regions in the preliminary enhanced image are compared with the corresponding regions in multiple reference cultural relic data to obtain the multi-reference consistency evaluation results. When the multi-reference consistency evaluation result of a certain enhanced area does not meet the preset consistency requirements, the enhanced area is marked as a questionable repair area, and the questionable repair area is partially re-fused or replaced until the preset consistency requirements are met, thus obtaining the enhanced cultural relic image.

8. A device for processing images of cultural relics based on dating, characterized in that, include: The defect recognition module is used to identify the defective areas of the target cultural relic in the image of the cultural relic to be processed, and to determine the defective area information and defect degree information of the target cultural relic. The degree of incompleteness information includes mild incompleteness and severe incompleteness; The image restoration module is used to restore the damaged area based on the damaged degree information and the damaged area information, and generate a restored cultural relic image; The dating module is used to extract corresponding multimodal artifact features based on the image of the restored artifact and the detection information corresponding to the target artifact, and input the multimodal artifact features into a dating model with time continuity constraints so that the dating model can determine the artifact's age information; the detection information includes at least one of spectral detection results, material detection results, surface texture detection results, and character recognition auxiliary information; The reference determination module is used to determine reference cultural relic data from the cultural relic database based on the multimodal cultural relic characteristics and the cultural relic age information; The image retouching module is used to enhance the details of the restored cultural relic image based on the reference cultural relic data and the information of the damaged area, so as to obtain the cultural relic image with enhanced details; The age inference model is pre-trained in the following manner: For each of the pre-divided consecutive time intervals, a corresponding expert network is set up, and an initial model is constructed based on a pre-determined gating network. An age range classification constraint is applied to the interval-labeled samples in the cultural relic samples, and an accurate age regression constraint is applied to the accurate date samples in the cultural relic samples to generate a training sample set. Each training sample in the training sample set includes at least the multimodal features of the cultural relic sample and the corresponding age label information, and the age label information includes age range labels and / or accurate age labels. Using the training sample set, the expert network in the initial model is pre-trained to obtain a pre-trained model; Using the training sample set and preset time continuity constraints, the expert network and the gating network in the pre-trained model are jointly trained to obtain the age inference model.

9. An electronic device, characterized in that, include: At least one processor; as well as A memory that is communicatively connected to at least one processor; wherein, The memory stores instructions that can be executed by at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Cultural relic image recognition system and method based on composite features

    CN115661824A

  • Ancient painting digital image restoration method and system

    CN116542953A