A method and apparatus for automatically locating residential electrical device points

By automatically identifying room and furniture information in architectural drawings and using a preset rule base to automatically generate electrical equipment locations and connections, the problem of low efficiency and inconsistent design in residential electrical design is solved, and intelligent and standardized electrical equipment layout is achieved.

CN122263237APending Publication Date: 2026-06-23GLODON CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GLODON CO LTD
Filing Date
2026-03-27
Publication Date
2026-06-23

Smart Images

  • Figure CN122263237A_ABST
    Figure CN122263237A_ABST
Patent Text Reader

Abstract

The application discloses a kind of method and device for automatically arranging residential electrical equipment point, the method includes: by automatically identifying room unit in building drawing, and using preset identification model extracts room information and furniture information, and then based on the preset equipment arrangement rule base automatically determines and arranges lamp, switch, socket and smoke detector and other electrical equipment legend, according to the preset wire connection rule, the automatic connection between each point is completed, and finally the complete electrical equipment connection plan is generated;The application can quickly, efficiently and standardly automatically arrange electrical equipment point in residential building model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer-aided design technology, and in particular to a method and apparatus for automatically arranging the locations of electrical equipment in a residential building. Background Technology

[0002] In the field of residential building electrical engineering design, the placement of electrical equipment points within residential units primarily relies on manual operation by designers. Designers manually place various electrical equipment points in the building information model (BIM) based on room names, locations, and relevant design specifications. However, when a residential unit has a large number of rooms, the designer must manually identify and place the electrical equipment points for each room within the building model. This process is repetitive and lacks technical difficulty, leading to low design efficiency. Furthermore, due to the reliance on manual operation, design quality is prone to deviations due to differences in the designer's individual experience, making it difficult to maintain consistency and standardization in design outcomes across different designers or projects.

[0003] Therefore, how to automatically arrange electrical equipment locations in residential building models has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] The purpose of this invention is to provide a method and apparatus for automatically arranging electrical equipment points in a residential building. This invention can quickly, efficiently and systematically arrange electrical equipment points in a residential building model.

[0005] According to one aspect of the present invention, a method for automatically arranging the locations of electrical equipment in a residential building is provided, the method comprising:

[0006] Obtain the architectural drawings of the target residence and identify each room unit from the architectural drawings; The corresponding room information and furniture information are identified from each room unit using a preset recognition model; wherein, the room information includes: room identifier, room outline and door position, and the furniture information includes: furniture identifier and furniture position; Based on a preset equipment layout rule library, the locations for arranging electrical equipment are determined in each room unit according to the room information and furniture information, and corresponding electrical equipment diagrams are arranged at each determined location; wherein, the electrical equipment includes: lamps, switches, sockets and smoke detectors; Based on preset wire connection rules, wires are connected to the electrical equipment symbols at each point in all room units to generate an electrical equipment connection plan of the target residence.

[0007] Optionally, the method based on a preset equipment layout rule base determines the locations for arranging electrical equipment in each room unit according to the room information and furniture information of each room unit, and arranges the corresponding electrical equipment legend at each determined location, including: Obtain lighting layout rules from the equipment layout rule base, determine the lighting fixture type that has a mapping relationship with the room identifier of a room unit according to the lighting fixture layout rules, and arrange the lighting fixture legend corresponding to the lighting fixture type on the lighting fixture position determined by the center position of the room outline of the room unit; The switch layout rules are obtained from the equipment layout rule library. Based on the door position of a room unit, the wall corresponding to the door position is identified from the architectural drawings. The switch positions are determined on the preset side of the wall according to the preset switch layout spacing in the switch layout rules. Switch diagrams are then arranged at the switch positions. Obtain socket layout rules from the equipment layout rule base, determine the socket type and preset relative spacing that have a mapping relationship with the furniture identifier of a piece of furniture according to the socket layout rules, and arrange the socket legend corresponding to the socket type at the socket point at the preset relative spacing from the furniture position of the furniture. The detector placement rules are obtained from the device placement rule library. Based on the detector placement rules, a placement sub-rule that maps to the room identifier of a room unit is determined. The detector placement points are determined based on the room outline of the room unit according to the placement sub-rule. Detector legends are placed at the detector placement points.

[0008] Optionally, the step of obtaining lighting fixture layout rules from the equipment layout rule base, determining the lighting fixture type that has a mapping relationship with the room identifier of a room unit according to the lighting fixture layout rules, and arranging the lighting fixture legend corresponding to the lighting fixture type at the lighting fixture position determined by the center position of the room outline of the room unit includes: Obtain the room type and lighting type mapping table and the center point determination strategy from the lighting arrangement rules; The room identifier is parsed, and the room type field and room number field are separated from the room identifier. The room type and lighting type mapping table is used to determine the lighting type corresponding to the room type field. If the room type field belongs to a preset set of damp room types, the lighting type is a waterproof and dustproof lighting type. If the room type field belongs to a preset set of ordinary room types, the lighting type is an ordinary lighting type. The center point determination strategy is invoked to perform geometric analysis on the room outline, calculate the geometric center point of the room outline, and determine the geometric center point as the lighting fixture location; Retrieve the lamp illustration corresponding to the lamp type from the preset equipment illustration library, and place the lamp illustration at the lamp location.

[0009] Optionally, the step of obtaining switch layout rules from the equipment layout rule library, identifying the wall corresponding to the door position in the architectural drawings based on the door position of a room unit, determining switch positions on a preset side of the wall according to the preset switch layout spacing in the switch layout rules, and arranging switch diagrams at the switch positions includes: Identify the wall corresponding to the door location of the room unit from the architectural drawings; Obtain the room identifier of the room unit, parse the room type field from the room identifier, and determine whether the room type field belongs to the set of room types arranged outside the door in the switch layout rules; wherein, the set of room types arranged outside the door includes at least the bathroom room type and the balcony room type; If yes, then the outdoor side of the wall is determined as the switch arrangement side, and switch points at a distance from the preset switch arrangement spacing at the door position are determined on the outdoor side; if no, then the indoor side of the wall is determined as the switch arrangement side, and switch points at a distance from the preset switch arrangement spacing at the door position are determined on the indoor side. Retrieve the switch icon corresponding to the switch type from the preset equipment icon library, and place the switch icon on the switch location.

[0010] Optionally, the step of obtaining socket layout rules from the equipment layout rule library, determining the socket type and preset relative spacing that have a mapping relationship with the furniture identifier of a piece of furniture according to the socket layout rules, and arranging the socket legend corresponding to the socket type at the socket point at the preset relative spacing from the furniture position of the furniture, includes: Parse the furniture identifier and separate the furniture type field and furniture number field from the furniture identifier; If the furniture type field is a double bed, then a first high-voltage power outlet and a second high-voltage power outlet are determined on both sides of the double bed frame according to a preset first horizontal distance, and a high-voltage power outlet symbol is arranged at the first high-voltage power outlet and the second high-voltage power outlet; and a first low-voltage power outlet is determined on a preset single side of the double bed frame according to a preset second horizontal distance, and a telephone socket symbol is arranged at the first low-voltage power outlet. If the furniture type field is sofa, then the third and fourth high-voltage socket points are determined on both sides of the sofa body according to a preset third horizontal spacing, and a high-voltage socket symbol is arranged at the third and fourth high-voltage socket points; and the second and third low-voltage socket points are determined on a preset single side of the sofa body according to a preset fourth horizontal spacing, and a telephone socket symbol is arranged at the second low-voltage socket point, and an emergency call button symbol is arranged at the third low-voltage socket point. If the furniture type field is a television, then the wall closest to the television is identified, and the fifth high-voltage socket location is determined at the center of the wall. A high-voltage socket illustration is arranged at the fifth high-voltage socket location. Also, the fourth and fifth low-voltage socket locations are determined at the center of the wall. A network socket illustration is arranged at the fourth low-voltage socket location, and a television socket illustration is arranged at the fifth low-voltage socket location. If the furniture type field is air conditioner, then identify the wall closest to the air conditioner, determine the sixth power socket location at the center of the wall, and arrange the power socket diagram at the sixth power socket location; If the furniture type field is a dining table, then identify the wall closest to the dining table, determine the location of the seventh power socket at the center of the wall, and arrange a power socket diagram at the location of the seventh power socket. If the furniture type field is refrigerator, then identify the wall closest to the refrigerator, determine the location of the eighth power socket at the center of the wall, and arrange the power socket legend at the location of the eighth power socket. If the furniture type field is a washing machine, then identify the wall closest to the washing machine, determine the ninth power socket location at the center of the wall, and arrange a power socket diagram at the ninth power socket location; If the furniture type field is a range hood, then the tenth power socket point is determined at the preset single-side position of the range hood, and a power socket diagram is arranged at the tenth power socket point; If the furniture type field is a toilet, then the eleventh power socket location is determined at the preset single-side position of the toilet, and a power socket diagram is arranged at the eleventh power socket location. If the furniture type field is cabinet, then identify the gap positions between each cabinet body of the cabinet, determine the twelfth power socket position at each gap position, and arrange the power socket legend at each twelfth power socket position; If the furniture type field is a washbasin, then identify the side wall adjacent to the washbasin, determine the location of the thirteenth power socket on the side wall, and arrange the power socket diagram at the location of the thirteenth power socket. If the furniture type field is table, then identify the wall closest to the table, determine the sixth low-voltage socket location at the center of the wall, and arrange a network socket at the sixth low-voltage socket location.

