A modular hospital layout design method and system based on CGAN network
The CGAN network automatically generates a makeshift hospital layout that complies with the "three zones and two channels" principle, solving the problems of low design efficiency and difficulty in channel separation design in the existing technology, and achieving quick response and efficient layout design.
Patent Information
- Application Number
- CN202310960770.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-01
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-08-01
AI Technical Summary
The existing technology is inefficient when designing the floor plan of mobile cabin hospitals. In particular, it is difficult to separate the channels for patients and medical staff. The planned land is irregular and the response goals are inconsistent, which leads to increased design time.
Using a method based on the CGAN network, by training the layout map generator and discriminator network, deep learning technology is used to automatically generate a layout map of the makeshift hospital that complies with the principle of "three zones and two channels", and is combined with the Dropout layer and image structure similarity algorithm to adjust Network weight parameters to generate a layout that meets the requirements.
It improves the efficiency of layout design of mobile cabin hospitals and can quickly generate qualified and optimal layout drawings to meet the needs of health and epidemic prevention and reduce design difficulty and time-consuming.
Smart Images

Figure CN116975974B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of deep learning technology, and in particular relates to a modular hospital layout design method and system based on a CGAN network. Background Art
[0002] The Fangcang shelter hospital uses the medical shelter as its basic unit, which can quickly and massively treat relevant injured or patients to meet the needs of emergency treatment. It has the characteristics of strong mobility, rapid deployment, and strong environmental adaptability. It plays an important role in major public health events such as earthquake relief, sudden infectious diseases, etc.
[0003] Fangcang shelter hospitals are large-scale and complex engineering projects, composed of modular technical equipment. When designing their floor plans, we must not only consider operational benefits, but also reasonably plan the channels for patients and medical staff, and follow the design principles of "three zones and two channels" and "clean and dirty separation" to meet special needs such as hygiene and epidemic prevention. Therefore, the floor plan design of Fangcang shelter hospitals is time-consuming and laborious, which restricts their ability to respond and deploy quickly.
[0004] Most current design methods rely on referring to existing project design plans, combining the layout of traditional medical facilities, and making improvements on the planned land. However, due to the complexity of the square cabin hospital design, the manual design method is inefficient, especially the need to separate the channels for the injured and medical staff, which increases the workload of trial and error; on the other hand, due to the irregularity of the planned land and inconsistent response goals (disaster relief, infectious diseases), the design is more difficult and time-consuming. Summary of the invention
[0005] In view of the above analysis, the present invention aims to provide a method and system for designing the layout of a shelter hospital based on a CGAN network, and to improve the efficiency of the layout design of a shelter hospital by using deep learning technology.
[0006] On the one hand, the present invention provides a method for designing the layout of a shelter hospital based on a CGAN network, which specifically includes the following steps:
[0007] Based on the existing actual layout map of the Fangcang Hospital and the corresponding planned land contour map, the CGAN network is trained to obtain the layout map generator network;
[0008] Based on the planned land contour map of the target shelter hospital, the layout map generator network is used to generate multiple target shelter hospital layout maps corresponding to the planned land contour map;
[0009] Evaluate whether each of the target shelter hospital layout diagrams is qualified, and if not, regenerate and evaluate again until the obtained multiple target shelter hospital layout diagrams are all qualified;
[0010] The optimal target shelter hospital layout diagram is determined based on the qualified target shelter hospital layout diagram.
[0011] Furthermore, the CGAN network includes a layout graph generator network and a layout graph discriminator network.
[0012] Furthermore, during training: the input of the layout map generator network is the planned land outline map of the square cabin hospital, and the output is the generated corresponding square cabin hospital layout map; the input of the layout map discriminator network is the generated square cabin hospital layout map and the actual layout map of the square cabin hospital, and the output is the layout map confidence, wherein each medical function block in the actual layout map is marked with a standard block function color.
[0013] Furthermore, during training, the layout map generator network uses the planned land contour map of the square cabin hospital as a label input, generates random noise by the Dropout layer as a noise input, and generates a corresponding square cabin hospital layout map as an output.
[0014] Furthermore, during training, the weight parameters of the layout graph generator network and the layout graph discriminator network are adjusted based on the loss function LOSS of the CGAN network until the layout graph confidence meets the training requirements.
[0015] Further, the evaluating the plurality of corresponding target shelter hospital layout diagrams to obtain a plurality of qualified target shelter hospital layout diagrams includes:
[0016] The following judgment is made on the layout of each target shelter hospital:
[0017] Traverse each medical functional block of the target Fangcang shelter hospital layout diagram to obtain the "three zones" outline map of the Fangcang shelter hospital, and determine whether there is overlap between the three zone outline maps. If not, the three zone division is qualified, and if so, the three zone division is unqualified;
[0018] The dynamic programming method of the traveling salesman problem is used to generate a streamline diagram of the "two channels" based on the layout diagram of the target square cabin hospital, and it is judged whether the streamlines corresponding to the "two channels" are independent and have no intersections. If not, the channel layout is unqualified. If so, it is judged whether the patient channel only passes through the isolation area and whether the medical staff channel passes through the isolation area, buffer area, and work preparation area in sequence. If all of them are true, the channel layout is qualified, otherwise the channel layout is unqualified;
[0019] The target Fangcang Cabin Hospital layout diagram with unqualified three-zone division or channel layout is regenerated and judged until the target Fangcang Cabin Hospital layout diagram with qualified three-zone division and channel layout is obtained.
[0020] Further, determining the optimal target shelter hospital layout diagram based on the multiple qualified target shelter hospital layout diagrams includes:
[0021] The target cabin hospital layout with the shortest total length of the two channels is the optimal target cabin hospital layout.
[0022] Furthermore, based on the planned land contour map of the target shelter hospital, the trained CGAN network is used to generate multiple corresponding target shelter hospital layout maps of the planned land contour map, including:
[0023] The layout map generator network of the trained CGAN network is used to generate the layout map of the target shelter hospital. Each time it is generated, the planned land contour map of the target shelter hospital is input as a label, and the random noise generated by the Dropout layer is used as the noise input to generate the corresponding target shelter hospital layout map.
[0024] On the other hand, the present invention also provides a cabin hospital layout design system based on the CGAN network, comprising:
[0025] The network training module is used to train the CGAN network based on the existing actual layout map of the Fangcang Hospital and the corresponding planned land contour map to obtain a layout map generator network;
[0026] A layout diagram generation module is used to generate multiple target shelter hospital layout diagrams corresponding to the planned land use contour map based on the planned land use contour map of the target shelter hospital using the layout diagram generator network for multiple times;
[0027] A layout diagram evaluation module is used to evaluate whether each of the target shelter hospital layout diagrams is qualified, and if not, regenerate and evaluate it until a qualified target shelter hospital layout diagram is obtained;
[0028] A layout diagram output module is used to determine the optimal target cabin hospital layout diagram based on the multiple qualified target cabin hospital layout diagrams.
[0029] Furthermore, the CGAN network includes a layout graph generator network and a layout graph discriminator network, and the layout graph discriminator network uses an image structure similarity algorithm to calculate the layout graph confidence.
[0030] The present invention can achieve at least one of the following beneficial effects:
[0031] The present invention introduces deep learning technology and provides a new idea for the planning and design of cabin hospitals. By using the conditional generative adversarial network (CGAN) technology, it extracts information from the existing features of the existing cabin hospital layout design scheme and conducts self-training to obtain a generation model of the plane layout. The layout design drawing can be quickly generated, thereby improving the efficiency of the cabin hospital layout design and being able to quickly respond to health and epidemic prevention needs and make arrangements in actual work.
[0032] By traversing the functional blocks of the generated equation hospital layout diagram, it is checked whether the "three-zone" division of the layout diagram is qualified; the dynamic programming method of the traveling salesman problem is used to generate a "two-channel" streamline diagram based on the target cabin hospital layout diagram, and it is traversed to see whether the "two-channel" layout is qualified, and whether the channel sequence is qualified, and finally a target cabin hospital layout diagram with a qualified design is obtained, and based on the dynamic programming method of the traveling salesman problem, the layout diagram with the shortest channel distance is selected as the final cabin hospital layout diagram, which ensures that the method of the present invention can quickly generate a qualified and optimal layout diagram, is practical and easy to promote and apply.
[0033] Other features and advantages of the present invention will be described in the following description, and some advantages may become apparent from the description, or may be understood by practicing the present invention. The purpose and other advantages of the present invention may be realized and obtained through the contents particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;
[0035] Figure 1 This is a flow chart of the layout design method of the square cabin hospital of the present invention;
[0036] Figure 2 The division of medical functional areas of the square cabin hospital in the method embodiment;
[0037] Figure 3 The structure of the layout diagram generator network of the present invention;
[0038] Figure 4 FIG. 4 is the structure of the layout diagram discriminator network of the present invention. DETAILED DESCRIPTION
[0039] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0040] Method Embodiment
[0041] A specific embodiment of the present invention discloses a modular hospital layout design method based on a CGAN network, which specifically includes the following steps:
[0042] Step S01: Train the CGAN network based on the existing actual layout map of the Fangcang Hospital and the corresponding planned land contour map to obtain a layout map generator network.
[0043] Specifically, the CGAN network includes a layout graph generator network and a layout graph discriminator network.
[0044] Specifically, the existing planned land outline maps of Fangcang shelter hospitals and the corresponding actual layout maps are collected, and each medical functional block in the actual layout map is marked with standard block functional colors. The collected planned land outline maps of Fangcang shelter hospitals and the corresponding color-labeled actual layout maps are used as training sets to train the CGAN network. Figure 2 This is the division of medical functional areas of the Fangcang Cabin Hospital. The figure includes three levels of division, of which the first level is the specific medical functional division, the second level is the three-zone division, namely the contaminated zone, the buffer zone and the work preparation zone, and the third level is the medical block, namely the reception area, the patient area and the medical technology area; specifically, the functional blocks marked with colors refer to the first-level division, namely the medical functional division.
[0045] Specifically, during training: the input of the layout map generator network is the planned land outline map of the square cabin hospital, and the output is the generated corresponding square cabin hospital layout map; the input of the layout map discriminator network is the generated square cabin hospital layout map and the actual layout map of the square cabin hospital with marked colors, and the output is the layout map confidence.
[0046] Specifically, the layout generator network uses U-Net as the main network structure, including a fully connected layer (FC), a Dropout layer, a convolutional layer, and a deconvolutional layer. Specifically, during training, the layout generator network uses the planned land contour map of the Fangcang Hospital as a label input, and the Gaussian random noise generated by the Dropout layer as a noise input, and generates the corresponding Fangcang Hospital layout map as an output. The convolutional layer is used as an encoder for downsampling, and feature extraction is performed on the input planned land contour map to extract its contour features; the deconvolution layer is used as a decoder for upsampling to generate feature information and specific layout of the layout map. The feature information includes the color, size, and shape of the color blocks representing each functional block in the layout map. Figure 3 Schematic diagram of the structure of the layout graph generator network.
[0047] Specifically, during training, the weight parameters of the layout graph generator network and the layout graph discriminator network are adjusted based on the loss function LOSS of the CGAN network until the layout graph confidence meets the training requirements. Specifically, the smaller the LOSS value, the greater the possibility that the layout confidence meets the training requirements.
[0048] Specifically, Figure 4As shown in the figure, the structure of the layout discriminator network includes a first convolutional layer, a second convolutional layer introducing PatchGAN, and an output layer; wherein, the first convolutional layer is used to extract features of the input actual layout diagram and the layout diagram generated by the layout diagram generator, respectively, including extracting the color, size, and shape of the color blocks of each functional block in the layout diagram; the second convolutional layer introducing PatchGAN is used to use the image structure similarity algorithm (SSIM) to calculate the overall similarity between the actual layout diagram and the generated layout diagram. The overall similarity SSIM takes a value of [0,1]. The closer the value is to 1, the higher the similarity between the two images, that is, the more difficult it is for the discriminator to distinguish the two images.
[0049] Specifically, SSIM imitates human perception by simulating the characteristics that humans are not sensitive to the absolute brightness or color of pixels, but are sensitive to edges (structural similarity) and textures (brightness similarity and contrast similarity), and mainly compares the edge and texture similarity between images. The similarity includes the brightness similarity of the two images (measured by the average grayscale, that is, the average of all pixel values), contrast similarity (by comparing the standard deviation of pixel values) and structural similarity (comparing the correlation coefficient of pixel values), and the similarity is the product of the above similarities.
[0050] Specifically, before applying the image structural similarity algorithm (SSIM), the second convolutional layer uses PatchGAN to convert the two-dimensional feature vectors representing the two layout diagrams output by the first convolutional layer into n*n feature matrices, and each point in the n*n matrix represents the feature vector of the corresponding block area in the n*n block in the layout image, so as to further improve the accuracy of training. Preferably, n=4. Specifically, when there is no PatchGAN, the layout discriminator network only calculates the SSIM for the entire image and then determines the confidence. However, when PatchGAN is introduced, the image is divided into n*n blocks, and the SSIM value of each block is calculated based on the mapped matrix for the divided multiple blocks, and then the overall SSIM value is obtained by averaging, and the confidence is determined based on the overall SSIM value. This can make the confidence result more accurate.
[0051] Specifically, the confidence value is determined based on the similarity calculation result of SSIM. Specifically, the similarity calculation result of SSIM is compared with a preset threshold. When the SSIM calculation result is higher than or equal to the threshold, the confidence is 1, and when the SSIM calculation result is lower than the threshold, the confidence is 0, that is, the confidence value is a binary value of [0, 1]. Generally, the preset threshold is set according to the experience of actually training the CGAN network.
[0052] Specifically, the principle of CGAN network training is: the layout generator network generates a layout map of the square cabin hospital based on the planned land contour map and random noise. Its main purpose is to make the layout discriminator unable to distinguish the generated layout map from the actual layout map, while the purpose of the layout discriminator network is to distinguish the two layout maps, thus forming a zero-sum game between the two, and therefore it is necessary to calculate the layout map confidence. Specifically, during training, the weight parameters of the network are adjusted by calculating the network loss function LOSS. The smaller the LOSS, the greater the possibility of the confidence being 1; specifically, different functional areas are marked with blocks of different colors in the actual layout map. The layout discriminator network calculates the similarity between the actual layout map and the generated layout map by using the image structure similarity algorithm (SSIM). The smaller the LOSS, the higher the similarity. In this way, the weight parameters of the CGAN network are adjusted to achieve the purpose of training and learning.
[0053] In actual applications, since Fangcang shelter hospitals need to be deployed quickly, the multi-layer structure brings inconvenience to construction and maintenance. Therefore, Fangcang shelter hospitals generally present a single-layer compact layout. Therefore, the color blocks representing the same functional area in the actual layout diagram are unique, and the actual layout diagrams are all plan views.
[0054] Step S02: Based on the planned land contour map of the target shelter hospital, use the layout map generator network to generate multiple target shelter hospital layout maps corresponding to the planned land contour map.
[0055] Specifically, the layout map generator network of the trained CGAN network is used to generate the layout map of the target cabin hospital. Each time it is generated, the planned land contour map of the target cabin hospital is input as a label, and random noise is generated by the Dropout layer as noise input to generate the corresponding target cabin hospital layout map.
[0056] Specifically, the same planned land contour map is generated multiple times, and random noise is generated by the Dropout layer each time, so that the target cabin hospital layout map generated each time is different.
[0057] Step S03: Evaluate whether each of the target Fangcang Cabin Hospital layout drawings is qualified. If not, regenerate and evaluate them until all the obtained target Fangcang Cabin Hospital layout drawings are qualified.
[0058] Specifically, the following judgment is made on the layout diagram of each target shelter hospital:
[0059] Traverse each medical functional block of the target Fangcang shelter hospital layout diagram to obtain the "three zones" outline map of the Fangcang shelter hospital, and determine whether there is overlap between the three zone outline maps. If not, the three zone division is qualified, and if so, the three zone division is unqualified;
[0060] The dynamic programming method of the traveling salesman problem is used to generate a streamline diagram of the "two channels" based on the layout diagram of the target square cabin hospital, and it is determined whether the streamlines corresponding to the "two channels" are independent and have no intersections. If not, the channel layout is unqualified. If so, it is determined whether the patient channel only passes through the isolation area and whether the medical staff channel passes through the isolation area, buffer area, and work preparation area in sequence. If all are true, the channel layout is qualified, otherwise the channel layout is unqualified; specifically, a program can be used to traverse the data structure of the patient channel. If a non-isolation area appears in its data structure, it indicates that the patient channel is unqualified; specifically, a program can be used to find out whether the head and tail of the medical staff channel data structure correspond to the isolation area and the work preparation area respectively, and the isolation area and the work preparation area should not be adjacent, otherwise the medical staff channel is unqualified;
[0061] The target Fangcang Cabin Hospital layout diagram with unqualified three-zone division or channel layout is regenerated and judged until the target Fangcang Cabin Hospital layout diagram with qualified three-zone division and channel layout is obtained.
[0062] Specifically, the principle for evaluating whether the layout of each of the target Fangcang shelter hospitals is qualified is as follows: "Three zones and two channels" refers to the reasonable zoning and channel setting of the centralized medical observation site according to needs, and physical partitions are required for isolation. It is an important principle for Fangcang shelter hospitals to prevent cross infection and reduce health and safety risks. Therefore, the evaluation is carried out around the "three zones and two channels". Specifically, the "three zones" refer to the contaminated area (i.e., the isolation area), the buffer zone, and the work preparation area. Different areas must be strictly demarcated, physically isolated, and clearly marked; the two channels refer to the staff channel and the isolation personnel channel. The two channels cannot cross, and should be distributed at both ends of the site as much as possible, and clearly marked.
[0063] Step S04: Determine the optimal target shelter hospital layout diagram based on the qualified target shelter hospital layout diagrams.
[0064] Specifically, the target cabin hospital layout diagram with the shortest total length of the two channels is the optimal target cabin hospital layout diagram.
[0065] The present embodiment discloses a method for designing the layout of a shelter hospital based on a CGAN network. By using the conditional generative adversarial network (CGAN) technology, the existing shelter hospital layout map and the corresponding planned land contour map are used as training data sets for self-training to obtain a layout map generation network. The layout map can be quickly generated according to the planned land contour map, thereby greatly improving the efficiency of the shelter hospital layout design. Moreover, the present embodiment checks whether the "three-zone" division of the layout map is qualified by traversing the functional blocks of the generated equation hospital layout map, and generates a "two-channel" streamline map by using the dynamic programming method of the traveling salesman problem, and traverses whether the "two-channel layout is qualified, and checks whether the channel sequence is qualified. The qualified target shelter hospital layout map can be quickly obtained, and the layout map with the shortest channel distance is selected as the shelter hospital layout map based on the dynamic programming method of the traveling salesman problem. The layout map is practical and easy to promote and apply.
[0066] System Example
[0067] A shelter hospital layout design system based on CGAN network, including:
[0068] A network training module is used to train the CGAN network based on the existing actual layout map of the Fangcang Hospital and the corresponding planned land contour map to obtain a layout map generator network; the CGAN network includes a layout map generator network and a layout map discriminator network, and the layout map discriminator network uses an image structure similarity algorithm to calculate the layout map confidence.
[0069] A layout diagram generation module is used to generate multiple target cabin hospital layout diagrams corresponding to the planned land use outline map based on the planned land use outline map of the target cabin hospital using the layout diagram generator network for multiple times.
[0070] The layout diagram evaluation module is used to evaluate whether each of the target shelter hospital layout diagrams is qualified. If not, regenerate and evaluate it until a qualified target shelter hospital layout diagram is obtained.
[0071] A layout diagram output module is used to determine the optimal target cabin hospital layout diagram based on the multiple qualified target cabin hospital layout diagrams.
[0072] It should be noted that the above-mentioned system embodiments and method embodiments are based on the same inventive concept, and parts not described repeatedly can be used as reference for each other.
[0073] Compared with the prior art, the present embodiment provides a shelter hospital layout design system based on the CGAN network, which can use the existing designed shelter hospital layout map and the planned land contour map as the training basis to train the layout map generation network, and then generate the target shelter hospital layout map based on the given planned land contour map as input. The system of this embodiment can avoid the inefficiency of the manual design method and the large trial and error workload when separating the channels for the injured and medical staff, and can improve the design efficiency, reduce the difficulty and time consumption of the design, and is easy to promote and use.
[0074] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A modular hospital layout design method based on CGAN network, characterized in that: The steps include: The CGAN network is trained based on the existing actual layout map of the Fangcang Hospital and the corresponding planned land contour map to obtain a layout map generator network; the CGAN network includes a layout map generator network and a layout map discriminator network; during training: the input of the layout map generator network is the planned land contour map of the Fangcang Hospital, and the output is the generated corresponding Fangcang Hospital layout map; the input of the layout map discriminator network is the generated Fangcang Hospital layout map and the actual layout map of the Fangcang Hospital, and the output is the layout map confidence, wherein each medical function block in the actual layout map is marked with a standard block function color, and the color blocks representing the same function area in the actual layout map are unique and actual. The layout diagrams are all planar diagrams; the structure of the layout diagram discriminator network includes a first convolutional layer, a second convolutional layer introducing PatchGAN, and an output layer; the first convolutional layer is used to extract features of the input actual layout diagram and the layout diagram generated by the layout diagram generator, including extracting the color, size, and shape of the color blocks of each functional block in the layout diagram; the second convolutional layer introducing PatchGAN is used to use the image structure similarity algorithm SSIM to calculate the overall similarity between the actual layout diagram and the generated layout diagram, and the overall similarity SSIM takes a value of [0,1]. The closer the value is to 1, the higher the similarity between the two images, that is, the more difficult it is for the discriminator to distinguish the two images; Based on the planned land contour map of the target shelter hospital, the layout map generator network is used to generate multiple target shelter hospital layout maps corresponding to the planned land contour map; Evaluate whether each of the target Fangcang hospital layout diagrams is qualified, if not, regenerate and evaluate until the multiple target Fangcang hospital layout diagrams are qualified; including: make the following judgment on each of the target Fangcang hospital layout diagrams: traverse each medical function block of the target Fangcang hospital layout diagram to obtain the "three-zone" outline diagram of the Fangcang hospital, and judge whether there is overlap between the three-zone outline diagrams. If not, the three-zone division is qualified, and if so, the three-zone division is unqualified; use the dynamic programming method of the traveling salesman problem to generate a "two-channel" streamline diagram based on the target Fangcang hospital layout diagram, and judge whether the streamlines corresponding to the "two channels" are independent and non-intersecting. If not, the channel layout is unqualified. If so, judge whether the patient channel only passes through the isolation area and whether the medical staff channel passes through the isolation area, the buffer zone, and the work preparation area in sequence. If all are yes, the channel layout is qualified, otherwise the channel layout is unqualified; regenerate and judge the target Fangcang hospital layout diagram with unqualified three-zone division or channel layout, until the target Fangcang hospital layout diagram with qualified three-zone division and channel layout is obtained; The optimal target cabin hospital layout diagram is determined based on the qualified target cabin hospital layout diagram, including: the target cabin hospital layout diagram with the shortest total length of two passages is the optimal target cabin hospital layout diagram.
2. The layout design method of the square cabin hospital according to claim 1 is characterized in that: During training, the layout generator network uses the planned land contour map of the square cabin hospital as label input, generates random noise by Dropout as noise input, and generates the corresponding square cabin hospital layout map as output.
3. The layout design method of the square cabin hospital according to claim 2 is characterized in that: During training, the weight parameters of the layout graph generator network and the layout graph discriminator network are adjusted based on the loss function LOSS of the CGAN network until the layout graph confidence meets the training requirements.
4. The layout design method of the square cabin hospital according to claim 1 is characterized in that: Based on the planned land contour map of the target shelter hospital, the trained CGAN network is used to generate multiple corresponding target shelter hospital layout maps of the planned land contour map, including: The layout map generator network of the trained CGAN network is used to generate the layout map of the target shelter hospital. Each time it is generated, the planned land contour map of the target shelter hospital is input as a label, and the random noise generated by the Dropout layer is used as the noise input to generate the corresponding target shelter hospital layout map.
5. A modular hospital layout design system based on CGAN network, characterized in that: include: A network training module is used to train the CGAN network based on the existing actual layout map of the Fangcang Hospital and the corresponding planned land contour map to obtain a layout map generator network; the CGAN network includes a layout map generator network and a layout map discriminator network; during training: the input of the layout map generator network is the planned land contour map of the Fangcang Hospital, and the output is the generated corresponding Fangcang Hospital layout map; the input of the layout map discriminator network is the generated Fangcang Hospital layout map and the actual layout map of the Fangcang Hospital, and the output is the layout map confidence, wherein each medical function block in the actual layout map is marked with a standard block function color, and the color blocks representing the same function area in the actual layout map The actual layout diagrams are all unique and planar; the structure of the layout diagram discriminator network includes a first convolutional layer, a second convolutional layer introducing PatchGAN, and an output layer; the first convolutional layer is used to extract features of the input actual layout diagram and the layout diagram generated by the layout diagram generator, including extracting the color, size, and shape of the color blocks of each functional block in the layout diagram; the second convolutional layer introducing PatchGAN is used to use the image structure similarity algorithm SSIM to calculate the overall similarity between the actual layout diagram and the generated layout diagram, and the overall similarity SSIM takes a value of [0,1]. The closer the value is to 1, the higher the similarity between the two images, that is, the more the discriminator cannot distinguish the two images; A layout diagram generation module is used to generate multiple target shelter hospital layout diagrams corresponding to the planned land use contour map based on the planned land use contour map of the target shelter hospital using the layout diagram generator network for multiple times; The layout diagram evaluation module is used to evaluate whether each of the target Fangcang hospital layout diagrams is qualified. If not, it is regenerated and evaluated until the multiple target Fangcang hospital layout diagrams are qualified; including: the following judgment is made on each of the target Fangcang hospital layout diagrams: traverse each medical function block of the target Fangcang hospital layout diagram to obtain the "three-zone" outline diagram of the Fangcang hospital, and judge whether there is overlap between the three-zone outline diagrams. If not, the three-zone division is qualified, and if so, the three-zone division is unqualified; the dynamic programming method of the traveling salesman problem is used to generate a "two-channel" streamline diagram based on the target Fangcang hospital layout diagram, and judge whether the streamlines corresponding to the "two channels" are independent and non-intersecting. If not, the channel layout is unqualified. If so, it is judged whether the patient channel only passes through the isolation area and whether the medical staff channel passes through the isolation area, the buffer zone, and the work preparation area in sequence. If all are yes, the channel layout is qualified, otherwise the channel layout is unqualified; the target Fangcang hospital layout diagram with unqualified three-zone division or channel layout is regenerated and judged until the target Fangcang hospital layout diagram with qualified three-zone division and channel layout is obtained; A layout diagram output module is used to determine the optimal target cabin hospital layout diagram based on the multiple qualified target cabin hospital layout diagrams, including: the target cabin hospital layout diagram with the shortest total length of two channels is the optimal target cabin hospital layout diagram.
6. The modular hospital layout design system according to claim 5, characterized in that: The CGAN network includes a layout graph generator network and a layout graph discriminator network, and the layout graph discriminator network uses an image structure similarity algorithm to calculate the layout graph confidence.
