Farm production posture recognition method and device in facility environment

By combining the image segmentation model and the OpenPose model with the support vector machine, the agricultural production posture is recognized, which solves the problem of low posture recognition accuracy in agricultural scenes and achieves higher recognition accuracy and intelligent analysis.

CN118865501AActive Publication Date: 2024-10-29BEIJING RES CENT FOR INFORMATION TECH & AGRI

Patent Information

Application Number
CN202410937628.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-29
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

Existing agricultural production posture recognition technology has low accuracy in agricultural scenes due to factors such as complex backgrounds and lighting changes, and cannot effectively identify agricultural production postures.

Method used

The image segmentation model and the human posture estimation framework OpenPose model are combined with the support vector machine to perform human target segmentation, whole body posture estimation and key point detection by obtaining target images in the facility environment, determine the trunk and hand joint point information, and match production gesture type to improve recognition accuracy.

Benefits of technology

By collaboratively representing the key joint point information of the trunk and gestures, the accuracy of agricultural production posture recognition is improved, suitable for complex agricultural scenes, reducing the cost of sample data set collection, and realizing intelligent analysis of the agricultural operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865501A_ABST
    Figure CN118865501A_ABST
Patent Text Reader

Abstract

The invention provides a farming production posture recognition method and device in a facility environment, and the method comprises the steps: segmenting a human body target in a target image, and obtaining a human body target image; performing whole body posture estimation and key point detection on the human body target image based on an OpenPose model to obtain joint points and joint communication areas of the human body target, and determining key joint point information of the human body target; and based on a support vector machine, determining a target attitude type matched with the key joint point information from a plurality of production attitude types. The operation links can be cooperatively represented by body and gesture actions in the farming operation process, the key joint point information of the trunk and the gesture is considered, and the accuracy of subsequent farming production posture recognition is improved. And an SVM classification method supporting low sample evaluation is used, and a plurality of production posture types in the farming production process are matched with key joint point information, so that intelligent analysis and acquisition of the farming operation process are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of agricultural automation, and in particular to a method and device for recognizing agricultural production postures in a facility environment. Background Art

[0002] Posture recognition in agricultural production refers to the process of using artificial intelligence technology, especially machine vision and deep learning technology, to identify and analyze human postures involved in agricultural production.

[0003] Although the existing agricultural production posture recognition frameworks and algorithms can provide methods for segmenting the human body in images and identifying operation processes under some relatively simple backgrounds, no more effective agricultural posture intelligent recognition has been proposed in view of the uncertainty in agricultural scenes, the high complexity of the background, and the characteristics of fogging and different changes in light intensity during the production process, resulting in low accuracy in agricultural production posture recognition. Summary of the invention

[0004] The present invention provides a method and a device for recognizing agricultural production postures in a facility environment, so as to improve the accuracy of agricultural production posture recognition in the facility environment.

[0005] The present invention provides a method for identifying agricultural production postures in a facility environment, comprising the following steps: Acquire a target image containing a human target in a facility environment; Based on the image segmentation model, segmenting the human target in the target image to obtain a human target image output by the image segmentation model; Based on the OpenPose model of the human pose estimation framework, the whole body posture estimation and key point detection are performed on the human target image to obtain the joint points of the human target and the joint connected area of ​​the human target, and based on the joint points and the joint connected area, the key joint point information of the human target is determined, and the key joint point information includes the hand joint point information of the human target and the torso joint point information of the human target; Based on a support vector machine, a target posture type matching the key joint point information is determined from a plurality of production posture types, and the target posture type is used as the production posture of the human target.

[0006] According to a method for recognizing postures of agricultural production in a facility environment provided by the present invention, the whole body posture estimation and key point detection of the human target image based on the OpenPose model of the human posture estimation framework are performed to obtain the joint points of the human target and the joint connected areas of the human target, including: Based on the PAFs method in the OpenPose model, full-body posture estimation and joint point detection are performed on the human target image to obtain the representation position of the joint points of the human target and the direction information of the joint points of the human target; Based on the representation position and the direction information, the joint points of the human target and the joint connected areas of the human target are determined.