[0011] Optionally, the step of obtaining detector placement rules from the device placement rule library, determining placement sub-rules that have a mapping relationship with the room identifier of a room unit according to the detector placement rules, determining detector placement points based on the room outline of the room unit according to the placement sub-rules, and placing detector icons at the detector placement points includes: Parse the room type field from the room identifier and determine the room type represented by the room type field; If the room type field represents a kitchen, then the range hood in the room unit is identified from the architectural drawings, the location of the range hood is obtained, and the detector placement point is determined on the upper side of the range hood based on the range hood location. A smoke detector diagram is then placed at the detector placement point. If the room type field represents a bedroom, living room, or dining room, then obtain the room outline of the room unit, calculate the geometric center point of the room outline, use the geometric center point as the detector placement point, and place a home smoke detector legend at the detector placement point.

[0012] Optionally, the step of connecting electrical equipment symbols at various points in all room units with wires based on preset wire connection rules to generate an electrical equipment connection plan of the target residence includes: Obtain the room identifier for each room unit, and determine whether each room unit belongs to the bathroom room type based on the room identifier; If yes, then identify the light fixture symbols and switch symbols in the room unit, and generate an independent circuit wire symbol from the light fixture symbols and switch symbols to the power distribution box symbol; if no, then identify the light fixture symbols and corresponding switch symbols in the room unit, and use the shortest path algorithm to generate a circuit wire symbol connecting the light fixture symbols, the switch symbols and the power distribution box symbol. Identify the high-voltage socket legends in each room unit, and use the shortest path algorithm to generate high-voltage parallel wire legends that connect the high-voltage socket legends in the same room unit and converge to the high-voltage distribution box legend; Identify the low-voltage socket legends in each room unit, and use the shortest path algorithm to generate low-voltage parallel wire legends that connect the low-voltage socket legends in the same room unit and converge to the low-voltage distribution box legend; The independent circuit conductor diagram, the circuit conductor diagram, the high-voltage parallel conductor diagram, and the low-voltage parallel conductor diagram are associated with the various electrical equipment diagrams to generate the electrical equipment connection plan of the target residence.

[0013] To achieve the above objectives, the present invention also provides an apparatus for automatically arranging the locations of residential electrical equipment, the apparatus comprising: The acquisition module is used to acquire the architectural drawings of the target residence and identify each room unit from the architectural drawings; The identification module is used to identify the corresponding room information and furniture information from each room unit using a preset identification model; wherein, the room information includes: room identifier, room outline and door position, and the furniture information includes: furniture identifier and furniture position; The layout module is used to determine the locations for arranging electrical equipment in each room unit based on a preset equipment layout rule library, according to the room information and furniture information of each room unit, and to arrange the corresponding electrical equipment legend at each determined location; wherein, the electrical equipment includes: lamps, switches, sockets and smoke detectors; The connection module is used to connect the electrical equipment diagrams at each point in all room units based on preset wire connection rules, and generate an electrical equipment connection plan of the target residence.

[0014] To achieve the above objectives, the present invention also provides a computer device, which specifically includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for automatically arranging residential electrical equipment locations described above.

[0015] To achieve the above objectives, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for automatically arranging residential electrical equipment locations described above.

[0016] This invention provides a method and apparatus for automatically arranging electrical equipment points in residential buildings. It automatically identifies room units in architectural drawings, extracts room and furniture information using a preset identification model, and then automatically determines and arranges electrical equipment such as lights, switches, sockets, and smoke detectors based on a preset equipment layout rule library. Following preset wiring connection rules, it automatically connects the various points, ultimately generating a complete electrical equipment connection plan. The entire process, from drawing recognition to plan generation, is fully automated, eliminating the need for manual identification of room furniture and manual placement of equipment. This significantly improves the efficiency of residential electrical design. Furthermore, since all equipment point arrangements and wiring connections follow unified rules and standards, it eliminates design deviations caused by differences in individual designer experience, ensuring consistency and standardization of design results across different projects, making residential electrical design more intelligent and standardized. Attached Figure Description

[0017] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a schematic flowchart of an optional method for automatically arranging residential electrical equipment locations as provided in Embodiment 1. Figure 2 This is a schematic diagram of an optional component structure of the device for automatically arranging residential electrical equipment locations provided in Embodiment 2; Figure 3 This is a schematic diagram of an optional hardware structure for the computer device provided in Embodiment 3. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without inventive effort are within the scope of protection of this invention.

[0019] Example 1 This invention provides a method for automatically arranging the locations of electrical equipment in a residential building, such as... Figure 1 As shown, the method specifically includes the following steps: Step S101: Obtain the architectural drawings of the target residence and identify each room unit from the architectural drawings.

[0020] In this embodiment, the architectural drawings can be building information models, computer-aided design drawings, or other formats of architectural design documents. These drawings contain geometric and attribute information of building components, including at least walls, doors, windows, and internal layout units such as rooms and furniture. From the acquired architectural drawings, the name of each room unit is textually labeled. A preset recognition algorithm identifies the name and outline of each independent room unit. By recognizing each room unit, independent room units can be quickly and accurately extracted from the architectural drawings, ensuring that each room is completely identified and has clear boundaries. This avoids omissions or errors that may occur with manual identification, providing reliable spatial data support for subsequent room information extraction and equipment location determination, thus improving the efficiency and accuracy of the entire automated process.

[0021] Step S102: Use a preset recognition model to identify the corresponding room information and furniture information from each room unit; wherein, the room information includes: room identifier, room outline and door position, and the furniture information includes: furniture identifier and furniture position.

[0022] In this embodiment, room information is obtained from the attribute parameters of the room unit, typically the room name set by the designer, such as master bedroom, living room, kitchen, bathroom, etc. The room outline is a polygon formed by the walls surrounding the room unit, used to determine the room's boundaries and geometry. Door location is determined from the position of the doorway element within the room unit. Furniture information is obtained from the attribute parameters of the furniture elements, typically the furniture name or type identifier, such as double bed, sofa, TV cabinet, refrigerator, range hood, etc. The occupied area of ​​the furniture elements in the architectural drawings and the information of the walls they are against are extracted for subsequent determination of the electrical equipment requirements corresponding to the furniture. Using a preset text or graphic recognition model, by recognizing the annotation information in the architectural drawings, the information of each room and the furniture within the room can be quickly and accurately identified, realizing an automated conversion from architectural drawings to structured information.

[0023] Step S103: Based on the preset equipment layout rule library, determine the locations for arranging electrical equipment in each room unit according to the room information and furniture information of each room unit, and arrange the corresponding electrical equipment legend at each determined location; wherein, the electrical equipment includes: lamps, switches, sockets and smoke detectors.

[0024] In this embodiment, a pre-established equipment layout rule base is created. This rule base stores the mapping relationships and layout rules between various electrical devices and room and furniture features, including at least lighting, switch, socket, and detector layout rules. Based on the extracted room and furniture information, the corresponding rules in the rule base are invoked to automatically generate the locations of electrical devices in each room unit, and a corresponding electrical device illustration is placed at each location. The electrical devices include at least: lighting fixtures, switches, high-voltage sockets, low-voltage sockets, and smoke detectors. By establishing the equipment layout rule base and combining the identified room and furniture information, the optimal placement of various electrical devices is automatically determined and corresponding illustrations are generated. This completely eliminates the repetitive labor of traditional manual layout, while ensuring the standardization and consistency of the design results, making the electrical equipment layout both user-friendly and safety-compliant.

