Cremation safety early warning method and early warning system based on X-ray scanning
By using X-ray scanning and grayscale threshold segmentation algorithms to identify metallic foreign objects in cremated remains, the problem of inaccurate detection during the cremation process has been solved, ensuring cremation safety and avoiding the risk of explosion.
Patent Information
- Application Number
- CN202511654622.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-12
- Publication Date
- 2026-02-17
AI Technical Summary
The lack of standardized detection of foreign metal objects during the cremation process in existing technologies leads to high cremation safety risks and makes it easy to miss detections due to reliance on manual methods.
The X-ray scanning method is used to obtain a two-dimensional projection digital image of the remains. Metallic foreign objects are identified by a grayscale threshold segmentation image recognition algorithm, and an alarm message is sent when preset alarm conditions are met.
It achieves non-destructive and reliable detection of metal foreign objects, avoiding accidents such as injury to cremation operators and equipment damage caused by metal foreign object explosions, and improving cremation safety.
Smart Images

Figure CN121545302A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of funeral equipment technology, specifically to a cremation safety early warning method and system based on X-ray scanning. Background Technology
[0002] Currently, the inspection for metallic foreign objects in the body during cremation generally relies on manual methods. These methods primarily include: questioning family members: While inquiring about implants can reveal their presence, family members may be unaware, have forgotten, or be too grief-stricken to provide accurate information; and obtaining medical documentation: Some deceased individuals receive hospital-issued medical certificates, but these documents often lack details about implants once the body arrives at the funeral home. The lack of standardized and reliable testing procedures at most crematoriums poses certain safety risks during the cremation process. Summary of the Invention
[0003] This application aims to provide a cremation safety early warning method and system based on X-ray scanning, thereby improving the safety of cremation.
[0004] Firstly, a cremation safety early warning method based on X-ray scanning is provided, the method comprising: A two-dimensional projection digital image of the remains inside the target coffin is obtained, the two-dimensional projection digital image being obtained by X-ray scanning; The two-dimensional projected digital image is preprocessed to obtain a preprocessed image; The preprocessed image is used to identify the initial metal foreign object by employing a grayscale threshold segmentation image recognition algorithm. In response to the initial metallic foreign object meeting the preset alarm conditions, an alarm message is sent.
[0005] Optionally, the preprocessing includes at least noise reduction, contrast enhancement, and grayscale processing.
[0006] Optionally, the step of using a grayscale threshold segmentation image recognition algorithm to identify metallic foreign objects in the preprocessed image to obtain initial metallic foreign objects includes: Obtain the grayscale value of each pixel in the preprocessed image; Pixels with grayscale values greater than a preset grayscale threshold are identified as the initial metallic foreign objects.
[0007] Optionally, in response to the initial metallic foreign object satisfying a preset alarm condition, the method further includes: The initial metallic foreign object is matched with images in a preset image library; When an image matching the initial metallic foreign object exists in the preset image library, the initial metallic foreign object is determined to meet the preset alarm conditions.
[0008] Optionally, the alarm includes visual alarms and audible and visual alarms, and the sending of alarm information includes: An alarm message is sent to the display device to display the location of the target metal foreign object, wherein the target metal foreign object is the initial metal foreign object that meets the preset alarm conditions; An alarm message is sent to the audible and visual alarm device to trigger an audible and visual alarm.
[0009] Secondly, a cremation safety early warning system based on X-ray scanning is provided, the early warning system comprising: The acquisition module is used to acquire a two-dimensional projection digital image of the remains inside the target coffin, the two-dimensional projection digital image being obtained by X-ray scanning; The preprocessing module is used to preprocess the two-dimensional projected digital image to obtain a preprocessed image; The identification module is used to identify metal foreign objects in the preprocessed image using a grayscale threshold segmentation image recognition algorithm to obtain the initial metal foreign object. An alarm module is used to send alarm information in response to the initial metallic foreign object meeting preset alarm conditions.
[0010] Thirdly, an electronic device is provided, comprising: The memory is configured to store instructions; The processor is configured to retrieve the instructions from the memory and, when executing the instructions, to implement the cremation safety early warning method based on X-ray scanning provided in the first aspect of the embodiments of this application.
[0011] Fourthly, a machine-readable storage medium is provided, wherein instructions are stored on the machine-readable storage medium, the instructions being used to cause a machine to execute the above-described cremation safety early warning method based on X-ray scanning.
[0012] Fifthly, a computer program product is provided, wherein when the instructions in the computer program product are executed by the processor of an electronic device, the electronic device performs the above-described cremation safety early warning method based on X-ray scanning.
[0013] Based on the aforementioned X-ray scanning-based cremation safety early warning method, a two-dimensional projection digital image of the remains inside the target coffin is acquired through X-ray scanning. The two-dimensional projection digital image is preprocessed to obtain a preprocessed image. A grayscale threshold segmentation image recognition algorithm is used to identify metallic foreign objects in the preprocessed image, identifying initial metallic foreign objects. In response to the initial metallic foreign object meeting preset alarm conditions, an alarm message is sent. Thus, by detecting metallic foreign objects before cremation, explosion risk sources during the cremation process can be reliably identified, avoiding the risk of injury to cremation personnel and equipment damage caused by the combustion and explosion of metallic foreign objects during cremation, thereby improving cremation safety. Attached Figure Description
[0014] Figure 1 This is a flowchart illustrating the cremation safety early warning method based on X-ray scanning provided in an embodiment of this application. Figure 2 This is a flowchart illustrating a cremation safety early warning method based on X-ray scanning provided in a specific embodiment of this application. Figure 3 This is a schematic diagram of the structure of the cremation safety early warning system based on X-ray scanning provided in the embodiments of this application; Figure 4 This is a schematic diagram of the hardware architecture for cremation safety early warning based on X-ray scanning provided in a specific embodiment of this application; Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0015] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0016] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0017] The following description, in conjunction with the accompanying drawings, details a cremation safety early warning method and system based on X-ray scanning provided in this application, through specific embodiments and application scenarios.
[0018] Please see Figure 1 This is a flowchart illustrating a cremation safety early warning method based on X-ray scanning, provided in an embodiment of this application. This method is applied to electronic devices. Figure 1 As shown, the method includes the following steps S100 to S400.
[0019] Step S100: Obtain a two-dimensional projection digital image of the remains inside the target coffin, the two-dimensional projection digital image being obtained by X-ray scanning.
[0020] In this embodiment, the target coffin can be understood as a coffin containing a body. When the target coffin (or paper coffin) containing the body is placed on the hearse in the crematorium's front hall, the body and coffin begin to enter the crematorium as the hearse moves. The hearse can be a tracked hearse or a trolley-type hearse. At this time, the scanning station is triggered, activating the vertical X-ray scanning device to perform one or more (e.g., frontal and lateral views) digital X-ray scans on the body inside the target coffin, acquiring two-dimensional projection digital images of the body inside the target coffin. The vertical X-ray scanning device is a medical X-ray device, referring to a digital X-ray imaging system that meets medical safety standards, such as DR, used to generate digital images of the internal structure of the human body or object.
[0021] Step S200: Preprocess the two-dimensional projected digital image to obtain a preprocessed image.
[0022] In this embodiment, after obtaining the two-dimensional projected digital image, the image is preprocessed to obtain a preprocessed image. Preprocessing may include, but is not limited to, noise reduction, contrast enhancement, and grayscale processing. Preprocessing improves image quality, thereby increasing the accuracy of subsequent recognition.
[0023] Step S300: Use a grayscale threshold segmentation image recognition algorithm to identify metal foreign objects in the preprocessed image to obtain the initial metal foreign objects.
[0024] In this embodiment, the grayscale threshold segmentation image recognition algorithm is a simple, efficient, and widely used image segmentation technique. Its core idea is to set one or more grayscale thresholds to classify pixels in an image into different categories (such as foreground and background) based on the comparison between their grayscale values and the thresholds, thereby achieving separation of the target from the background. Since metallic foreign objects have a much stronger attenuation capability for X-rays than human tissue and coffin materials, they appear as extremely bright (nearly pure white) pixel areas in the image. After preprocessing the two-dimensional projection digital image, a grayscale image corresponding to the two-dimensional projection digital image can be obtained. The grayscale value of each pixel in the grayscale image is obtained, and pixels with grayscale values greater than a preset grayscale threshold are identified as initial metallic foreign objects. Metallic foreign objects can refer to metallic objects that may exist in the remains or burial goods and pose a risk of explosion or ejection under high-temperature cremation conditions, such as pacemakers, deep brain stimulators, orthopedic implants, shrapnel, etc.
[0025] Step S400: In response to the initial metallic foreign object meeting the preset alarm conditions, an alarm message is sent.
[0026] In this embodiment, after identifying the initial metallic foreign object using a grayscale threshold segmentation image recognition algorithm, the initial metallic foreign object is further judged. A preset image library is obtained. The preset image library stores grayscale images corresponding to each metallic foreign object. The initial metallic foreign object is matched with images in the preset image library. When an image matching the initial metallic foreign object exists in the preset image library, the initial metallic foreign object is determined to meet preset alarm conditions. Once a metallic foreign object meeting the preset alarm conditions is identified, the system immediately triggers a linkage alarm and sends alarm information. The alarm may include, but is not limited to, visual alarms and audible and visual alarms.
[0027] Through steps S100-S400, a two-dimensional projection digital image of the remains inside the target coffin is acquired via X-ray scanning. The two-dimensional projection digital image is preprocessed to obtain a preprocessed image. A grayscale threshold segmentation image recognition algorithm is used to identify metallic foreign objects in the preprocessed image, yielding initial metallic foreign objects. In response to the initial metallic foreign object meeting preset alarm conditions, an alarm message is sent. Thus, this application utilizes the physical properties of X-rays to penetrate the coffin non-destructively and directly detect metallic foreign objects inside the human body, overcoming the shortcomings of manual methods that are prone to missed detections. It boasts high detection accuracy and, through non-contact and non-destructive methods, maximizes the preservation of the deceased's dignity. Furthermore, this application proactively and reliably identifies explosion risk sources through technical means, fundamentally avoiding the risk of injury to cremation personnel and equipment damage caused by the explosion of metallic foreign objects during the cremation process, providing crucial safety assurance for cremation personnel.
[0028] Pre-cremation metal foreign object detection can reliably identify sources of explosion risk, avoiding operator injury and equipment damage accidents caused by metal foreign object explosions, and improving the safety of cremation.
[0029] In some implementations, the alarm includes visual alarms and audible and visual alarms, and sending alarm information includes: An alarm message is sent to the display device to display the location of the target metal foreign object, wherein the target metal foreign object is the initial metal foreign object that meets the preset alarm conditions; An alarm message is sent to the audible and visual alarm device to trigger an audible and visual alarm.
[0030] Specifically, when a metallic foreign object that meets the preset alarm conditions is detected, the system immediately triggers a linkage alarm: sending alarm information to the display device and the audible and visual alarm.
[0031] A visual alarm is sent to the operator interface of the cremator's front hall control panel, highlighting the location of the metallic foreign object on the scanned image. Simultaneously, an alarm is sent to the audible and visual alarm system, emitting sound and light to alert on-site personnel to the risk. In one example, the audible and visual alarm system may include a buzzer and a warning light. Through this coordinated alarm system, the operator can take appropriate action according to safety procedures, such as: immediately stopping the hearse before cremation begins, having a professional operator temporarily remove any metallic foreign objects detected in the body, or adjusting the operator's position away from potentially hazardous areas such as the observation window in the cremator's rear hall.
[0032] Please see Figure 2 This is a flowchart illustrating a cremation safety early warning method based on X-ray scanning, provided in a specific embodiment of this application. Figure 2 As shown, this specific embodiment includes: Specifically, when the sealed coffin (or paper coffin) containing the remains is placed on the hearse (tracked hearse or trolley hearse) in front of the crematorium, the remains and coffin begin to enter the furnace as the hearse moves. At this time, the scanning station is triggered, and the vertical X-ray scanning device is started to perform one or more (such as front and side views) digital X-ray scans on the coffin to obtain two-dimensional projection digital images of the remains inside the coffin.
[0033] The image processing layer receives a two-dimensional projected digital image and performs the following core operations: (1) Preprocessing: The image is processed by noise reduction, contrast enhancement and other processes to improve the image quality.
[0034] (2) Metal foreign object identification: An image recognition algorithm based on grayscale threshold segmentation is adopted. Since metal foreign objects have a much stronger ability to attenuate X-rays than human tissue and coffin materials, they appear as pixel areas with extremely high brightness (close to pure white) in the image. The system sets a brightness threshold and automatically identifies and marks all connected regions that are higher than the threshold.
[0035] (3) Target screening (optional): Based on the common shape, size and common location of the metal foreign object in the human body (such as the chest cavity and pelvis), the identified area can be initially screened to reduce false alarms.
[0036] Once a metallic foreign object meeting the preset conditions is detected, the system immediately triggers a linked alarm: a visual alarm is sent to the operator interface of the crematorium control panel, and the location of the metallic foreign object is highlighted on the scanned image. Simultaneously, an audible and visual alarm is activated, providing both auditory and visual warnings to alert on-site personnel to the risk.
[0037] Based on the alarm information, the operator takes action in accordance with safety procedures. For example, the body transport vehicle may be stopped immediately before cremation begins, and professional operators may temporarily handle any metal foreign objects detected in the body, or the operator may adjust their position away from potentially dangerous areas such as the observation window in the back hall of the crematorium.
[0038] Please see Figure 3 This is a schematic diagram of the structure of a cremation safety early warning system based on X-ray scanning provided in an embodiment of this application. A second aspect of this application provides a cremation safety early warning system based on X-ray scanning, the early warning system comprising: The acquisition module is used to acquire a two-dimensional projection digital image of the remains inside the target coffin, the two-dimensional projection digital image being obtained by X-ray scanning; The preprocessing module is used to preprocess the two-dimensional projected digital image to obtain a preprocessed image; The identification module is used to identify metal foreign objects in the preprocessed image using a grayscale threshold segmentation image recognition algorithm to obtain the initial metal foreign object. An alarm module is used to send alarm information in response to the initial metallic foreign object meeting preset alarm conditions.
[0039] The cremation safety early warning device based on X-ray scanning provided in the second aspect of this application can realize the various processes implemented in the above method embodiments and achieve the same beneficial effects. To avoid repetition, it will not be described again here.
[0040] Please see Figure 4 This is a schematic diagram of a hardware architecture for cremation safety early warning based on X-ray scanning, provided in a specific embodiment of this application. Figure 4 As shown, the hardware architecture includes: Data acquisition layer: Vertical medical X-ray scanning device, which may include, but is not limited to, an X-ray generator and an X-ray detector. A vertical structure is preferred to facilitate full-body scanning of vertically placed coffins and reduce geometric distortion.
[0041] Data processing layer: Image processing and control system, with an industrial computer or high-performance PLC at its core, responsible for controlling X-ray equipment, receiving digital images, running recognition algorithms, and managing alarm logic.
[0042] Alarm and presentation layer: including audible and visual alarms (such as buzzers and warning lights), installed in key locations such as near the control panel in the crematorium lobby; the cremation control panel display interface, which can be integrated with the display screen on the control panel in the lobby or can be set up independently.
[0043] Please see Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. A third aspect of this application provides an electronic device 5000, including a processor 5100 and a memory 5200. The memory 5200 stores machine-executable instructions that can be executed by the processor 5100. The processor 5100 can execute the machine-executable instructions to implement the above-mentioned cremation safety early warning method based on X-ray scanning.
[0044] In some embodiments, this application also provides a machine-readable storage medium storing instructions that, when executed by a processor, cause the processor to implement the above-described X-ray scanning-based cremation safety early warning method.
[0045] In some embodiments, this application also provides a computer program product, including a computer program that, when executed by a processor, implements a cremation safety early warning method based on X-ray scanning according to the above embodiments.
[0046] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0047] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0048] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0049] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0050] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0051] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0052] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
[0053] Furthermore, various different embodiments of the present invention can be combined in any way, as long as they do not violate the spirit of the present invention, they should also be regarded as the content disclosed by the present invention.
Claims
1. A cremation safety early warning method based on X-ray scanning, characterized in that, The early warning method comprises: obtaining a two-dimensional projection digital image of a body in a target coffin, the two-dimensional projection digital image being obtained by X-ray scanning; preprocessing the two-dimensional projection digital image to obtain a preprocessed image; identifying metal foreign matter in the preprocessed image by using a gray threshold segmentation image recognition algorithm to obtain initial metal foreign matter; in response to the initial metal foreign matter satisfying a preset alarm condition, sending an alarm information.
2. The early warning method of claim 1, wherein, The preprocessing at least includes noise reduction processing, contrast enhancement processing and gray processing.
3. The early warning method of claim 1, wherein, The identifying metal foreign matter in the preprocessed image by using a gray threshold segmentation image recognition algorithm to obtain initial metal foreign matter comprises: obtaining a gray value of each pixel in the preprocessed image; judging the pixel with a gray value greater than a preset gray threshold as the initial metal foreign matter.
4. The early warning method of claim 1, wherein, Before the initial metal foreign matter satisfies the preset alarm condition, the early warning method further comprises: matching the initial metal foreign matter with images in a preset image library; when there is an image in the preset image library matching the initial metal foreign matter, judging that the initial metal foreign matter satisfies the preset alarm condition.
5. The early warning method of claim 1, wherein, The alarm includes visual alarm and audible and light alarm, and the sending alarm information comprises: sending alarm information to a display device to display the position of target metal foreign matter on the display device, the target metal foreign matter being the initial metal foreign matter satisfying the preset alarm condition; sending alarm information to an audible and light alarm to perform audible and light alarm by the audible and light alarm.
6. A cremation safety warning system based on X-ray scanning, characterized by, The early warning system comprises: an acquisition module configured to obtain a two-dimensional projection digital image of a body in a target coffin, the two-dimensional projection digital image being obtained by X-ray scanning; a preprocessing module configured to preprocess the two-dimensional projection digital image to obtain a preprocessed image; an identification module configured to identify metal foreign matter in the preprocessed image by using a gray threshold segmentation image recognition algorithm to obtain initial metal foreign matter; an alarm module configured to send alarm information in response to the initial metal foreign matter satisfying a preset alarm condition.
7. An electronic device, comprising: comprise: a memory configured to store instructions; a processor configured to call the instructions from the memory and capable of realizing the X-ray scanning based cremation safety early warning method according to any one of claims 1 to 5 when executing the instructions.
8. A machine-readable storage medium, characterized in that, The machine readable storage medium has instructions stored thereon, the instructions being used to make a machine execute the X-ray scanning based cremation safety early warning method according to any one of claims 1 to 5.
9. A computer program product, characterised in that, The instructions in the computer program product are executed by a processor of an electronic device, so that the electronic device executes the X-ray scanning based cremation safety early warning method according to any one of claims 1 to 5.