[0007] According to a method for recognizing agricultural production postures in a facility environment provided by the present invention, the human target in the target image is segmented based on an image segmentation model to obtain a human target image output by the image segmentation model, including: Based on the mobile SAM image segmentation model, extracting the human body contour in the target image to obtain the human body contour in the target image; The target image is segmented according to the human body contour to obtain the human body target image.

[0008] According to a method for identifying agricultural production postures in a facility environment provided by the present invention, after taking the target posture type as the production posture of the human target, the method further includes: The time during which the human body target is in the production posture is counted to obtain the execution time during which the human body target is in the production posture; The production posture is associated with the execution time to obtain associated information, and the associated information is recorded.

[0009] According to a method for identifying agricultural production postures in a facility environment provided by the present invention, after recording the associated information, the method further includes: The agricultural products in the facility environment are determined, and agricultural records of the agricultural products are generated based on the product information of the agricultural products and the associated information.

[0010] According to a method for identifying agricultural production postures in a facility environment provided by the present invention, the multiple production posture types include seedling planting type, fertilization type, irrigation type, weeding type and harvesting type.

[0011] The present invention also provides a device for recognizing agricultural production postures in a facility environment, comprising the following modules: An image acquisition module, used for acquiring a target image containing a human target in a facility environment; A segmentation module, used for segmenting a human target in the target image based on an image segmentation model to obtain a human target image output by the image segmentation model; A joint point determination module is used to perform whole-body posture estimation and key point detection on the human target image based on the OpenPose model of the human posture estimation framework, obtain the joint points of the human target and the joint connected area of ​​the human target, and determine the key joint point information of the human target based on the joint points and the joint connected area, wherein the key joint point information includes the hand joint point information of the human target and the torso joint point information of the human target; The posture recognition module is used to determine a target posture type matching the key joint point information from multiple production posture types based on a support vector machine, and use the target posture type as the production posture of the human target.

[0012] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for recognizing agricultural production postures in any of the above-mentioned facility environments is implemented.

[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for recognizing agricultural production postures in any of the above-mentioned facility environments is implemented.

[0014] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the agricultural production posture recognition method in any of the above-mentioned facility environments.

[0015] The method and device for recognizing agricultural production postures in a facility environment provided by the present invention can collaboratively characterize the operation links by targeting the body and gesture movements in the agricultural operation process. In order to more accurately analyze the agricultural operation movements, the key joint point information of the trunk and gestures is considered, which is richer in semantics and improves the accuracy of subsequent agricultural production posture recognition. At the same time, in view of the difficulty and high cost of collecting sample data sets, the SVM classification method that supports low sample evaluation is used, and multiple production posture types in the agricultural production process are matched with key joint point information to realize intelligent analysis and collection of the agricultural operation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1It is a flow chart of the method for recognizing agricultural production postures in a facility environment provided by the present invention.

[0018] Figure 2 It is a schematic diagram of the trunk joint provided by the present invention.

[0019] Figure 3 It is a schematic diagram of hand joints provided by the present invention.

[0020] Figure 4 This is a schematic diagram of human body contour extraction provided by the present invention.

[0021] Figure 5 It is a flow chart of the method for recognizing agricultural production postures in a facility environment provided by the present invention.

[0022] Figure 6 It is a structural schematic diagram of the agricultural production posture recognition device in the facility environment provided by the present invention.

[0023] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] Figure 1 It is a flow chart of the method for recognizing agricultural production postures in a facility environment provided by the present invention. Figure 1 As shown, the method includes the following: Step 110, obtaining a target image containing a human target in a facility environment; Step 120, segmenting the human target in the target image based on the image segmentation model to obtain a human target image output by the image segmentation model; Step 130, performing whole body posture estimation and key point detection on the human target image based on the OpenPose model of the human pose estimation framework, obtaining joints of the human target and joint connected areas of the human target, and determining key joint point information of the human target based on the joints and the joint connected areas, wherein the key joint point information includes hand joint point information of the human target and trunk joint point information of the human target; Step 140: Based on a support vector machine, determine a target posture type that matches the key joint point information from multiple production posture types, and use the target posture type as the production posture of the human target.