[0025] Step S104: Based on the preset wire connection rules, connect the wires of the electrical equipment legends at each point in all room units to generate the electrical equipment connection plan of the target residence.

[0026] In this embodiment, the locations of the high-voltage and low-voltage distribution box legends in the architectural drawings are obtained. The wiring connection rules include the division of connection circuits for lighting fixtures and switches, as well as the connection circuit rules for high-voltage and low-voltage sockets. The high-voltage distribution box legend is used to connect the high-voltage circuits formed by various high-voltage sockets, lighting fixtures, switches, and smoke detectors; the low-voltage distribution box legend is used to connect the low-voltage signal lines formed by telephone sockets, emergency call buttons, network sockets, and television sockets. Based on the preset wiring connection rules, the wiring connections between all electrical devices are automatically completed, and a complete floor plan is generated. This process can automatically distinguish the independent circuit requirements of special areas such as bathrooms according to room type, avoiding the problems of incorrect or missing connections that are prone to occur with manual wiring, while ensuring the rationality of circuit division.

[0027] In this embodiment, by automatically identifying room units in architectural drawings and extracting room and furniture information using a preset identification model, the system automatically determines and arranges electrical equipment such as lights, switches, sockets, and smoke detectors based on a preset equipment layout rule library. Then, it automatically connects the various points according to preset wire connection rules, ultimately generating a complete electrical equipment connection plan. The entire process achieves fully automated processing from drawing recognition to plan generation, eliminating the need for manual identification of room furniture and manual placement of equipment, significantly improving the efficiency of residential electrical design. At the same time, since the layout of all equipment points and wire connections follow unified rules and standards, design deviations caused by differences in the designer's personal experience are eliminated, ensuring the consistency and standardization of design results for different projects, making residential electrical design more intelligent and standardized.

[0028] Specifically, in step S103, based on a preset equipment layout rule base, according to the room information and furniture information of each room unit, the locations for arranging electrical equipment in each room unit are determined, and corresponding electrical equipment symbols are arranged at each determined location, including: Step A1: Obtain the lighting layout rules from the equipment layout rule library, determine the lighting type that has a mapping relationship with the room identifier of a room unit according to the lighting layout rules, and arrange the lighting legend corresponding to the lighting type on the lighting point determined by the center position of the room outline of the room unit; Step A2: Obtain switch layout rules from the equipment layout rule library, identify the wall corresponding to the door position in the building drawings according to the door position of a room unit, determine the switch positions on the preset side of the wall according to the preset switch layout spacing in the switch layout rules, and arrange switch diagrams at the switch positions. Step A3: Obtain the socket layout rules from the equipment layout rule library, determine the socket type and preset relative spacing that have a mapping relationship with the furniture identifier of a piece of furniture according to the socket layout rules, and place the socket legend corresponding to the socket type at the socket point at the preset relative spacing from the furniture position of the furniture. Step A4: Obtain detector placement rules from the device placement rule library, determine placement sub-rules that have a mapping relationship with the room identifier of a room unit according to the detector placement rules, determine the detector placement points based on the room outline of the room unit according to the placement sub-rules, and place detector legends at the detector placement points.

[0029] In this embodiment, lighting fixture arrangement rules, switch arrangement rules, socket arrangement rules, and detector arrangement rules are obtained from a preset equipment arrangement rule library. For lighting fixture arrangement, the corresponding lighting fixture type is determined based on the room type parsed from the room identifier, and the corresponding lighting fixture icon is arranged with the geometric center of the room outline as the lighting fixture point. For switch arrangement, the wall where the door is located is identified based on the door position, and the switch points are calculated and arranged on a preset side of the wall according to the preset switch arrangement spacing. For socket arrangement, the corresponding socket type and preset relative spacing are determined based on the furniture identifier, and the socket points are calculated and arranged with the preset relative spacing offset from the furniture position as the reference. For detector arrangement, the corresponding arrangement rule is determined based on the room identifier, and the detector points are calculated and arranged with smoke detector icons according to the rule based on the room outline or the position of internal components. By establishing independent rule calling and point calculation logic for each type of electrical equipment, differentiated and refined automatic arrangement based on room information and furniture information is achieved.

[0030] Further, step A1, which involves obtaining lighting fixture layout rules from the equipment layout rule library, determining the lighting fixture types that have a mapping relationship with the room identifier of a room unit based on the lighting fixture layout rules, and arranging the lighting fixture legends corresponding to the lighting fixture types at the lighting fixture positions determined by the center position of the room outline of the room unit, includes: Step A11: Obtain the room type and lighting type mapping table and the center point determination strategy from the lighting layout rules; Step A12: Parse the room identifier, separate the room type field and room number field from the room identifier, and use the room type to light fixture type mapping table to determine the light fixture type corresponding to the room type field; wherein, if the room type field belongs to a preset set of damp room types, the light fixture type is a waterproof and dustproof light fixture type, and if the room type field belongs to a preset set of ordinary room types, the light fixture type is an ordinary light fixture type; Step A13: Invoke the center point determination strategy to perform geometric analysis on the room outline, calculate the geometric center point of the room outline, and determine the geometric center point as the light fixture location; Step A14: Retrieve the lamp illustration corresponding to the lamp type from the preset equipment illustration library, and place the lamp illustration at the lamp location.

[0031] In this embodiment, a room type field and a room number field are separated from the room identifier. The room type field is used to characterize the functional attributes of the room, such as bedroom, entrance hall, living room, dining room, bathroom, and balcony. The room number field is used to distinguish multiple rooms of the same type, such as master bedroom and secondary bedroom. If the room type field belongs to a preset damp room type, which includes bathrooms and balconies, then the lighting fixture type is determined to be a waterproof and dustproof light to meet the electrical safety requirements of damp environments. If the room type field belongs to a preset ordinary room type, which includes bedrooms, living rooms, entrance halls, and dining rooms, then the lighting fixture type is determined to be an ordinary light. Then, the center point determination strategy is invoked to perform geometric analysis on the room outline and calculate the geometric center point of the room outline as the lighting fixture position. The geometric center point can be the centroid or center point of the polygon to ensure that the lighting fixture is located in the optimal lighting position in the room. Finally, the system retrieves the corresponding lamp icon from a pre-defined equipment icon library and places the icon at the lamp location. The library stores graphic symbols for various electrical equipment; waterproof and dustproof lamps correspond to waterproof and dustproof lamp icons, and ordinary lamps correspond to ordinary lamp icons. The mapping between room type and lamp type enables automatic matching of lamp types based on room function, and geometric center point calculation ensures the rationality of lamp placement and uniform lighting.

[0032] Further, step A2, which involves obtaining switch layout rules from the equipment layout rule library, identifying the wall corresponding to the door position in the architectural drawings based on the door position of a room unit, determining switch locations on a preset side of the wall according to the preset switch layout spacing in the switch layout rules, and arranging switch diagrams at the switch locations, includes: Step A21: Identify the wall corresponding to the door location of the room unit from the architectural drawings; Step A22: Obtain the room identifier of the room unit, parse the room type field from the room identifier, and determine whether the room type field belongs to the set of room types arranged outside the door in the switch arrangement rules; wherein, the set of room types arranged outside the door includes at least the bathroom room type and the balcony room type; Step A23: If yes, then determine the outdoor side of the wall as the switch arrangement side, and determine the switch points on the outdoor side at a distance from the preset switch arrangement spacing at the door position; if no, then determine the indoor side of the wall as the switch arrangement side, and determine the switch points on the indoor side at a distance from the preset switch arrangement spacing at the door position. Step A24: Retrieve the switch icon corresponding to the switch type from the preset equipment icon library, and place the switch icon on the switch location.