[0026] The execution subject of the agricultural production posture recognition method under the facility environment provided by the present invention can be an electronic device, a component in an electronic device, an integrated circuit, or a chip. The electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), or a personal computer (PC), etc., which is not specifically limited by the present invention.

[0027] The following takes the method for recognizing agricultural production postures in a facility environment provided by the present invention executed by a computer as an example to explain the technical solution of the present invention in detail.

[0028] In step 110, a target image containing a human target in a facility environment is acquired.

[0029] The facility environment in agriculture refers to a modern agricultural method that provides suitable environmental conditions such as temperature, light, water, air, soil, etc. for the growth of animals and plants under relatively controllable conditions by adopting engineering and technical means to achieve efficient production. The facility environment in agriculture is a comprehensive ecosystem, which can include greenhouses, for example, which provide suitable conditions for plant growth by precisely controlling environmental factors such as light, temperature, humidity, gas and soil, thereby achieving efficient production.

[0030] It is understandable that farmers will appear in a facility environment when carrying out agricultural production such as fertilizing, spreading pesticides, and harvesting. The target images obtained are images of farmers performing agricultural production in the facility environment.

[0031] In step 120, the human target in the target image is segmented based on the image segmentation model to obtain a human target image output by the image segmentation model.

[0032] The goal of image segmentation is to divide each pixel or region in an image into specific categories with similar properties in order to understand and analyze the image content. In human image segmentation, this process specifically refers to separating the human body from the background or other objects.

[0033] Based on the image segmentation model, the human target in the target image is segmented, and the obtained human target image can be used for the subsequent analysis process of agricultural production posture.

[0034] Optionally, the human target in the target image can be segmented based on the mobile SAM model. Based on the mobile SAM model, by applying a lightweight image encoder, the knowledge of the image encoder ViT-H in the original SAM is distilled to the lightweight image encoder by using a decoupled distillation method. The lightweight image encoder is compatible with the original encoder, and the inference speed runs about 10ms per image. In addition, the mobile SAM model allows the same prompt to generate multiple masks, which can solve the ambiguity problem and give the same posture different semantics in different agricultural operation backgrounds. Therefore, the mobile SAM model can ensure the segmentation and extraction of human postures during agricultural operations while reducing unnecessary additional computing power consumption.

[0035] In step 130, full-body posture estimation and key point detection are performed on the human target image based on the OpenPose model of the human pose estimation framework to obtain the joints of the human target and the joint connection area of ​​the human target, and based on the joints and the joint connection area, the key joint point information of the human target is determined, and the key joint point information includes the hand joint point information of the human target and the torso joint point information of the human target.

[0036] The OpenPose model is a human pose estimation framework based on deep learning. Its core principle is to perform full-body pose estimation and key point detection for multiple human bodies in images or videos through deep learning technologies such as convolutional neural networks (CNN) and conditional random fields (CRF).

[0037] Input the image of the human target into the OpenPose model. The OpenPose model first uses CNN to extract features from the image. This step captures the underlying features such as edges and textures in the image.

[0038] The feature maps processed by CNN are further analyzed to generate a set of candidate joint points of human targets.

[0039] RNN is used to process these candidate joint points into a sequence model. RNN can capture the spatial and temporal dependencies between joint points, and iteratively update the position of each joint point to finally determine the precise position of each joint point and further determine the joint connectivity area.

[0040] Based on the joints and the joint connection areas, the key joint information of the human target is screened and determined. The key joints include 18 common human target trunk joints (such as head, neck, left and right shoulders, left and right elbows, left and right wrists, etc.) and 21 hand joints.

[0041] In step 140, based on a support vector machine, a target posture type matching the key joint point information is determined from a plurality of production posture types, and the target posture type is used as the production posture of the human target.

[0042] A plurality of production posture types are predetermined, wherein the production posture types can be determined based on statistics.

[0043] Record the informatization elements of facility agricultural production, including but not limited to the facility shed number, planting variety, planting area, planting row spacing, planting time, planting location, growth period of each vegetable variety, agricultural operation time requirements, video monitoring information, environmental parameter information, water and fertilizer irrigation information, small agricultural machinery information, agricultural input information, and yield information. Analyze the above agricultural production informatization elements and determine multiple production posture types.

[0044] During the facility production process, farmers' operation data can only be collected during the key operation stages, and the amount of sample data is relatively small. SVM is ideal for use under this condition based on small sample statistical theory.

[0045] For example, the production posture types of facility vegetable operations can be divided into five categories, namely, planting seedlings, fertilizing, irrigation, weeding, and harvesting. Among them, the trunk posture of planting seedlings is usually a squat, and the hands are in a clenched state; the fertilizing posture is usually standing with a slight forward lean, and the hands are in a grasping state; the irrigation posture is usually upright and leaning backward, with the hands in a clenched state; the weeding posture is usually leaning forward and bending over, with the hands spaced apart and in a clenched state; the harvesting posture is standing or bending over, with the hands in a grasping state.

[0046] It is understandable that for different production posture types, the state of the torso and hands of the human target is different. Based on the state of the torso and hands, the target posture type matching the key joint point information can be determined from multiple production posture types, thereby determining the production posture of the human target.

[0047] Based on the SVM classifier, the key joint point information (the key joint points include 18 joint points of the trunk and 21 joint points of the hands to form 39 joint points) can be used as input. The SVM classifier selects the Gaussian kernel function and the classification output performs coupling analysis on the joint point semantics of the trunk and head, which can more accurately match the posture characteristics of agricultural operations and determine the target posture type that matches the key joint point information from multiple production posture types.

[0048] The agricultural production posture recognition method in a facility environment provided by the present invention can collaboratively characterize the operation links by targeting the body and gesture movements in the agricultural operation process. In order to more accurately analyze the agricultural operation movements, the key joint point information of the trunk and gestures is considered, which is richer in semantics and improves the accuracy of subsequent agricultural production posture recognition. At the same time, in view of the difficulty and high cost of collecting sample data sets, the SVM classification method that supports low sample evaluation is used, and multiple production posture types in the agricultural production process are matched with key joint point information to realize intelligent analysis and collection of the agricultural operation process.

[0049] In one embodiment, full-body posture estimation and key point detection are performed on the human target image based on the OpenPose model of the human pose estimation framework to obtain the joints of the human target and the joint connected area of ​​the human target, including: based on the PAFs method in the OpenPose model, full-body posture estimation and joint point detection are performed on the human target image to obtain the representation position of the joints of the human target and the direction information of the joints of the human target; based on the representation position and the direction information, the joints of the human target and the joint connected area of ​​the human target are determined.

[0050] In view of the characteristics of agricultural operations, the PAFs (Part Affinity Fields) method proposed in the OpenPose model is adopted, that is, each pixel is a 2D vector used to represent position and direction information based on the detected joint points and joint connected areas.

[0051] Furthermore, we can use the greedy inference algorithm to quickly map these joint points to different characters. Figure 2 As shown in the trunk joint diagram provided by the present invention, the head, neck, eyes, trunk, arms, and legs are defined by 18 joint points from 0 to 17, and each part has an active joint. Since the trunk semantic information of some links in the agricultural operation is the same, but the hand information is different, hand gestures are introduced to make the hand description information more specific, such as Figure 3 As shown in the hand joint diagram provided by the present invention, from 0 to 20, all joint activities of the palm and 5 fingers are defined by 21 joint points.

[0052] In one embodiment, based on an image segmentation model, a human target in the target image is segmented to obtain a human target image output by the image segmentation model, including: based on a mobile SAM image segmentation model, a human contour in the target image is extracted to obtain a human contour in the target image; and the target image is segmented according to the human contour to obtain the human target image.

[0053] The human body contour extraction diagram of the mobile SAM model can be shown as follows Figure 4 The human body contour extraction schematic diagram provided by the present invention is shown. Based on the mobile SAM model, by applying a lightweight image encoder, the knowledge is distilled from the image encoder ViT-H in the original SAM to the lightweight image encoder by using a decoupled distillation method, and the lightweight image encoder is compatible with the original encoder, and the reasoning speed runs about 10ms per picture. In addition, the mobile SAM model allows the same prompt to generate multiple masks, which can solve the ambiguity problem and give the same posture different semantics in different agricultural operation backgrounds. Therefore, the mobile SAM model can ensure the segmentation and extraction of human body postures during agricultural operations while reducing unnecessary additional computing power consumption.