[0033] In this embodiment, the parsed room type field determines whether the room belongs to the set of room types for switch placement outside the door in the switch placement rules. The set of room types for switch placement outside the door is a preset set of special room types, including at least bathroom room types and balcony room types. These types of rooms require switches to be placed outside the room due to dampness or special usage needs. If it is a bathroom or balcony, the switch is placed on the exterior wall, and a switch point is set on the exterior wall at a certain distance from the door, a position that is easy for people to touch. If the room type is a bedroom, entrance hall, dining room, or kitchen, the switch is placed on the interior wall, and a switch point is set on the interior wall at a certain distance from the door. In particular, in this embodiment, the preset distance between the switch point and the door is 150mm in width and 1300mm in height. A single-pole double-control switch is set in the bedroom, and a single-pole single-control switch is set in other rooms except the bedroom. Finally, the switch legend corresponding to the switch type is retrieved from the preset equipment legend library, and the switch legend is placed on the corresponding switch point. The system automatically selects whether to place switches indoors or outdoors based on room type, ensuring that switches in special rooms such as bathrooms and balconies are placed on the outside of the door to meet safety regulations, while ensuring that switches in ordinary rooms are placed on the inside of the door to conform to usage habits. This achieves adaptive decision-making for switch placement.

[0034] Further, step A3, which involves obtaining socket layout rules from the equipment layout rule library, determining the socket type and preset relative spacing that have a mapping relationship with the furniture identifier of a piece of furniture based on the socket layout rules, and placing the socket icon corresponding to the socket type at the socket point at the preset relative spacing from the furniture position, includes: Step A301: Parse the furniture identifier and separate the furniture type field and furniture number field from the furniture identifier; Step A302: If the furniture type field is a double bed, then determine the first high-voltage socket position and the second high-voltage socket position on both sides of the double bed frame according to a preset first horizontal distance, and arrange a high-voltage socket symbol at the first high-voltage socket position and a high-voltage socket symbol at the second high-voltage socket position; and determine the first low-voltage socket position on a preset single side of the double bed frame according to a preset second horizontal distance, and arrange a telephone socket symbol at the first low-voltage socket position; Step A303: If the furniture type field is sofa, then determine the third and fourth high-voltage socket positions on both sides of the sofa body according to a preset third horizontal spacing, and arrange a high-voltage socket symbol at the third and fourth high-voltage socket positions; and determine the second and third low-voltage socket positions on a preset single side of the sofa body according to a preset fourth horizontal spacing, and arrange a telephone socket symbol at the second low-voltage socket position, and arrange an emergency call button symbol at the third low-voltage socket position. Step A304: If the furniture type field is television, then identify the wall closest to the television, determine the fifth high-voltage socket location at the center of the wall, and arrange a high-voltage socket legend at the fifth high-voltage socket location; and determine the fourth and fifth low-voltage socket locations at the center of the wall, arrange a network socket legend at the fourth low-voltage socket location, and arrange a television socket legend at the fifth low-voltage socket location; Step A305: If the furniture type field is air conditioner, identify the wall closest to the air conditioner, determine the location of the sixth power socket at the center of the wall, and arrange the power socket diagram at the location of the sixth power socket. Step A306: If the furniture type field is a dining table, then identify the wall closest to the dining table, determine the location of the seventh power socket at the center of the wall, and arrange a power socket diagram at the location of the seventh power socket; Step A307: If the furniture type field is refrigerator, then identify the wall closest to the refrigerator, determine the location of the eighth power socket at the center of the wall, and arrange the power socket diagram at the location of the eighth power socket. Step A308: If the furniture type field is a washing machine, then identify the wall closest to the washing machine, determine the ninth power socket location at the center of the wall, and arrange the power socket diagram at the ninth power socket location; Step A309: If the furniture type field is range hood, then determine the tenth power socket location at the preset single-side position of the range hood, and arrange the power socket diagram at the tenth power socket location; Step A310: If the furniture type field is a toilet, then determine the eleventh power socket location at the preset single-side position of the toilet, and arrange the power socket diagram at the eleventh power socket location. Step A311: If the furniture type field is cabinet, then identify the gap positions between each cabinet body of the cabinet, determine the twelfth power socket position at each gap position, and arrange the power socket diagram at each twelfth power socket position. Step A312: If the furniture type field is a washbasin, then identify the side wall adjacent to the washbasin, determine the location of the thirteenth power socket on the side wall, and arrange the power socket diagram at the location of the thirteenth power socket. Step A313: If the furniture type field is table, identify the wall closest to the table, determine the sixth low-voltage socket location at the center of the wall, and arrange the network socket at the sixth low-voltage socket location.

[0035] In this embodiment, the furniture type field and furniture number field are separated from the furniture identifier. The furniture type field is used to characterize the functional attributes of the furniture, such as double bed, sofa, television, air conditioner, dining table, refrigerator, washing machine, range hood, toilet, cabinet, washbasin, table, etc. Based on different furniture type fields, preset socket layout rules are invoked. These rules include the corresponding high-voltage or low-voltage sockets for each type of furniture, their quantity, and specific offset parameters relative to the furniture position. For a double bed, high-voltage socket locations are determined on both sides of the bed frame at a first horizontal distance (in this embodiment, this distance is 150mm from the side edge of the bed frame) to reserve space for bedside tables. A second horizontal distance is also predetermined on one side of the bed frame, such as a certain distance from the headboard edge, to determine telephone socket locations. For a sofa, high-voltage socket locations are determined on both sides of the sofa body at a third horizontal distance (in this embodiment, 300mm from the outer edge of the sofa body armrest). The system pre-determines the locations of telephone sockets and emergency call buttons on one side according to the fourth horizontal spacing. For televisions, it identifies the wall closest to the television and determines the locations of power sockets, network sockets, and television sockets at the center of that wall. For air conditioners, dining tables, refrigerators, and washing machines, it identifies the walls closest to them and determines the locations of power sockets at the center of each wall. For range hoods and toilets, it determines the locations of power sockets on their respective pre-determined one-sided locations, such as above the range hood and beside the toilet. For cabinets, it identifies the gaps between the cabinets and determines the locations of power sockets at each gap. For washbasins, it identifies the side wall adjacent to the washbasin and determines the locations of power sockets on that side. For tables, it identifies the wall closest to the table and determines the location of network sockets at the center of that wall. It retrieves socket icons corresponding to each socket type from a pre-determined equipment icon library and places them at the calculated socket locations. By establishing a multi-dimensional mapping between furniture type and socket requirements, precise socket placement based on the actual size and functional needs of furniture is achieved, ensuring that socket locations meet both ease of use and avoid being obstructed by furniture.

[0036] Further, step A4, which involves obtaining detector placement rules from the device placement rule library, determining placement sub-rules that map to the room identifier of a room unit based on the detector placement rules, determining detector placement points based on the room outline of the room unit according to the placement sub-rules, and placing detector icons at the detector placement points, includes: Step A41: Parse the room type field from the room identifier and determine the room type represented by the room type field; Step A42: If the room type field represents a kitchen, then identify the range hood in the room unit from the architectural drawings, obtain the location of the range hood, determine the detector placement point on the upper side of the range hood based on the range hood location, and place the smoke detector at the detector placement point. Step A43: If the room type field represents a bedroom, living room or dining room, then obtain the room outline of the room unit, calculate the geometric center point of the room outline, use the geometric center point as the detector placement point, and place a home smoke detector legend at the detector placement point.

[0037] In this embodiment, the room type field is parsed from the room identifier to determine the room type represented by the room type field. If the room type field represents a kitchen, the range hood in the room unit is identified from the architectural drawings, the location of the range hood is obtained, and the detector placement point is determined above the range hood based on the range hood location. A smoke detector legend is then placed at this point. If the room type field represents a bedroom, living room, or dining room, the room outline of the room unit is obtained, the geometric center point of the room outline is calculated, and this geometric center point is used as the detector placement point. A household smoke detector legend is then placed at this point. By automatically selecting different detector placement strategies based on the room type, the kitchen area utilizes the range hood location for targeted placement, while bedrooms, living rooms, dining rooms, and other residential areas utilize the room outline for centralized placement. This satisfies the differentiated requirements of fire safety regulations for different functional areas while ensuring the effective coverage of the detectors.