[0054] Input the target image into the Mobile SAM model. To guide the model for segmentation, one or more prompts, such as a point or rectangular box on the human body, can be input. These prompts help the model locate and identify the human body area in the image. Mobile SAM's image encoder extracts features from the input image and generates an embedded representation of the image. Combined with the input prompt information, the cross-modal attention module uses the attention mechanism to guide the segmentation process to ensure that the model can accurately focus on the human body area. The decoder generates the final segmentation mask based on the output of the cross-modal attention module. This mask marks the pixels in the image that belong to the human body contour.

[0055] After obtaining the segmentation mask of the human body contour, the target image can be further segmented to extract the complete human body target image.

[0056] In one embodiment, after taking the target posture type as the production posture of the human target, it also includes: counting the time when the human target is in the production posture to obtain the execution time when the human target is in the production posture; associating the production posture with the execution time to obtain associated information, and recording the associated information.

[0057] Furthermore, after recording the associated information, the method further includes: determining the agricultural products in the facility environment, and generating agricultural records of the agricultural products based on the product information of the agricultural products and the associated information.

[0058] Specifically, it continuously monitors and identifies the production postures of human targets in facility environments (such as greenhouses and farmlands). These postures can include sowing, fertilizing, weeding, harvesting and other actions related to agricultural production.

[0059] Timestamp recording: Whenever a human target is identified to enter a specific production posture, the system automatically records a start timestamp. When the posture ends or changes, an end timestamp is recorded. The difference between these two timestamps is the execution time of the production posture.

[0060] Data aggregation: For each production posture, the system aggregates the execution time of multiple occurrences and calculates statistics such as the average and standard deviation to understand the regular execution time and possible fluctuation range of the posture.

[0061] Each production posture is clearly associated with its corresponding execution time to form associated information. This information is usually stored in the form of key-value pairs or database records to facilitate subsequent query and analysis.

[0062] Data storage: Store relevant information in a secure and reliable database to ensure data persistence and accessibility. At the same time, consider data backup and recovery strategies to prevent data loss or damage.

[0063] Based on the product information (such as type, growth cycle, geographical location, etc.) and related information (production posture and execution time) of agricultural products, agricultural records of agricultural products are constructed. This file records in detail the agricultural activities and their time nodes in each link from sowing, fertilization, weeding to harvesting, providing a basis for the full traceability and quality management of agricultural products.

[0064] By conducting in-depth analysis of the data in the agricultural archives, the efficiency and quality of different agricultural activities can be evaluated, and potential problems and room for improvement can be discovered. For example, the execution time of the same production posture in different time periods can be compared to identify opportunities for efficiency improvement; or the impact of different agricultural activities on the yield and quality of agricultural products can be analyzed to optimize agricultural production plans.

[0065] By counting the execution time of human targets in production postures and associating it with the product information of agricultural products, a detailed agricultural record can be generated. This process not only helps the refined management of agricultural production, but also provides valuable data support for agricultural scientific research and decision-making.

[0066] In one embodiment, the plurality of production posture types include a seedling type, a fertilization type, an irrigation type, a weeding type, and a harvesting type.

[0067] It is understandable that for different production posture types, the state of the torso and hands of the human target is different. Based on the state of the torso and hands, the target posture type matching the key joint point information can be determined from multiple production posture types, thereby determining the production posture of the human target.

[0068] The present invention also provides a flow chart of a method for identifying agricultural production postures in a facility environment provided by the present invention, such as Figure 5 As shown, the method specifically includes: Record the informatization elements of facility farming production, including but not limited to the facility shed number, planting varieties, planting area, planting row spacing, planting time, planting location, growth period of each vegetable variety, farming operation time requirements, video monitoring information, environmental parameter information, water and fertilizer irrigation information, small agricultural machinery information, agricultural input information, and yield information; Camera data collection mainly includes real-time video data collection, video image data collection, and frame-by-frame sequential picture data collection based on video streams. Associate facility greenhouse information with planting information and camera equipment information to ensure that video monitoring content matches planting information; Human posture image segmentation is performed based on the mobile SAM model. The mobile SAM model uses a lightweight image encoder and a decoupled distillation method to distill knowledge from the image encoder ViT-H in the original SAM to the lightweight image encoder. The lightweight image encoder is compatible with the original encoder, and the inference speed runs at about 10ms per image. In addition, the mobile SAM model allows the same prompt to generate multiple masks, which can solve the ambiguity problem and give the same posture different semantics in different agricultural operation backgrounds. Therefore, the mobile SAM model can ensure the segmentation and extraction of human postures during agricultural operations while reducing unnecessary additional computing power consumption; According to the characteristics of agricultural operations, the PAFs (Part Affinity Fields) method proposed in Openpose is used. That is, each pixel is a 2D vector, which is used to represent the position and direction information. Based on the detected joints and joint connected areas, the joint information of 18 joints of the trunk and 21 joints of the hands is further determined. In the process of facility production, farmers' operation data can only be collected during the key operation process, and the sample data volume is small. The SVM classifier is ideal for use under this condition based on the small sample statistical theory. Facility vegetable operations are divided into 5 categories, namely seedling planting, fertilization, irrigation, weeding, and harvesting. Among them, the trunk posture of seedling planting is usually squatting, and the hands are in a clenched state; the fertilization posture is usually standing slightly forward, and the hands are accompanied by a grasping state; the irrigation posture is usually upright and leaning back, and the hands are accompanied by a clenched state; the weeding posture is usually leaning forward and bending over, with the hands spaced and clenched; the harvesting posture is standing or bending over, and the hands are accompanied by a grasping state. In the classifier, 18 trunk joints and 21 hand joints are fused to form 39 joints as input. The SVM classifier selects the Gaussian kernel function, and the classification output performs coupling analysis on the semantics of the trunk and head joints, which can more accurately match the posture characteristics of agricultural operations; Construct a database of agricultural information on vegetables throughout their growth period. Based on greenhouse facilities, define location information, greenhouse management information, responsible personnel information, and partition information, and associate vegetable varieties, planting areas, planting rotations, expected yields, agricultural inputs, and IoT device data. For a single camera monitoring scenario with multiple crop types, a linear partitioning method under a fixed viewing angle is used to record the image semantic association information of different agricultural operation types to the greatest extent; for a multi-camera monitoring scenario, a joint partition boundary definition method is used to collect and record monitoring area information under different viewing angles. The human posture image segmentation and key point extraction model are integrated into the monitoring program to identify, feedback, and store dynamic monitoring content, and record it in the database in the form of an association table; the agricultural archive generation module is associated with the production product, and information is obtained in the form of a QR code in the packaging process. The product is used as an index to read the full life cycle planting information of the network link, and images are obtained by selecting the year and date and sliding the 24-hour timeline. The operation process is recorded in the form of a form, and the original data, recognition data, recognition results, and agricultural record details can be viewed.

[0069] The following is a description of the agricultural production posture recognition device under the facility environment provided by the present invention. The agricultural production posture recognition device under the facility environment described below and the agricultural production posture recognition method under the facility environment described above can be referred to each other. Figure 6 As shown, the device comprises: An image acquisition module 610 is used to acquire a target image containing a human target in a facility environment; A segmentation module 620 is used to segment the human target in the target image based on the image segmentation model to obtain a human target image output by the image segmentation model; The joint point determination module 630 is used to perform whole body posture estimation and key point detection on the human target image based on the OpenPose model of the human posture estimation framework, obtain the joint points of the human target and the joint connection area of ​​the human target, and determine the key joint point information of the human target based on the joint points and the joint connection area, wherein the key joint point information includes the hand joint point information of the human target and the torso joint point information of the human target; The posture recognition module 640 is used to determine a target posture type matching the key joint point information from multiple production posture types based on a support vector machine, and use the target posture type as the production posture of the human target.