[0038] Specifically, step S104, based on preset wire connection rules, involves connecting the electrical equipment diagrams at various points in all room units with wires to generate an electrical equipment connection plan of the target residence, including: Step B1: Obtain the room identifier for each room unit, and determine whether each room unit belongs to the bathroom room type based on the room identifier; Step B2: If yes, identify the light fixture and switch symbols in the room unit and generate an independent circuit wire symbol from the light fixture and switch symbols to the power distribution box symbol; if no, identify the light fixture and corresponding switch symbols in the room unit and use the shortest path algorithm to generate a circuit wire symbol connecting the light fixture, switch, and power distribution box symbols. Step B3: Identify the high-voltage socket legends in each room unit, and use the shortest path algorithm to generate high-voltage parallel wire legends that connect the high-voltage socket legends in the same room unit to the high-voltage distribution box legend; Step B4: Identify the low-voltage socket legend in each room unit, and use the shortest path algorithm to generate a low-voltage parallel wire legend that connects the low-voltage socket legends in the same room unit to the low-voltage distribution box legend; Step B5: Associate the independent circuit conductor diagram, the circuit conductor diagram, the high-voltage parallel conductor diagram, and the low-voltage parallel conductor diagram with the diagrams of each electrical device to generate an electrical device connection plan of the target residence.

[0039] In this embodiment, electrical circuits are differentiated based on room type. Bathroom lighting fixtures are assigned a separate circuit connected to the power distribution box to meet the special safety requirements of a humid environment. For lighting fixtures in ordinary rooms, a shortest path algorithm is used to generate the wiring connecting the fixtures, switches, and the power distribution box, optimizing wiring distance while ensuring functionality. Secondly, high-voltage and low-voltage sockets are processed separately. Multiple high-voltage sockets in the same room are connected in parallel to the power distribution box, and multiple low-voltage sockets in the same room are connected in parallel to the low-voltage distribution box. This parallel connection ensures that each socket is independent in circuit principle and has stable voltage. The shortest path algorithm optimizes the connection sequence and routing between sockets. Finally, all types of circuit wiring are integrated with equipment diagrams to form a complete electrical equipment connection plan. By distinguishing between independent bathroom circuits, shortest path circuits in ordinary rooms, and parallel connections of high-voltage and low-voltage circuits, automation, standardization, and cost-effectiveness of wiring connections are achieved.

[0040] Furthermore, step S102, which involves using a preset recognition model to identify the corresponding room information and furniture information from each room unit, specifically includes: The set of line elements and the set of text elements are extracted from the architectural drawings; wherein, the line elements include straight line segments, arc segments and polylines, and the text elements include numbers, letters and Chinese characters; The set of line primitives is input into a pre-trained wall semantic segmentation model. The wall semantic segmentation model performs binary classification on each line primitive, outputting a probability value for each line primitive belonging to the wall category or not. Based on the probability value, the set of wall line primitives belonging to the wall category is selected from the set of line primitives. The wall semantic segmentation model adopts an encoder and decoder architecture. The encoder part extracts the geometric features of the line primitives based on a residual convolutional neural network, and the decoder part restores the spatial resolution and outputs a classification probability map based on transposed convolution. Based on the set of wall line primitives, the closed connected regions enclosed by the wall line primitives are identified by the graph theory connected region analysis algorithm. Each closed connected region is determined as a room unit, and the corresponding room outline and door position are calculated according to the boundary lines of each room unit. For each room unit, extract all non-wall line elements and text elements located inside the room outline of that room unit to form the internal element set of that room unit; The set of internal primitives is input into a pre-trained multimodal furniture recognition model, which includes a visual encoder based on the Transformer architecture and a text encoder based on the BERT architecture. The visual encoder extracts features from the geometric shape of the internal line primitives to generate a furniture geometric feature vector. The text encoder performs word embedding encoding on the semantic content of the internal text primitives to generate a furniture semantic feature vector. The furniture geometric feature vector and the furniture semantic feature vector are fused across modally to generate a furniture fusion feature vector. The furniture fusion feature vector is input into a fully connected classification layer, which outputs the furniture type probability distribution corresponding to each internal primitive, and determines the furniture identifier corresponding to each internal primitive based on the probability distribution. Based on the furniture type corresponding to the furniture identifier, multiple internal primitives belonging to the same furniture instance are spatially clustered and merged to generate the furniture outline of each furniture instance, and the furniture position is calculated based on the furniture outline; wherein, the furniture position is represented by the coordinates of the geometric center point of the furniture outline or the coordinates of the vertices of the minimum bounding rectangle; The furniture identifiers of all furniture instances identified in each room unit are used to form a furniture identifier set. The furniture identifier set is then input into a pre-trained room type inference model. The room type inference model adopts a graph attention network architecture, with furniture identifiers as nodes and the spatial relative positional relationship between furniture as edges. It aggregates the features of neighboring nodes through a multi-head attention mechanism, outputs the room type probability distribution corresponding to each room unit, and determines the room identifier of each room unit based on the probability distribution. The room identifier, room outline, and door location corresponding to each room unit, as well as the furniture identifier and furniture location corresponding to each furniture instance within each room unit, are assembled into room information and furniture information in a structured data format.

[0041] In this embodiment, a wall semantic segmentation model based on an encoder-decoder architecture is used to perform binary classification and identification of line primitives in the drawings to filter out wall lines. Next, a graph theory connected component analysis algorithm is used to identify closed connected regions enclosed by wall lines, determining the room outline and door position for each room unit. Then, for each room unit, a multimodal furniture recognition model is used to process the internal primitives. This model includes a visual encoder based on a Transformer architecture and a text encoder based on a BERT architecture, extracting the geometric and semantic features of the furniture and performing cross-modal fusion. A fully connected classification layer outputs the furniture type probability distribution to determine the furniture identifier. Next, spatial clustering merges multiple primitives of the same furniture instance to generate the furniture outline and furniture position. Finally, all furniture identifiers in the room are input into a room type inference model based on a graph attention network. Using furniture identifiers as nodes and furniture spatial relationships as edges, a multi-head attention mechanism aggregates neighbor features, outputting the room type probability distribution to determine the room identifier.

[0042] However, when processing architectural drawings, current technicians typically rely on manual annotation or simple rule matching to identify rooms and furniture. The line elements in the drawings lack semantic information and cannot automatically distinguish between walls and non-walls. Text annotations may be missing, non-standard, or separated from the elements, resulting in low accuracy when relying solely on text recognition. Furniture type recognition requires consideration of both geometric shapes and text annotations, and single-modal recognition is prone to errors. Room type judgment is often based solely on the room name, and cannot be recognized when the name is missing or non-standard.

[0043] Therefore, the wall semantic segmentation model automatically distinguishes between walls and non-walls, avoiding the subjectivity and errors of manual judgment; the multimodal furniture recognition model integrates geometric and semantic features, improving the accuracy of furniture type recognition; and the graph attention network comprehensively considers furniture type and spatial relationships, making room type inference more accurate. Even if the drawings lack text annotations or the annotations are not standardized, inferences can still be made through geometric features and spatial relationships, ensuring the system's adaptability. It not only identifies room identifiers but also fully extracts multi-dimensional information such as room outlines, door positions, furniture identifiers, and furniture positions, providing a comprehensive data foundation for the subsequent automatic placement of electrical equipment.

[0044] Furthermore, step S104, based on preset wire connection rules, involves connecting the electrical equipment diagrams at various points in all room units with wires to generate an electrical equipment connection plan of the target residence. Specifically, this includes: Obtain the coordinates of each point and the equipment type of the electrical equipment legend at each point; The outline information of building structural components is extracted from the architectural drawings, wherein the building structural components include beam components, column components and wall components; and the conductor laying constraints are read from a preset electrical specification library, wherein the conductor laying constraints include the minimum isolation distance between high-voltage lines and low-voltage lines and the minimum safe distance between conductors and building structural components. Based on the location coordinates and the equipment type, the shortest path algorithm is used to generate the initial path of the power socket from the power distribution box legend to each power socket legend, the initial path of the low voltage socket from the low voltage distribution box legend to each low voltage socket legend, and the initial path of the lighting circuit from the power distribution box legend through the switch legend to the lighting legend. All initial paths are combined into an initial path set. Each initial path is discretized into a graph structure data consisting of path nodes and path segments. The path nodes include the start point, end point, and turning points where the path direction changes. The graph structure data corresponding to each initial path, along with the distribution characteristics of building structural components in the area traversed by the initial path, are input into a pre-trained conflict risk assessment neural network. This conflict risk assessment neural network is based on a graph convolutional network architecture, using path nodes as aggregation objects. By aggregating the features of adjacent path nodes and the geometric features of path segments, it outputs a conflict risk score for each initial path. The conflict risk score represents the probability that the initial path will interfere with building structural components or that there is insufficient distance between it and other paths. If the conflict risk score exceeds a preset threshold, a path reconstruction mechanism is triggered. The path reconstruction mechanism uses a reinforcement learning algorithm to minimize the conflict risk score as the optimization objective, and avoidance of building structural components and satisfaction of minimum isolation distance as constraints. It re-searches for the optimal path in the remaining area after excluding building structural components until an optimized path set that meets the risk threshold requirements is generated. Each path in the optimized path set is associated with and bound to the corresponding electrical equipment legend to generate an electrical equipment connection plan of the target residence.

[0045] In this embodiment, after generating the initial conductor paths, each path is discretized into graph structure data consisting of a start point, an end point, and a turning point. Then, the graph structure data of the paths and the distribution characteristics of building structural components in the areas traversed by the paths are input into a conflict risk assessment neural network based on a graph convolutional network. By aggregating path node features and path segment geometric features, a conflict risk score for each initial path is output. This score characterizes the probability of the path interfering with building structures or having insufficient distance from other paths. If the risk score exceeds a preset threshold, a path reconstruction mechanism is triggered. This mechanism uses a reinforcement learning algorithm, with minimizing conflict risk as the optimization objective and avoiding building structures and meeting the requirements of electrical isolation distances as constraints. It re-searches for the optimal path in the available area until a set of optimized paths that meets the risk threshold is generated. Finally, the optimized paths are associated and bound with electrical equipment legends to generate an electrical equipment connection plan.

[0046] By introducing a conflict risk assessment model based on graph convolutional networks and a path reconstruction mechanism based on reinforcement learning, intelligent optimization of conductor paths is achieved. This solves the problems of poor path construction feasibility and high signal interference risk caused by traditional methods that do not fully consider building structural constraints and strong / weak current isolation requirements. It achieves the technical effects of automatically identifying high-risk paths, adaptively reconstructing optimal paths, ensuring compliance with specifications, and improving design efficiency. It also addresses the shortcomings of traditional conductor connection methods, which typically use simple straight-line connections or shortest path algorithms, failing to fully consider the physical limitations of building structural components on conductor laying and the electromagnetic interference between strong and weak current lines. This leads to conductor paths that may be unfeasible in actual construction due to structural interference or signal interference due to insufficient spacing between strong and weak current lines. Furthermore, manual inspection and adjustment of these paths requires significant time and experience, resulting in low efficiency and the potential for overlooking potential conflicts.

[0047] In this embodiment, the overall solution achieves the following beneficial effects: First, through fully automated processing, the repetitive labor of manually identifying drawings and drawing wire paths is completely eliminated, significantly improving design efficiency. Second, the intelligent identification and optimization mechanism based on deep learning models eliminates design deviations caused by differences in designer experience, ensuring the consistency and standardization of design results. Third, the multimodal fusion identification method gives the system strong robustness, enabling it to handle complex situations such as non-standard annotations. Finally, intelligent wire path optimization ensures the construction feasibility and standard compliance of the design results, effectively avoiding conflicts in later construction, and realizing high-quality, high-efficiency automated design from drawing input to electrical plan output.

[0048] Example 2 This invention provides a device for automatically arranging the locations of residential electrical equipment, such as... Figure 2As shown, the device specifically includes the following components: The acquisition module 201 is used to acquire the architectural drawings of the target residence and identify each room unit from the architectural drawings; The identification module 202 is used to identify the corresponding room information and furniture information from each room unit using a preset identification model; wherein, the room information includes: room identifier, room outline and door position, and the furniture information includes: furniture identifier and furniture position; The layout module 203 is used to determine the locations for arranging electrical equipment in each room unit based on a preset equipment layout rule library and according to the room information and furniture information of each room unit, and to arrange the corresponding electrical equipment legend at each determined location; wherein, the electrical equipment includes: lamps, switches, sockets and smoke detectors; The connection module 204 is used to connect the electrical equipment diagrams at each point in all room units based on preset wire connection rules, and generate an electrical equipment connection plan of the target residence.

[0049] Specifically, the arrangement module 203 is also used for: The lighting unit is used to obtain lighting layout rules from the equipment layout rule library, determine the lighting type that has a mapping relationship with the room identifier of a room unit according to the lighting layout rules, and arrange the lighting legend corresponding to the lighting type on the lighting point determined by the center position of the room outline of the room unit. The switch unit is used to obtain switch layout rules from the equipment layout rule library, identify the wall corresponding to the door position from the building drawings according to the door position of a room unit, determine the switch position on the preset side of the wall according to the preset switch layout spacing in the switch layout rules, and arrange switch diagrams at the switch positions. The socket unit is used to obtain socket layout rules from the equipment layout rule library, determine the socket type and preset relative spacing that have a mapping relationship with the furniture identifier of a piece of furniture according to the socket layout rules, and arrange the socket legend corresponding to the socket type at the socket point at the preset relative spacing from the furniture position of the furniture. The detector unit is used to obtain detector layout rules from the equipment layout rule library, determine layout sub-rules that have a mapping relationship with the room identifier of a room unit according to the detector layout rules, determine the detector layout points based on the room outline of the room unit according to the layout sub-rules, and arrange detector legends at the detector layout points.

[0050] Specifically, the lighting unit in the arrangement module 203 is used for: Obtain the room type and lighting type mapping table and the center point determination strategy from the lighting arrangement rules; The room identifier is parsed, and the room type field and room number field are separated from the room identifier. The room type and lighting type mapping table is used to determine the lighting type corresponding to the room type field. If the room type field belongs to a preset set of damp room types, the lighting type is a waterproof and dustproof lighting type. If the room type field belongs to a preset set of ordinary room types, the lighting type is an ordinary lighting type. The center point determination strategy is invoked to perform geometric analysis on the room outline, calculate the geometric center point of the room outline, and determine the geometric center point as the lighting fixture location; Retrieve the lamp illustration corresponding to the lamp type from the preset equipment illustration library, and place the lamp illustration at the lamp location.

[0051] Specifically, the switching unit in the arrangement module 203 is used for: Identify the wall corresponding to the door location of the room unit from the architectural drawings; Obtain the room identifier of the room unit, parse the room type field from the room identifier, and determine whether the room type field belongs to the set of room types arranged outside the door in the switch layout rules; wherein, the set of room types arranged outside the door includes at least the bathroom room type and the balcony room type; If yes, then the outdoor side of the wall is determined as the switch arrangement side, and switch points at a distance from the preset switch arrangement spacing at the door position are determined on the outdoor side; if no, then the indoor side of the wall is determined as the switch arrangement side, and switch points at a distance from the preset switch arrangement spacing at the door position are determined on the indoor side. Retrieve the switch icon corresponding to the switch type from the preset equipment icon library, and place the switch icon on the switch location.

[0052] Specifically, the socket unit in the arrangement module 203 is used for: Parse the furniture identifier and separate the furniture type field and furniture number field from the furniture identifier; If the furniture type field is a double bed, then a first high-voltage power outlet and a second high-voltage power outlet are determined on both sides of the double bed frame according to a preset first horizontal distance, and a high-voltage power outlet symbol is arranged at the first high-voltage power outlet and the second high-voltage power outlet; and a first low-voltage power outlet is determined on a preset single side of the double bed frame according to a preset second horizontal distance, and a telephone socket symbol is arranged at the first low-voltage power outlet. If the furniture type field is sofa, then the third and fourth high-voltage socket points are determined on both sides of the sofa body according to a preset third horizontal spacing, and a high-voltage socket symbol is arranged at the third and fourth high-voltage socket points; and the second and third low-voltage socket points are determined on a preset single side of the sofa body according to a preset fourth horizontal spacing, and a telephone socket symbol is arranged at the second low-voltage socket point, and an emergency call button symbol is arranged at the third low-voltage socket point. If the furniture type field is a television, then the wall closest to the television is identified, and the fifth high-voltage socket location is determined at the center of the wall. A high-voltage socket illustration is arranged at the fifth high-voltage socket location. Also, the fourth and fifth low-voltage socket locations are determined at the center of the wall. A network socket illustration is arranged at the fourth low-voltage socket location, and a television socket illustration is arranged at the fifth low-voltage socket location. If the furniture type field is air conditioner, then identify the wall closest to the air conditioner, determine the sixth power socket location at the center of the wall, and arrange the power socket diagram at the sixth power socket location; If the furniture type field is a dining table, then identify the wall closest to the dining table, determine the location of the seventh power socket at the center of the wall, and arrange a power socket diagram at the location of the seventh power socket. If the furniture type field is refrigerator, then identify the wall closest to the refrigerator, determine the location of the eighth power socket at the center of the wall, and arrange the power socket legend at the location of the eighth power socket. If the furniture type field is a washing machine, then identify the wall closest to the washing machine, determine the ninth power socket location at the center of the wall, and arrange a power socket diagram at the ninth power socket location; If the furniture type field is a range hood, then the tenth power socket point is determined at the preset single-side position of the range hood, and a power socket diagram is arranged at the tenth power socket point; If the furniture type field is a toilet, then the eleventh power socket location is determined at the preset single-side position of the toilet, and a power socket diagram is arranged at the eleventh power socket location. If the furniture type field is cabinet, then identify the gap positions between each cabinet body of the cabinet, determine the twelfth power socket position at each gap position, and arrange the power socket legend at each twelfth power socket position; If the furniture type field is a washbasin, then identify the side wall adjacent to the washbasin, determine the location of the thirteenth power socket on the side wall, and arrange the power socket diagram at the location of the thirteenth power socket. If the furniture type field is table, then identify the wall closest to the table, determine the sixth low-voltage socket location at the center of the wall, and arrange a network socket at the sixth low-voltage socket location.