[0070] The agricultural production posture recognition device in the facility environment provided by the present invention can collaboratively characterize the operation links by targeting the body and gesture movements in the agricultural operation process. In order to more accurately analyze the agricultural operation movements, the key joint point information of the trunk and gestures is considered, which is richer in semantics and improves the accuracy of subsequent agricultural production posture recognition. At the same time, in view of the difficulty and high cost of collecting sample data sets, the SVM classification method that supports low sample evaluation is used, and multiple production posture types in the agricultural production process are matched with key joint point information to realize intelligent analysis and collection of the agricultural operation process.

[0071] In one embodiment, the joint point determination module 630 is specifically used to: Based on the OpenPose model, a human body pose estimation framework, the whole body pose estimation and key point detection are performed on the human body target image to obtain the joint points of the human body target and the joint connected area of ​​the human body target, including: Based on the PAFs method in the OpenPose model, full-body posture estimation and joint point detection are performed on the human target image to obtain the representation position of the joint points of the human target and the direction information of the joint points of the human target; Based on the representation position and the direction information, the joint points of the human target and the joint connected areas of the human target are determined.

[0072] In one embodiment, the segmentation module 620 is specifically configured to: Based on the image segmentation model, segmenting the human target in the target image to obtain the human target image output by the image segmentation model includes: Based on the mobile SAM image segmentation model, extracting the human body contour in the target image to obtain the human body contour in the target image; The target image is segmented according to the human body contour to obtain the human body target image.

[0073] In one embodiment, the gesture recognition module 640 is specifically used for: After taking the target posture type as the production posture of the human body target, the method further includes: The time during which the human body target is in the production posture is counted to obtain the execution time during which the human body target is in the production posture; The production posture is associated with the execution time to obtain associated information, and the associated information is recorded.

[0074] In one embodiment, the gesture recognition module 640 is further specifically used for: After recording the associated information, the method further includes: The agricultural products in the facility environment are determined, and agricultural records of the agricultural products are generated based on the product information of the agricultural products and the associated information.

[0075] In one embodiment, the gesture recognition module 640 is further specifically used for: The multiple production posture types include seedling type, fertilization type, irrigation type, weeding type and harvesting type.

[0076] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the agricultural production posture recognition method in the facility environment, the method comprising: obtaining a target image containing a human target in the facility environment; Based on the image segmentation model, segmenting the human target in the target image to obtain a human target image output by the image segmentation model; Based on the OpenPose model of the human pose estimation framework, the whole body posture estimation and key point detection are performed on the human target image to obtain the joint points of the human target and the joint connected area of ​​the human target, and based on the joint points and the joint connected area, the key joint point information of the human target is determined, and the key joint point information includes the hand joint point information of the human target and the torso joint point information of the human target; Based on a support vector machine, a target posture type matching the key joint point information is determined from a plurality of production posture types, and the target posture type is used as the production posture of the human target.

[0077] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0078] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the agricultural production posture recognition method in the facility environment provided by the above methods, the method includes: obtaining a target image containing a human target in the facility environment; Based on the image segmentation model, segmenting the human target in the target image to obtain a human target image output by the image segmentation model; Based on the OpenPose model of the human pose estimation framework, the whole body posture estimation and key point detection are performed on the human target image to obtain the joint points of the human target and the joint connected area of ​​the human target, and based on the joint points and the joint connected area, the key joint point information of the human target is determined, and the key joint point information includes the hand joint point information of the human target and the torso joint point information of the human target; Based on a support vector machine, a target posture type matching the key joint point information is determined from a plurality of production posture types, and the target posture type is used as the production posture of the human target.

[0079] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the agricultural production posture recognition method in the facility environment provided by the above methods, the method comprising: acquiring a target image containing a human target in the facility environment; Based on the image segmentation model, segmenting the human target in the target image to obtain a human target image output by the image segmentation model; Based on the OpenPose model of the human pose estimation framework, the whole body posture estimation and key point detection are performed on the human target image to obtain the joint points of the human target and the joint connected area of ​​the human target, and based on the joint points and the joint connected area, the key joint point information of the human target is determined, and the key joint point information includes the hand joint point information of the human target and the torso joint point information of the human target; Based on a support vector machine, a target posture type matching the key joint point information is determined from a plurality of production posture types, and the target posture type is used as the production posture of the human target.