[0053] Specifically, the detector unit in the arrangement module 203 is used for: Parse the room type field from the room identifier and determine the room type represented by the room type field; If the room type field represents a kitchen, then the range hood in the room unit is identified from the architectural drawings, the location of the range hood is obtained, and the detector placement point is determined on the upper side of the range hood based on the range hood location. A smoke detector diagram is then placed at the detector placement point. If the room type field represents a bedroom, living room, or dining room, then obtain the room outline of the room unit, calculate the geometric center point of the room outline, use the geometric center point as the detector placement point, and place a home smoke detector legend at the detector placement point.

[0054] Specifically, the connection module 204 is used for: Obtain the room identifier for each room unit, and determine whether each room unit belongs to the bathroom room type based on the room identifier; If yes, then identify the light fixture symbols and switch symbols in the room unit, and generate an independent circuit wire symbol from the light fixture symbols and switch symbols to the power distribution box symbol; if no, then identify the light fixture symbols and corresponding switch symbols in the room unit, and use the shortest path algorithm to generate a circuit wire symbol connecting the light fixture symbols, the switch symbols and the power distribution box symbol. Identify the high-voltage socket legends in each room unit, and use the shortest path algorithm to generate high-voltage parallel wire legends that connect the high-voltage socket legends in the same room unit and converge to the high-voltage distribution box legend; Identify the low-voltage socket legends in each room unit, and use the shortest path algorithm to generate low-voltage parallel wire legends that connect the low-voltage socket legends in the same room unit and converge to the low-voltage distribution box legend; The independent circuit conductor diagram, the circuit conductor diagram, the high-voltage parallel conductor diagram, and the low-voltage parallel conductor diagram are associated with the various electrical equipment diagrams to generate the electrical equipment connection plan of the target residence.

[0055] Example 3 This embodiment also provides a computer device, such as a smartphone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server, or cabinet server (including a standalone server or a server cluster composed of multiple servers), etc., capable of executing programs. Figure 3 As shown, the computer device 30 in this embodiment includes, but is not limited to, a memory 301 and a processor 302 that are communicatively connected to each other via a system bus. It should be noted that... Figure 3 Only a computer device 30 with components 301-302 is shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0056] In this embodiment, the memory 301 (i.e., the readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 301 may be an internal storage unit of the computer device 30, such as the hard disk or memory of the computer device 30. In other embodiments, the memory 301 may also be an external storage device of the computer device 30, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 30. Of course, the memory 301 may include both the internal storage unit and its external storage device of the computer device 30. In this embodiment, the memory 301 is typically used to store the operating system and various application software installed on the computer device 30. In addition, the memory 301 may also be used to temporarily store various types of data that have been output or will be output.

[0057] In some embodiments, processor 302 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. This processor 302 is typically used to control the overall operation of the computer device 30.

[0058] Specifically, in this embodiment, the processor 302 is used to execute the program of the method for automatically arranging the locations of residential electrical equipment stored in the memory 301. When the program of the method for automatically arranging the locations of residential electrical equipment is executed, it performs the following steps: Obtain the architectural drawings of the target residence and identify each room unit from the architectural drawings; The corresponding room information and furniture information are identified from each room unit using a preset recognition model; wherein, the room information includes: room identifier, room outline and door position, and the furniture information includes: furniture identifier and furniture position; Based on a preset equipment layout rule library, the locations for arranging electrical equipment are determined in each room unit according to the room information and furniture information, and corresponding electrical equipment diagrams are arranged at each determined location; wherein, the electrical equipment includes: lamps, switches, sockets and smoke detectors; Based on preset wire connection rules, wires are connected to the electrical equipment symbols at each point in all room units to generate an electrical equipment connection plan of the target residence.

[0059] For a detailed description of the above method steps, please refer to Example 1. This example will not be repeated here.

[0060] Example 4 This embodiment also provides a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, app store, etc., which stores a computer program. When the computer program is executed by a processor, it implements the following method steps: Obtain the architectural drawings of the target residence and identify each room unit from the architectural drawings; The corresponding room information and furniture information are identified from each room unit using a preset recognition model; wherein, the room information includes: room identifier, room outline and door position, and the furniture information includes: furniture identifier and furniture position; Based on a preset equipment layout rule library, the locations for arranging electrical equipment are determined in each room unit according to the room information and furniture information, and corresponding electrical equipment diagrams are arranged at each determined location; wherein, the electrical equipment includes: lamps, switches, sockets and smoke detectors; Based on preset wire connection rules, wires are connected to the electrical equipment symbols at each point in all room units to generate an electrical equipment connection plan of the target residence.

[0061] For a detailed description of the above method steps, please refer to the first embodiment. This embodiment will not repeat the details here.

[0062] It should be noted that, in this document, 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 a 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.

[0063] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0064] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.

[0065] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method for automatically arranging the locations of electrical equipment in a residential building, characterized in that, The method includes: Obtain the architectural drawings of the target residence and identify each room unit from the architectural drawings; The corresponding room information and furniture information are identified from each room unit using a preset recognition model; wherein, the room information includes: room identifier, room outline and door position, and the furniture information includes: furniture identifier and furniture position; Based on a preset equipment layout rule library, the locations for arranging electrical equipment are determined in each room unit according to the room information and furniture information, and corresponding electrical equipment diagrams are arranged at each determined location; wherein, the electrical equipment includes: lamps, switches, sockets and smoke detectors; Based on preset wire connection rules, wires are connected to the electrical equipment symbols at each point in all room units to generate an electrical equipment connection plan of the target residence.

2. The method for automatically arranging the locations of residential electrical equipment according to claim 1, characterized in that, The system, based on a preset equipment layout rule base, determines the locations for arranging electrical equipment in each room unit according to the room information and furniture information of each room unit, and arranges the corresponding electrical equipment legend at each determined location, including: Obtain lighting layout rules from the equipment layout rule base, determine the lighting fixture type that has a mapping relationship with the room identifier of a room unit according to the lighting fixture layout rules, and arrange the lighting fixture legend corresponding to the lighting fixture type on the lighting fixture position determined by the center position of the room outline of the room unit; The switch layout rules are obtained from the equipment layout rule library. Based on the door position of a room unit, the wall corresponding to the door position is identified from the architectural drawings. The switch positions are determined on the preset side of the wall according to the preset switch layout spacing in the switch layout rules. Switch diagrams are then arranged at the switch positions. Obtain socket layout rules from the equipment layout rule base, determine the socket type and preset relative spacing that have a mapping relationship with the furniture identifier of a piece of furniture according to the socket layout rules, and arrange the socket legend corresponding to the socket type at the socket point at the preset relative spacing from the furniture position of the furniture. The detector placement rules are obtained from the device placement rule library. Based on the detector placement rules, a placement sub-rule that maps to the room identifier of a room unit is determined. The detector placement points are determined based on the room outline of the room unit according to the placement sub-rule. Detector legends are placed at the detector placement points.