[0080] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for recognizing agricultural production postures in a facility environment, characterized in that: The method comprises: Acquire a target image containing a human target in a facility environment; Based on the image segmentation model, segmenting the human target in the target image to obtain a human target image output by the image segmentation model; Based on the OpenPose model of the human pose estimation framework, the whole body posture estimation and key point detection are performed on the human target image to obtain the joint points of the human target and the joint connected area of ​​the human target, and based on the joint points and the joint connected area, the key joint point information of the human target is determined, and the key joint point information includes the hand joint point information of the human target and the torso joint point information of the human target; Based on a support vector machine, a target posture type matching the key joint point information is determined from a plurality of production posture types, and the target posture type is used as the production posture of the human target.

2. The method for recognizing agricultural production postures in a facility environment according to claim 1, characterized in that: The method of performing full body posture estimation and key point detection on the human target image based on the OpenPose model of the human pose estimation framework to obtain joint points of the human target and the joint connected area of ​​the human target includes: Based on the PAFs method in the OpenPose model, full-body posture estimation and joint point detection are performed on the human target image to obtain the representation position of the joint points of the human target and the direction information of the joint points of the human target; Based on the representation position and the direction information, the joint points of the human target and the joint connected areas of the human target are determined.

3. The method for recognizing agricultural production postures in a facility environment according to claim 1, characterized in that: The method of segmenting the human target in the target image based on the image segmentation model to obtain the human target image output by the image segmentation model includes: Based on the mobile SAM image segmentation model, extracting the human body contour in the target image to obtain the human body contour in the target image; The target image is segmented according to the human body contour to obtain the human body target image.

4. The method for recognizing agricultural production postures in a facility environment according to claim 1, characterized in that: After taking the target posture type as the production posture of the human body target, the method further includes: The time during which the human body target is in the production posture is counted to obtain the execution time during which the human body target is in the production posture; The production posture is associated with the execution time to obtain associated information, and the associated information is recorded.

5. The method for recognizing agricultural production postures in a facility environment according to claim 4, characterized in that: After recording the associated information, the method further includes: The agricultural products in the facility environment are determined, and agricultural records of the agricultural products are generated based on the product information of the agricultural products and the associated information.

6. The method for recognizing agricultural production postures in a facility environment according to claim 1, characterized in that: The plurality of production posture types include a seedling planting type, a fertilization type, an irrigation type, a weeding type, and a harvesting type.

7. A device for recognizing agricultural production posture in a facility environment, characterized in that: include: An image acquisition module, used for acquiring a target image containing a human target in a facility environment; A segmentation module, used for segmenting a human target in the target image based on an image segmentation model to obtain a human target image output by the image segmentation model; A joint point determination module is used to perform whole-body posture estimation and key point detection on the human target image based on the OpenPose model of the human posture estimation framework, obtain the joint points of the human target and the joint connected area of ​​the human target, and determine the key joint point information of the human target based on the joint points and the joint connected area, wherein the key joint point information includes the hand joint point information of the human target and the torso joint point information of the human target; The posture recognition module is used to determine a target posture type matching the key joint point information from multiple production posture types based on a support vector machine, and use the target posture type as the production posture of the human target.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the agricultural production posture recognition method in the facility environment as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for recognizing agricultural production postures in a facility environment as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for recognizing agricultural production postures in a facility environment as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Pose estimation system of multiple tomato fruit-bearing systems for robotic harvesting

    KR102572571B1

  • Skeletal structure correction apparatus and method for assessing risk to musculoskeletal system of workers

    US20230218418A1

  • Human body three-dimensional model acquisition method and apparatus, intelligent terminal, and storage medium

    WO2023273093A1

  • Safety monitoring system for operators of agricultural vehicles and other heavy machinery

    WO2024102960A1

Cited By

  • Pavement crack detection method and system

    CN121937878A

  • A method and system for detecting cracks in a road surface

    CN121937878B