3. The method for automatically arranging the locations of residential electrical equipment according to claim 2, characterized in that, The step of obtaining lighting fixture layout rules from the equipment layout rule base, determining the lighting fixture type that has a mapping relationship with the room identifier of a room unit according to the lighting fixture layout rules, and arranging the lighting fixture legends corresponding to the lighting fixture types on the lighting fixture positions determined by the center position of the room outline of the room unit includes: Obtain the room type and lighting type mapping table and the center point determination strategy from the lighting arrangement rules; The room identifier is parsed, and the room type field and room number field are separated from the room identifier. The room type and lighting type mapping table is used to determine the lighting type corresponding to the room type field. If the room type field belongs to a preset set of damp room types, the lighting type is a waterproof and dustproof lighting type. If the room type field belongs to a preset set of ordinary room types, the lighting type is an ordinary lighting type. The center point determination strategy is invoked to perform geometric analysis on the room outline, calculate the geometric center point of the room outline, and determine the geometric center point as the lighting fixture location; Retrieve the lamp illustration corresponding to the lamp type from the preset equipment illustration library, and place the lamp illustration at the lamp location.

4. The method for automatically arranging the locations of residential electrical equipment according to claim 2, characterized in that, The process of obtaining switch layout rules from the equipment layout rule base, identifying the wall corresponding to the door position in the architectural drawings based on the door position of a room unit, determining switch positions on a preset side of the wall according to the preset switch layout spacing in the switch layout rules, and arranging switch diagrams at the switch positions includes: Identify the wall corresponding to the door location of the room unit from the architectural drawings; Obtain the room identifier of the room unit, parse the room type field from the room identifier, and determine whether the room type field belongs to the set of room types arranged outside the door in the switch layout rules; wherein, the set of room types arranged outside the door includes at least the bathroom room type and the balcony room type; If yes, then the outdoor side of the wall is determined as the switch arrangement side, and switch points at a distance from the preset switch arrangement spacing at the door position are determined on the outdoor side; if no, then the indoor side of the wall is determined as the switch arrangement side, and switch points at a distance from the preset switch arrangement spacing at the door position are determined on the indoor side. Retrieve the switch icon corresponding to the switch type from the preset equipment icon library, and place the switch icon on the switch location.

5. The method for automatically arranging the locations of residential electrical equipment according to claim 2, characterized in that, The step of obtaining socket layout rules from the equipment layout rule base, determining the socket type and preset relative spacing that have a mapping relationship with the furniture identifier of a piece of furniture according to the socket layout rules, and placing the socket legend corresponding to the socket type at the socket point at the preset relative spacing from the furniture position includes: Parse the furniture identifier and separate the furniture type field and furniture number field from the furniture identifier; If the furniture type field is a double bed, then a first high-voltage power outlet and a second high-voltage power outlet are determined on both sides of the double bed frame according to a preset first horizontal distance, and a high-voltage power outlet symbol is arranged at the first high-voltage power outlet and the second high-voltage power outlet; and a first low-voltage power outlet is determined on a preset single side of the double bed frame according to a preset second horizontal distance, and a telephone socket symbol is arranged at the first low-voltage power outlet. If the furniture type field is sofa, then the third and fourth high-voltage socket points are determined on both sides of the sofa body according to a preset third horizontal spacing, and a high-voltage socket symbol is arranged at the third and fourth high-voltage socket points; and the second and third low-voltage socket points are determined on a preset single side of the sofa body according to a preset fourth horizontal spacing, and a telephone socket symbol is arranged at the second low-voltage socket point, and an emergency call button symbol is arranged at the third low-voltage socket point. If the furniture type field is a television, then the wall closest to the television is identified, and the fifth high-voltage socket location is determined at the center of the wall. A high-voltage socket illustration is arranged at the fifth high-voltage socket location. Also, the fourth and fifth low-voltage socket locations are determined at the center of the wall. A network socket illustration is arranged at the fourth low-voltage socket location, and a television socket illustration is arranged at the fifth low-voltage socket location. If the furniture type field is air conditioner, then identify the wall closest to the air conditioner, determine the sixth power socket location at the center of the wall, and arrange the power socket diagram at the sixth power socket location; If the furniture type field is a dining table, then identify the wall closest to the dining table, determine the location of the seventh power socket at the center of the wall, and arrange a power socket diagram at the location of the seventh power socket. If the furniture type field is refrigerator, then identify the wall closest to the refrigerator, determine the location of the eighth power socket at the center of the wall, and arrange the power socket legend at the location of the eighth power socket. If the furniture type field is a washing machine, then identify the wall closest to the washing machine, determine the ninth power socket location at the center of the wall, and arrange a power socket diagram at the ninth power socket location; If the furniture type field is a range hood, then the tenth power socket point is determined at the preset single-side position of the range hood, and a power socket diagram is arranged at the tenth power socket point; If the furniture type field is a toilet, then the eleventh power socket location is determined at the preset single-side position of the toilet, and a power socket diagram is arranged at the eleventh power socket location. If the furniture type field is cabinet, then identify the gap positions between each cabinet body of the cabinet, determine the twelfth power socket position at each gap position, and arrange the power socket legend at each twelfth power socket position; If the furniture type field is a washbasin, then identify the side wall adjacent to the washbasin, determine the location of the thirteenth power socket on the side wall, and arrange the power socket diagram at the location of the thirteenth power socket. If the furniture type field is table, then identify the wall closest to the table, determine the sixth low-voltage socket location at the center of the wall, and arrange a network socket at the sixth low-voltage socket location.

6. The method for automatically arranging the locations of residential electrical equipment according to claim 2, characterized in that, The process of obtaining detector placement rules from the device placement rule base, determining placement sub-rules that map to the room identifier of a room unit based on the detector placement rules, determining detector placement points based on the room outline of the room unit according to the placement sub-rules, and placing detector icons at the detector placement points includes: Parse the room type field from the room identifier and determine the room type represented by the room type field; If the room type field represents a kitchen, then the range hood in the room unit is identified from the architectural drawings, the location of the range hood is obtained, and the detector placement point is determined on the upper side of the range hood based on the range hood location. A smoke detector diagram is then placed at the detector placement point. If the room type field represents a bedroom, living room, or dining room, then obtain the room outline of the room unit, calculate the geometric center point of the room outline, use the geometric center point as the detector placement point, and place a home smoke detector legend at the detector placement point.

7. The method for automatically arranging the locations of residential electrical equipment according to claim 1, characterized in that, Based on preset wire connection rules, the electrical equipment diagrams at various points in all room units are wired together to generate an electrical equipment connection plan of the target residence, including: Obtain the room identifier for each room unit, and determine whether each room unit belongs to the bathroom room type based on the room identifier; If yes, then identify the light fixture symbols and switch symbols in the room unit, and generate an independent circuit wire symbol from the light fixture symbols and switch symbols to the power distribution box symbol; if no, then identify the light fixture symbols and corresponding switch symbols in the room unit, and use the shortest path algorithm to generate a circuit wire symbol connecting the light fixture symbols, the switch symbols and the power distribution box symbol. Identify the high-voltage socket legends in each room unit, and use the shortest path algorithm to generate high-voltage parallel wire legends that connect the high-voltage socket legends in the same room unit and converge to the high-voltage distribution box legend; Identify the low-voltage socket legends in each room unit, and use the shortest path algorithm to generate low-voltage parallel wire legends that connect the low-voltage socket legends in the same room unit and converge to the low-voltage distribution box legend; The independent circuit conductor diagram, the circuit conductor diagram, the high-voltage parallel conductor diagram, and the low-voltage parallel conductor diagram are associated with the various electrical equipment diagrams to generate the electrical equipment connection plan of the target residence.

8. A device for automatically arranging the locations of electrical equipment in a residential building, characterized in that, The device includes: The acquisition module is used to acquire the architectural drawings of the target residence and identify each room unit from the architectural drawings; The identification module is used to identify the corresponding room information and furniture information from each room unit using a preset identification model; wherein, the room information includes: room identifier, room outline and door position, and the furniture information includes: furniture identifier and furniture position; The layout module is used to determine the locations for arranging electrical equipment in each room unit based on a preset equipment layout rule library, according to the room information and furniture information of each room unit, and to arrange the corresponding electrical equipment legend at each determined location; wherein, the electrical equipment includes: lamps, switches, sockets and smoke detectors; The connection module is used to connect the electrical equipment diagrams at each point in all room units based on preset wire connection rules, and generate an electrical equipment connection plan of the target residence.

9. A computer device, the computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.